java - URL Pattern for servlet mapping in web.xml -


I need a letter in web.xml with this url mapping, in which a url with a letter "_ Using different "somethings" for different JSPs:

  / something / *  

/ Pre>

example:

  / search_Something-I-searched-for  

I tried to use it:

< Pre> & lt; Servlet-maping & gt; & Lt; Servlet-name & gt; MyServlet & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / Some _ * & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt;

But this does not seem to work. I can tell that I can not do this inside web.xml, so maybe there is some solution.

I do not know this information is important, but I am using Jebos and Strauss 2 in my project. Map a servlet for the directory containing the /p>

. Inside the servlet, separate the URL path and the appropriate.


Comments