aspose file tools*
The moose likes JSP and the fly likes url mapping for jsp's in tomcat or jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "url mapping for jsp Watch "url mapping for jsp New topic
Author

url mapping for jsp's in tomcat or jboss

ram Vallamkondu
Greenhorn

Joined: Jul 16, 2004
Posts: 2
To access my jsp's in tomcat, url is <u>http://locatlhost ort/appName/jsp/Logon.jsp</U>
<br>
but i don't want to see jsp in the above url without changing the name of the folder(jsp in appName.war) in war file.
<br>
Is there anyway i can specify in the web.xml saying all request starts with demo (for an example) to redirect / refer to jsp.
ie
if i type <B>http://locatlhost ort/appName/demo/Logon.jsp</B> it should call internally <I>http://locatlhost ort/appName/jsp/Logon.jsp.</I>

Thanks in advance.

Ram
ram Vallamkondu
Greenhorn

Joined: Jul 16, 2004
Posts: 2
hi,
i got the answer..........
<servlet>
<servlet-name>BalanceJSP</servlet-name>
<jsp-file>/AccountBalance.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>BalanceJSP</servlet-name>
<url-pattern>/GetBalance</url-pattern>
</servlet-mapping>

thanks
ram
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: url mapping for jsp's in tomcat or jboss