• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guidance will be highly appreciated.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic