Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does one request a jsp page without the 'dot jsp'

Status
Not open for further replies.

lloydis

Programmer
Oct 12, 2004
1
GB

Hi All,

Is it possible to setup/configure tomcat somehow as to have it recognise ../home.jsp and ./home as the same request?

Thanks
 
Add this to your web.xml :

Code:
    <servlet>
        <servlet-name>org.apache.jsp.home_jsp</servlet-name>
        <servlet-class>org.apache.jsp.home_jsp</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>org.apache.jsp.home_jsp</servlet-name>
        <url-pattern>/home</url-pattern>
    </servlet-mapping>

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top