Bootstrap FreeKB - Java - JSP extensions
Java - JSP extensions

Updated:   |  Java articles

The following can be placed in your web applications web.xml file so that your search.jsp can be accessed by navigating to www.example.com/search (no .jsp extension).

<servlet>   
  <servlet-name>search</servlet-name>
  <jsp-file>/search.jsp</jsp-file>
</servlet>
<servlet-mapping>
  <servlet-name>search</servlet-name>
  <url-pattern>/search</url-pattern>
</servlet-mapping>

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 1539a6 in the box below so that we can be sure you are a human.