• 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
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
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.
 
It runs on an internal combustion engine. This ad does not:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic