This content has been marked as final.
Show 4 replies
-
1. Re: hide the .jsp extension from pages
peterj Oct 28, 2008 11:31 AM (in response to thanukshad)Try adding this to your web.xml:
<servlet> <servlet-name>ContactJsp</servlet-name> <jsp-file>/contact.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>ContactJsp</servlet-name> <url-pattern>/contact</url-pattern> </servlet-mapping>
-
2. Re: hide the .jsp extension from pages
thanukshad Nov 3, 2008 4:48 AM (in response to thanukshad)thank u very much
its working fine.
but i have about 200 jsp pages in my system. do i need to write 200 mappings for each page in web.xml?
is there any special way to do one mapping for all pages using wildcards or anything else? -
3. Re: hide the .jsp extension from pages
peterj Nov 5, 2008 1:26 PM (in response to thanukshad)I know of no wildcard mechanism to do this. But an editor macro or script should be able to convert a list of jsp names into the necessary xml text.
-
4. Re: hide the .jsp extension from pages
kjkoster Nov 5, 2008 2:59 PM (in response to thanukshad)Perhaps use Apache httpd and mod_rewrite?