...or, you can set the url in the session object in your servlet.
Cheers,
HTL



>Date: Fri, 27 Apr 2001 12:52:20 +0700
>From: Thai Thanh Ha <[EMAIL PROTECTED]>
>Subject: How to get URL of the original servlet after forwarding to a JSP page?
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>
> Hi all,
>
> I have forwarded from a servlet to a JSP page using
>RequestDispatcher.forward(). In the JSP page, I want to get the original URL
>(the URL of the servlet). And I don't want to use request.setAttribute() in
>the servlet. Is there any way to get the servlet's URL from JSP page? I have
>tried using request.getRequestURI() but it returns the URI of JSP page.
>
> Thanks in advance!
>
> Thai
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to