> -----Original Message-----
> From: Tate Austin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 12:21 PM
> To: Struts Users Mailing List
> Subject: j_security_check
> 
> 
> I have a logon page that I would like to have a checkbox on 
> for writing a
> cookie to the browser.  The previous architect who wrote the jsp page
> insists that it incorporate j_security_check, is there a 
> facility in struts
> for this?  I can easily authenticate using forms and actions, 
> but there is
> apparently something that j_security_check provides that is necessary.

J_security_check is a part of the container managed security system.  In order 
to do what you want, you have to do a lot of handwaving.  Or, a lot of copying 
of code.
In essence, you provide another logon url, that is mapped to a servlet (not 
struts) and then inside the servlet do whatever mangling you have to do of the 
login form (in your case the cookie), and then forward the request to 
j_security_check, with the j_username, j_password and the url that should be 
forwarded to when the login is successful.  I forget what the parameter name is 
off the top of my head.
An example is in appfuse, and I believe the author got it from someplace else.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to