integration with struts

Dan Allen <[email protected]> Fri, 21 Mar 2003 11:16:08 -0600
Newsgroups gmane.comp.java.securityfilter.user
Message-ID <[email protected]>
I know Max you ask a lot of times what you could do to ease the pain
with using securityfilter with struts.  One thing that would help is
to make the action a setting.  When you look for /j_security_check
you force struts users to use the /do/* pattern as opposed to the
*.do pattern.  Here is why this is a problem.  Assuming I am using
the *.do patter, I use the struts-html taglibs to create my form so
that my validator can throw some javascript on there and I can
populate it.

<html:form action="/j_security_check">
    <html:text property="j_username"/>
    <html:password property="j_password"/>
</html:form>

the output is

<form action="/project/j_security_check.do">
...

and doesn't ever match for security filter.  Also, is there any
reason for the j_, why not just username and password.  Also, it
would be nice just to rename j_security_check all together to maybe
Login or whatever we choose.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[email protected]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
'One Microsoft Way' is more than just an address.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en