Re: login and session

2007-10-17 Thread Tuyen Dinh Van
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

Re: Where to code getting user principal in struts based project

2007-10-15 Thread Tuyen Dinh Van
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

OGNLException on passing request parameters in redirect-action type

2007-10-14 Thread Tuyen Dinh Van
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

Has anyone developed a web app using struts 2 and agegi security framework?

2007-10-07 Thread Tuyen Dinh Van
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