Daniel Erikson wrote:
>
> How do you create a session object in JSP? I can create it in ColdFusion like
> "session.<name> = <some object>", but am unsure how to do it with jsp. Have
> been playing around with the jsp session object but it only seems to work for
> properties not objects. Any help would be appreciated. thanks
You have access to the session at any time in a jsp page, it's called, eeh, session:
Vector myVector = new Vector();
session.putValue("myVector", myVector);
get it in another page by
Vector myNewVector = (Vector)session.getValue("myVector");
hope it helps
//Rikard
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html