RequestDispatcher rd = request.getRequestDispatcher(url) ;
        rd.forward (request, response);


> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of SERHAT INAN
> Sent: lunes, 03 de junio de 2002 13:56
> To: [EMAIL PROTECTED]
> Subject: Session Forwarding
>
>
> Using Tomcat 3.2 as servlet container I use the following line to forward
> the context to a jsp file.
>
> httpServletObject.getServletContext().getRequestDispatcher("/h1.js
> p").forwar
> d(request, response);
>
> However the next time the page is posted to the server, the
> session seems to
> be null and attributes
> are unreacheable.
>
> What can I use instead, in order to protect the session attributes while
> forwarding the context?
>
> Regards
> Serhat
>
> ------------------------------------------------------------------
> ----------
> Bu e-posta ve ilisikteki dosyalar gizlidir ve sadece gonderilen
> birey ya da
> kurumun kullanimi icindir. Bu mesajda kullanilan ifadeler, kurumumuzun tum
> politikalarini temsil etmeyebilir. Bu nedenle sozkonusu e-posta bilgileri
> kurumumuza karsi kullanilamaz ve butunuyle kurumumuzu baglayici olamaz. Bu
> mesaji yanlislikla aldiysaniz, lutfen gondericiye bildiriniz ve
> sisteminizden siliniz. Basari Holding hakkinda bilgi almak icin lutfen web
> sitemizi ziyaret ediniz. ( http://www.basari.com.tr )
> Bu e-posta bilinen tum bilgisayar viruslerine karsi korunmaktadir.
>
> This e-mail and any attached files with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> The statements or expressions used in this message may not represent our
> organization policy and therefore cannot be binding for or used against
> Basari Holding Inc. If you have received this message accidentally, please
> notify the sender immediately and delete it from your system. To get more
> information about Basari Holding, please visit our web site. (
> http://www.basari.com.tr )
> This e-mail is protected against all known computer viruses.
>
> ==================================================================
> =========
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to