wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: url mapping for jsp's in tomcat or jboss
 
Similar Threads
New Session Id with new host entry
Problem in displaying Images
'a href' in firefox
servlet doesn't invoke (page not found displayed)
Depricated API Error pls help