you can also put your values which is global to your application in the
context of your controller servlet.

Thanks
Venkat

> ----------
> From:         Sachin S. Khanna[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list about Java Server Pages specification and
> reference
> Sent:         Saturday, May 05, 2001 10:00 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Application wide data globals
>
> Nice Question !
> As far as i'm concerned i'd go for the third option as it would be easier
> to
> access it from any other resource of the web application.
> Just my opinion :-)
> Have a nice day.
> With regards,
> Sachin S. Khanna
> http://www.emailanorder.com
> ----- Original Message -----
> From: Gerry Scheetz <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 04, 2001 8:03 PM
> Subject: Application wide data globals
>
>
> > Hello group,
> >
> > I am coding a web application using the MVC design.  My controller is a
> servlet.  My model are some JavaBeans and a couple Java classes to access
> the database.  My view is JSP files.  I have a couple values that are
> constant throughout the application like application title and length of
> time before a password expires.  These values are accessed within
> JavaBeans
> and within JSP files.  I can think of about 3 ways I can code this,
> >   1)  JavaBean put in the application scope (tough to retrieve in
> another
> JavaBean)
> >   2)  Singleton class (trying to minimize code in JSP and this takes a
> couple of lines)
> >   3)  class with all static variables and functions (just unfamiliar
> with
> this, I guess)
> >
> > Anyway in this whole development effort, I am also setting up standards
> for our team to code to in the future, so I want to do this right the
> first
> time.  Advise on which of my options to pursue or is there a better
> option?
> >
> > Thanks,
> >
> >
> > Gerry Scheetz
> > Web Application Development
> > Global Information Technology Division
> > TRW - S&ITG
> > Helena, Montana, USA
> > [EMAIL PROTECTED]
> > (406) 594-1878
> >
> >
> ==========================================================================
> =
> > 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://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".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to