File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url mapping for jsp's in tomcat or jboss

 
ram Vallamkondu
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic