Another possibility is to create a simple custom tag that
does the check for
you. The example application in the Struts Framework project
http://jakarta.apache.org/struts includes just such a tag.
It is invoked like
this:
app:checkLogin/
and currently performs logic very
Michael Wentzel wrote:
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
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