You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by MaheshK <ma...@gmail.com> on 2008/07/14 21:05:41 UTC
Issue in Validation value Stack - Duplicate error messages
Hi All,
I am using Strut 2.0 and tiles with Spring and I am having the following
issue in the validation framework.
When ever I submit a form with error in a field, subsequent submission of
the same form (without valid value), generates duplicate error messages.
i.e If i leave the first name field as blank and submit the page, i get a
valid error message due to the validations in place. But if i submit the
same page again as it is, I am getting duplicate error messages for the same
field again.
Also if I enter valid values in the form field after the error message is
displayed, I am not able to get through the page. I am stuck at the error
page itself.
Please find below the code snippets:
spring-config.xml
---------------
Struts.xml
---------
page.applicationStart
addProjectPageDisplay
displayProjects
page.applicationStart
"commonAppStack" is a custom made interceptor stack which doesn't have any
fancy stuff.
Any pointers to this issue is appreciated.
Thanks
Mahesh K
--
View this message in context: http://www.nabble.com/Issue-in-Validation-value-Stack---Duplicate-error-messages-tp18450806p18450806.html
Sent from the Struts - User mailing list archive at Nabble.com.
Re: Issue in Validation value Stack - Duplicate error messages
Posted by MaheshK <ma...@gmail.com>.
that worked like a gem...thanks!
Lukasz Lenart wrote:
>
> Did you put singleton=false or scope=prototype for action's beans in
> spring config?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Issue-in-Validation-value-Stack---Duplicate-error-messages-tp18450806p18451791.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
Re: Issue in Validation value Stack - Duplicate error messages
Posted by Lukasz Lenart <lu...@googlemail.com>.
Did you put singleton=false or scope=prototype for action's beans in
spring config?
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org