struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mteccles <mark.t.ecc...@googlemail.com>
Subject Re: <s:fielderror> unexpected behaviour
Date Tue, 04 Mar 2008 10:21:50 GMT

Now i just thought the action is wired by spring as a singleton, and the
fielderrors are a property of this object... maybe forms should not be
singletons. still like to know thoughts



mteccles wrote:
> 
> Hi,
> 
> I developed a form that does some validation. I included validation and
> workflow interceptor in the actions stack.
> 
> The validation is very simple, it makes sure one field is a minimum
> length. It works fine except for the following scenario:
> 
> 1) submit invalid form (input is returned with field error showing)
> 2)fix input and re-submit
> 
> result: 
> 
> field error is still there therefore workflow sends it to input again.
> Surely the fielderror should of been popped from the stack in the
> <s:fielderror> tag? Do i have to manually remove the error from the stack
> or is there a bug in my solution?
> 

-- 
View this message in context: http://www.nabble.com/%3Cs%3Afielderror%3E-unexpected-behaviour-tp15824230p15824298.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message