actually, S2 have a equivelent to spring's command object. S2 can
populate the model object for you, if you get right interceptor. and
when a invalid submissiom comes in, s2 action can forward you back to
the input page with error messages. s2 also has an oblivious advantage
against spring mvc, that is s2 can do whatever spring mvc can do with
only one type of action.

2008/1/30, Musachy Barroso <[EMAIL PROTECTED]>:
> I am feeling really dumb now, that doesn't sound "very easy" at all
> :). Could you re-write your question for non-spring mvc  users?
>
> musachy
>
> On Jan 30, 2008 2:36 PM, claym <[EMAIL PROTECTED]> wrote:
> >
> > One of the things I really liked about Spring MVC was the fact that it was
> > very easy to control the flow of a request. You could use referenceData()
> to
> > add data that was needed on the page but not necessarily form related,
> then
> > formBackingObject() for the actual pre-submission form population, and
> then
> > control the processing of pre-submit and post-submit with showForm() and
> > onSubmit()
> >
> > It was also smart enough to repopulate things like referenceData if there
> > was an invalid submission.
> >
> > Part of this was due to the fact that there were lots of different types
> of
> > controllers - all the referenceData and formBackingObject wasn't necessary
> > if you're just displaying a non-form page, but you could always use
> > SimpleFormController if you needed it.
> >
> > I'm not seeing that kind of behavior in Struts 2. I'm not saying it's
> > required functionality, but I certainly appreciated it in Spring MVC.
> >
> > Is it there and I'm not seeing it? How would you control the request like
> > this?
> > --
> > View this message in context:
> http://www.nabble.com/Question-about-Struts-2-Flow-Control-tp15190024p15190024.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best Regards
Wong Tseng

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

Reply via email to