I tested out System.out.println and got no value at all, just a blank.
I would use <%=test%> as Sachin says or if you want to keep javaish use
out.println(test); without the system bit. Thats what I use.
Joe
----- Original Message -----
From: Sachin S. Khanna <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 17, 2000 5:29 PM
Subject: Re: help - predefined session variable
> What output are you getting for the :
> >System.out.println(test) ;
>
> print the value of test on the browser with the following line :
> <%= test %>
>
> And let us know what does it show on your browser.
>
> Have a nice day.
> With regards,
> Sachin S. Khanna.
> www.emailanorder.com
> ----- Original Message -----
> From: Neil Harrison <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 17, 2000 4:27 PM
> Subject: help - predefined session variable
>
>
> > Hi all.
> >
> > I'm trying to get session data back in a scriplet with the following
code:
> >
> > <%
> > String test = (String) session.getValue("the_statement");
> > System.out.println(test) ;
> > %>
> >
> >
> > There session is definately alive, and i know its something to do with
> > type, but cant figure
> > it out. Any help would be great.
> >
> > I'm using JSP 1.0, VAJ 3.0 Test Env on NT.
> >
> > Ta,
> > Neil
> >
> >
>
===========================================================================
> > 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
>
===========================================================================
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