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

Reply via email to