aspose file tools*
The moose likes JSP and the fly likes web.xml & JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "web.xml & JSP" Watch "web.xml & JSP" New topic
Author

web.xml & JSP

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
Is there a way to hide the implementation of my jsp pages?
What I mean is I dont want my urls to all be
http://127.0.0.1/webapp/jsp/test.jsp
Maybe have my URL say anything else but that...
All my jsps will be in a folder called jsp under the webapp dir.
John Smith
Greenhorn

Joined: Jan 12, 2002
Posts: 6
Stick this in your web.xml file
for each jsp
<servlet-name>test</servlet-name>
<display-name>test</display-name>
<jsp-file>/test.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>test</servlet-name>
<url-pattern>/qwerty</url-pattern>
</servlet-mapping>
now instead of: localhost:8080/name/jsp/test.jsp
used localhost:8080/name/qwerty
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.xml & JSP