Hello all,

May I ask a question?

I have a servlet named "FormDispatcher" which I include from a JSP like
this:

<jsp:include page="servlet/FormDispatcher/abc/def"/>

What I *want* is for the FormDispatcher servlet to be able to access the
"/abc/def" path info by calling "request.getPathInfo()".

When the servlet calls "request.getPathInfo()", however, the method returns
the path info for the JSP which contains the <jsp:include> element shown
above, not "/abc/def". I understand why this is and it makes perfect sense
to me. *BUT*, I'm hoping there is a way, somehow, for me to gain access to
the "/abc/def" path info.

As a workaround I'm passing "/abc/def" as a request param as shown below but
I'd rather the included servlet be able to access the path info that was
specified in the <jsp:include> tag. Is it possible? Thanks very much.


The workaround....

<jsp:include page'"/servlet/FormDispatcher">
   <jsp:param name="caller-param" value="/abs/def"/>
</jsp:include>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to