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 U

Where to code getting user principal in struts based project

2007-10-15 Thread Zhang, Larry (L.)
In my Struts based J2EE application, I need to get user's login information (user principal), and based on the login id, I will create the user object and then put it into the session. I am wondering where is the best place to put this code in. I read some info and it sounds like I should put this