Is there a "soft" way to get the name of the tile definition into this
hidden field without hard coding it someplace?  I really dislike coding
names and places beyond the XML file itself.  I already have a BaseAction
that extends ActionSupport that is starting to make me ill!  I really would
have guessed that S2 would have offered a way to *discover* where control
should return in the event of validation failure.  Right now, my BaseAction
property is not even helping since the Action is being replaced on each
request!!!

On 5/2/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:

Struts never knows what is *the page* that failed. The action gets an http
request, but it doesn't know what was the page, with the submit in it,
that
caused the request. You can pass a hidden field with the name of the
page(let's say "inputPage"), and then have a result like this:

<result name="input"
           type="tiles">
           ${#parameters.inputPage}
</result>

musachy

On 5/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> How do I get the Action input to return to *the* page that failed the
> validation?  It could be addPage, UpdatePage, or deletePage.
>
> <result name="input"
>             type="tiles">
>             *_tileThatFailedValidation_*
> </result>
>
> --
> Scott
> [EMAIL PROTECTED]
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd




--
Scott
[EMAIL PROTECTED]

Reply via email to