Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Accessing a bean on the value stack from within an action

Alexander Bätz

2008-09-22

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

i want to save some special settings inside a bean and use them to
change things on my jsp pages. for that i created a singleton
usersettingsbean. I know i can create the bean with the help of a
struts-tag. but how can i access/create the bean from within the execute
method of an action?

i can access the value stack with the help of the actioncontext, but it
seems as if i cant add a name to the object i push on the stack (like
#page).

Is anybody able to help me?

Greetings,
Alexander

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.