struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Baetz <baetz.paderb...@arcor.de>
Subject Accessing a bean on the value stack from within an action
Date Mon, 22 Sep 2008 22:59:21 GMT
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@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message