I am a Cold Fusion Developer learning JSP and have a question. In Cold Fusion we have an application file and upon request of a cf page, the application file is called first. this is how we store a lot of variables associated with each page, is there a file that JSP pages go through first or is there a way to store variables in JSP? I have been using session to do this, but I have to check to see if the variable is defined on every page and if it isn't, set it. Anybody know of an easier way to do this? Sorry if this message is confusing.
Eric ----- Original Message ----- From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 12:18 pm Subject: Re: Use of Session Attribute > If you never use Session Scope or any Session variables, you can set > session="false" and save a little memory and a very small amount of > processing time. Each time the JSP is entered it calls session = > request.getSession(); to populate the intrinsic session variable. On the > first call this creates a HashMap to store all the session variables, > calculates a unique Session ID, and adds a Cookie to the Response. On each > subsequent call it simply looks up the Cookie from the Request and uses the > Session ID it contains to retrieve the Session Object from the HashMap. > (*Chris*) > > ----- Original Message ----- > From: "Saravanan Thangaraju" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, October 19, 2001 11:52 PM > Subject: [JSP-INTEREST] Use of Session Attribute > > > > What impact will setting attribute session = false in the page directive > of > > a jsp.. > > > > Is it recommended.? > > > > Saravanan . T. > > Consultant > > Kanbay Software ,India. > > 020-7691100 (ext - 511) > > > > > > -----Original Message----- > > From: Dmitry Namiot [mailto:[EMAIL PROTECTED]] > > Sent: Friday, October 19, 2001 1:51 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Formating Text In JSP > > > > Check out Excape taglib from Coldjava's suite > > for example: http://www.servletsuite.com/jsp.htm > > > > > > -- > > Coldjava - server-side Java components > > http://www.servletsuite.com > > > > > > > > __________________________________________________________________ > > Your favorite stores, helpful shopping tools and great gift ideas. > > Experience the convenience of buying online with Shop@Netscape! > > http://shopnow.netscape.com/ > > > > Get your own FREE, personal Netscape Mail account today at > > http://webmail.netscape.com/ > > > > > =========================================================================== > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > > > > This message and any attachment(s) is intended only for the use of the > > addressee(s) and may contain information that is PRIVILEGED and > > CONFIDENTIAL. If you are not the intended addressee(s), you are hereby > > notified that any use, distribution, disclosure or copying of this > > communication is strictly prohibited. If you have received this > > communication in error, please erase all copies of the message and its > > attachment(s) and notify the sender or Kanbay postmaster immediately. > > Any views expressed in this message are those of the individual sender. > > Although we have taken steps to ensure that this e-mail and any > > attachment(s) are free from any virus, we advise that in keeping with good > > computing practice the recipient should ensure they are actually virus > free. > > > > > =========================================================================== > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
