i think what you want to use in jsp to do instance variables when the jsp is
compiled into a servlet is <%! String myClassVar = "something" %>
declarations put in scriptlets <% ... %> are not converted to instance
variables.
hope that helps.
cheerio,
chris
chris wilson > web developer > andrews university > www.andrews.edu
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of LynchWu
> Sent: Thursday, April 13, 2000 6:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Heavy-weight context switch
>
>
> >Question: Is it possible to put variables, in JSP, outside of
> the per-request scope,
> such
> >what we can do the pooling also?
> >
> >Answer: Use scope="session" in the jsp tag Ex:
> ><jsp:useBean id="beanName" class="com.companyName.packageName"
> scope="session"/>
> Maybe not. Session variables are very different from class
> variables in servlets.
> The former has a from-page-to-page scope, while the later is
> focused on a single
> page, among different requests.
>
> ==================================================================
> =========
> 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