hi....
 if you are using JSP Model 2 architecture, or Struts, you can
check everything in the controller servlet
i got the same problem (and i had 50 JSP already done after my manager
told me that he forgot to tell me to check if the user was null.....)

i did not want to change all the Action classes, or all the JSPs..so
i checked in the servlet

hope this helps

br
        marco

> -----Original Message-----
> From: ext Claudio Lorico [mailto:[EMAIL PROTECTED]]
> Sent: 16. January 2001 18:45
> To: [EMAIL PROTECTED]
> Subject: Re: please Help --session check
>
>
> What you're thinking is quite right and it can be
> better if you will use a custom tag for that purpose.
>
> --- Deepak C S <[EMAIL PROTECTED]> wrote:
> > hi people,
> >
> >         As a part of authentication check, I am
> > checking for a session
> > attribute to validate user login across pages.
> > eg:
> >
> > if (session.getAttr("user")==null){
> > sendRedirect(loginpage);
> > }
> >
> > But now, I am keeping these lines in all my jsp
> > files(cut and paste)..If I
> > have to change somethg with that I need to change in
> > all jsp pages..
> >
> > Is there any better way than this?? like keeping
> > session -checking code in
> > seperate file and including in all pages??
> >
> > pls help.
> >
> > Thanx in adv,
> > Deeps
> >
> >
> ==============================================================
> =============
> > 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
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.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://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