struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emi Lu <em...@encs.concordia.ca>
Subject Re: addActionError() caused "Page not found (404)".
Date Thu, 14 Apr 2011 18:43:28 GMT
> Especially if there were no validation errors,
> only error messages added by the application code.

By the way, I agree with this very much!
Emi

>
> - Aner
>
> On 04/14/2011 12:00 PM, Dave Newton wrote:
>> On Thu, Apr 14, 2011 at 11:54 AM, Aner Perez<aner@ncstech.com> wrote:
>>> This is an annoying "feature" of the Workflow interceptor. If
>>> ValidationAware.hasErrors() returns
>>> true, the interceptor chain is stopped and Action.INPUT is returned.
>>> If you put error messages
>>> on your action, it will make hasErrors return true which will force
>>> the "input" result to be returned.
>>
>> How is it annoying? That's the interceptor's purpose in life, to
>> handle workflow. Errors usually change flow. "Mucking" with the
>> interceptor is as simple as changing the inputResultName property for
>> the specific action, although in this case I don't really see why it'd
>> be worth it.
>>
>> Dave
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


-- 
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
emilu@encs.concordia.ca        +1 514 848-2424 x5884

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message