----- Original Message -----
From: Andre Mermegas
To: [EMAIL PROTECTED]

1.) An action has 10 properties on it; I want these properties to be
available for the life of the HttpSession for other views to use, and I want
them accessible in a beanlike manner, In order to accomplish this I have to
do the following as far as I can tell.
Write a bean that has the same property code basically as inside the action;
populate it with the info from the action's properties.
Place that bean into the HttpSession inside my action, and proceed

This feels very kludgey to me, so I must be thinking incorrectly.

My question is there a better way to do this? The only thing I can think of
is to not have the properties on the Action, but in its own bean to begin
with via Beanutils, and then add that to the session.
----------------------------

Hi Andre,
Putting the properties in its own bean would work fine. However when you
write that you would do this "via BeanUtils", I suspect that you mean you
would write your own code for this using "BeanUtil.setProperties"?
(I know there is one example doing that). Just so you know, you do not have
to do that manually. You can let WW do it for you. Just set the names to
something like "myBean/oneProperty", for example:
<input type="hidden" name="myBean/oneProperty" value="abc"/>
That would be similar to:   myAction.getMyBean().setOneProperty("abc");

Cheers,

Dick

[EMAIL PROTECTED]






-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to