This week's book giveaway is in the
We're giving away four copies of
Node.js in Action
and have Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
JSP page Authentiaction
Joined: Oct 21, 2004
Oct 28, 2004 09:49:00
I am developing a webapp using
with a bunch of
A login screen ( outside my webapp) authenticates the user and forwards it to home page of my webapp.
Now if any user wants to access my jsp pages directly (assuming the user is unauthenicated) I need to forward him to the login page...
now i am not sure where i should write the code for this ..and what kind of code should i write?
Can any one help me
Joined: Jan 11, 2001
Oct 28, 2004 09:56:00
I'd suggest using container managed security or possibly the
if you're on a
Matt<br /> <br />Author: <a href="http://springlive.com" target="_blank" rel="nofollow">Spring Live</a> and <a href="http://www.apress.com/book/bookDisplay.html?bID=256" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="http://raibledesigns.com" target="_blank" rel="nofollow">Raible Designs</a> <a href="http://jroller.com/page/raible" target="_blank" rel="nofollow">Spring Live Blog</a>
Joined: Jul 04, 2003
Oct 28, 2004 22:19:00
sometime you can use session scope to solve this problem.
Java Developer, Thailand
Joined: Jul 12, 2004
Oct 29, 2004 00:53:00
You can read more about Struts and security:
Struts Best Practices
Using JAAS for Authorization and Authentication (with Struts)
It is sorta covered in the
JavaRanch Style Guide
subject: JSP page Authentiaction
creating secure Java apps
Processing a login page not working
Redirect to the requested page failed using form-based authentication
redirecting a request to another page in another webapp.
Resource Restriction using web.xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014