Moving back to the list.

--- On Sat, 9/20/08, 928572663 <[EMAIL PROTECTED]> wrote:
> If you believe that your suggestions are correct, then please
> modify my samples, test them, and email them back to me.

Sure, if you wash my dishes and break down a bunch of empty boxes and put them 
into my storage unit...

I'll consider writing up a summary of the various ways to accomplish what 
you're trying to do and putting it on the wiki, although most of it will be an 
aggregation of info that's already there.

> But I havent' seen anything in the framework yet on how to have a 
> single form call different functions in the same action class based 
> on which button was pushed. 

That's what <s:submit...>'s "method" attribute does.

> I'm on the verge of ditching struts2 as not being a viable framework 
> for working with session-oriented data, so, if you believe in the 
> framework, then please help by providing a working sample. 

I'm not sure how to react to that; I work with session data all the time.

There are any number of ways to do what you're trying to do: ScopedModelDriven 
(works, but a little clunky to configure IMO), a manual session object 
retrieval in a couple ways, direct mapping to the session map (what you're 
sort-of doing), a custom interceptor that injects the session bean into the 
action, etc.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to