diff --git a/lib/servlet-api.jar b/lib/servlet-api.jar new file mode 100644 index 0000000..dd326d3 Binary files /dev/null and b/lib/servlet-api.jar differ diff --git a/src/fr/devinsy/kiss4web/SimpleServletDispatcher.java b/src/fr/devinsy/kiss4web/SimpleServletDispatcher.java index 1ab2e4d..929ccaa 100755 --- a/src/fr/devinsy/kiss4web/SimpleServletDispatcher.java +++ b/src/fr/devinsy/kiss4web/SimpleServletDispatcher.java @@ -30,6 +30,7 @@ public class SimpleServletDispatcher extends HttpServlet { private static final long serialVersionUID = -3471226305721330069L; static protected org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger (ServletDispatcher.class); + static final protected Pattern SHORT_REWRITED_URL_CLASS = Pattern.compile("^([^-]+)-.+\\.xhtml$"); static final protected Pattern SHORT_REWRITED_URL_PARAMETERS = Pattern.compile("^[^-]+-(.+)\\.xhtml$"); static final protected Pattern LONG_REWRITED_URL_CLASS = Pattern.compile("^([^-]+)-/.*$"); diff --git a/src/fr/devinsy/util/StringList.java b/src/fr/devinsy/util/StringList.java index a08b544..75942f9 100755 --- a/src/fr/devinsy/util/StringList.java +++ b/src/fr/devinsy/util/StringList.java @@ -85,6 +85,28 @@ public class StringList extends ArrayList } + /** + * + */ + public StringList append(String ... strings) + { + StringList result; + + if (strings != null) + { + for (String string : strings) + { + this.add(string); + } + } + + result = this; + + // + return(result); + } + + /** * */ @@ -99,6 +121,20 @@ public class StringList extends ArrayList } + /** + * + */ + public StringList appendln(String ... strings) + { + StringList result; + + result = this.append(strings).appendln(); + + // + return(result); + } + + /** * */ @@ -273,12 +309,19 @@ public class StringList extends ArrayList /** * */ - public void removeLast() + public StringList removeLast() { + StringList result; + if (this.size() > 0) { this.remove(this.size() - 1); } + + result = this; + + // + return(result); }