You can't store a Variable in the setAttribute method. You can only store
object thru it.
TRy by storing object??
----- Original Message -----
From: SoftLiban KEYROUZ Charbel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 5:39 PM
Subject: JSP to Servlet Communication.
> Hello all,
> How can I save a variable using a servlet and then access it using JSP
> pages?
> this is what I am doing getServletContext().setAttribute("myVar", aVar);
>
> in the jsp when I use pageContext.getAttribute("myVar"); it return null.
>
> What am I doing wrong? plz help it's urgent.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> 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".
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