Hi,
You should use interceptors provided by struts 2 for authenticating the
user. The interceptor provide you with easy coding according to AOP.
You can take a look at the sample application accompanying with struts2
distribution, that is mailreader.
Tuyen Dinh
On 10/16/07, Lizzy Borden [EMAIL
Hi,
I just guess your problem. If you have used struts 2.x, you can easily get
credential information via Action POJO. In your case, creating a new Action
named LoginAction with 2 properties username, password, then create a new
User class. In the LoginAction, get username and password passed in
Hi,
I am configuring the struts.xml for my simple example like this:
package name=dashboard namespace=/ extends=application
action name=dashboard class=com.example.web.action.Dashboard
interceptor-ref name=authnz/interceptor-ref
result
I am now developing my own management suite using struts 2, and I also
intend to use acegi for security, but very few document available for such
integration.
Has any one successfully integrated the acegi framework into struts 2?
Any suggestion is appreciated.
Thanks
4 matches
Mail list logo