with VAJ 3.0 try going into the "JSP Page Compile Generated Code" project,
find your JSP compiled code in there and put a break point in. Now when
you run the JSP page the debugger will come up and within it you will be
able to
see the session object.
first if there is no session in variables you've forgot to get the session
ie HttpSession session = request.getSession(true);
next look in the session object and look at "mSwappableData" this contains
a Hashtable containing all the vars that have been put into the session
you should be able to see something like
{the_statment=java.util.String@234e}{my_rubbish=au.com.garbage.bin@262f}
etc
if you don't then the var your trying to read was never set else check the
type
you may be doing an incorrect cast. again the above debug in VAJ should be
able to tell you the type that the var is being put in as.
mail if you need more help.
Alan
ps the VAJ WTE is very cool! allowing break point in JSP! awesome!
----- Original Message -----
From: "Neil Harrison" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 17, 2000 10:57 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