• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

url mapping for jsp's in tomcat or jboss

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic