Hi all,

Ok, go along with me for a minute heh, I’m wondering if there is some really cool WebWork way to accomplish what I’m thinking.

 

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.

 

 

Regards,

-Andre Mermegas

 

Reply via email to