The most analogous method would be to create an application.jspf (for JSP Fragment) that defines all the information you need (ex: String fontColor = "red"; ), and then include this fragment in each page via <%@ page include="/application.jspf" %>
Then the fragment will be compiled into each including page, and all variables defined there will be accessible. Lance Lavandowska www.Brainopolis.com ----- Original Message ----- From: "Eric Fleming" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 22, 2001 12:31 PM Subject: Re: Use of Session Attribute > 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 ==========================================================================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
