Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default attribute

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
How do I set a default attribute whenever a user starts a session. I have a scriptlet at the top of everypage that checks if the attribute exists, and if it doesn't it sets it, but I'm wondering if there's an entry in a config file I can use instead of adding the scriptlet to every page.

I'm drying to set the org.apache.struts.Globals.LOCALE_KEY attribute to Locale.ENLISH as default, and the user can change it if he/she likes.
 
You can do that in a custom RequestProcess.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top