You get a session object by default. So, you can do something like:
String contactId = request.getParameter("contactid");
if (contactId != null) {
//cf cookie is set to blank when called from user not logged in
if (contactId.equals("blank")) {
session.putValue("contactId", new Integer("-1") );
}
}
.
.
.
Now from a different page, you can do:
//session parms
Integer I_contactId = (Integer)session.getValue("contactId");
Daniel Erikson wrote:
> I am new to the JSP/Java development environment. Current project requires that
> the pages written in Coldfusion be converted to JSP's. Was curious to know how
> to create variables in JSP that have session and/or application scope.
>
> ===========================================================================
> 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
--
Tom
Thomas Preston
Vacation.com, Inc.
Engineering Department
===========================================================================
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