TK Sung wrote:
>
> Sorry, I misquestioned. here is the correction.
>
> >Obviously newbie questions here. (Please point me to
> >the archive if there is one.)
> >
> >How do I discover the jsp path in a jsp ? the "request"
> >variable returns the compiled servlet's URI/path, not the jsp's.
> >
> I meant to say that, when the jsp is dispatched from a servlet,
> request variable is from the dispatching servlet, and hence
> contain info about the dispatching servlet's path. So the real
> question is, how to discover the dispatched jsp's path in the jsp,
> without having to pass the jsp path info in my own data bean from
> the dispatching servlet.
If you're using RequestDispatcher.forward in your servlet to dispatch
to a JSP page, the URI related information should be adjusted for the
JSP page according to the Servlet API 2.1 specification. If that's
not what you see it's most likely a bug in the servlet engine you're
using.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".