• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Need help writing LoginCheck.jsp page

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic