tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brendan.Richa...@lowelive.com
Subject Re: path info for servlets and JSPs
Date Fri, 21 Jun 2002 10:48:36 GMT


I don't know if you can do exactly what you want but an alternative could
be to url-encode the path in the request as a variable

for example: http://server/application/mypage.jsp?path
=%2fextra%2fpath%2finfo
(I think %2f = / but please check!)

Brendan

-------------------------------------------------


In web.xml I have added a servlet mapping so that the servlet can take
extra
path information as follows:

<servlet-mapping>
        <servlet-name>myservlet</servlet-name>
        <url-pattern>/myservlet/*</url-pattern>
</servlet-mapping>

Is it possible to do something similar with JSPs - and if so how and where
do I configure this?
I would like to be able to use a URL such as
http://server/application/mypage.jsp/extra/path/info

Thanks,
Catharine


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message