aspose file tools
The moose likes Struts and the fly likes Where Do I Create Session, Set Attribute, etc. In Struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Where Do I Create Session, Set Attribute, etc. In Struts?" Watch "Where Do I Create Session, Set Attribute, etc. In Struts?" New topic
Author

Where Do I Create Session, Set Attribute, etc. In Struts?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I use container-managed form-based authentication to verify users in Struts(it works well).
Now, I want to create a session and set user's name after users successfully log in:

First of all, in the context of container managed authentication, can I write:

Second, what is the proper place to insert the aforementioned codes?
The container intercepts and takes care of the authentication when the LOGON button is clicked <html:link forward="logon">LOGON</html:link>
and

and the action controller is in the scaffold folder:

where .article.Menu is a tile.
[ October 17, 2003: Message edited by: JiaPei Jen ]
[ October 17, 2003: Message edited by: JiaPei Jen ]
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Guidance will be highly appreciated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where Do I Create Session, Set Attribute, etc. In Struts?
 
Similar Threads
What Does This Action Mapping Do?
No Error Message But A Blank Page Is Displayed!!!
Menu Forwards?
Forward Cannot Be Achieved In One Step
What Is the Proper Place To Create A Session Object?