• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help writing LoginCheck.jsp page

 
Sean Gildea
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write a LoginCheck.jsp page so that when someone visits any page on my site, it will check this jsp script thru a <jsp:include... to see if the session value "isValid" is set to true, if so, it will let them continue, if not, it directs them to "login.jsp"

But im having troubles writing this script in JSP.

Can someone look at it and let me know what I'm doing wrong?

Thanks,
Sean







[ March 14, 2005: Message edited by: Sean Gildea ]
[ March 14, 2005: Message edited by: Sean Gildea ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this is a new session, your isAuthenticated object will be null.

try:


The second half will never be evaluated and probably isn't necessary.
[ March 14, 2005: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!