you can return the result you desire from the Action which implements
parameterNameAware interceptor
<action name="someAction" class="com.examples.SomeAction">
<interceptor-ref name="params"/>
<result name="success">good_result.ftl</result>
</action>
http://struts.apache.org/2.x/docs/parameters-interceptor.html
Bon Chance,
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a confidential nature and Sender does not
endorse distribution to any party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
> Date: Mon, 8 Sep 2008 23:02:49 +0200
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: Re: prepare action for input after validation errors
>
> I don't have any input method. I have a displayForm method, and a submitForm
> method.
>
> The displayForm method returns an input *result*, which is a default result
> pointing to a JSP. This JSP has to display some data coming from the
> database. I'd like this same JSP to be displayed when the input *result* is
> returned by the workflow interceptor after validation fails. My problem is
> that I don't know how to make Struts get the data necessary to render the
> input JSP. This data is prepared by the displayForm action method when it's
> displayed initially, but when the form is submitted and a validation error
> occurs, Struts goes directly to the input JSP without calling any action or
> other method. There is no (AFAIK) equivalent of the prepare interceptor for
> *results*.
>
> The way that seems to be suggested by the documentation is to prepare the
> data by calling an action from the JSP itself, but I don't like this solution
> very much because, if the data preparation method throws an exception, it
> won't be handled correctly (since the HTML has already been partly sent to
> the browser).
>
> I could also chain the actions by making the input result chain to another
> action method, but this is discouraged by the doc (see
> http://struts.apache.org/2.x/docs/action-chaining.html).
>
> JB.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/