You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vamsi <va...@gmail.com> on 2007/08/02 07:14:49 UTC

Problem with server side validation

Hi all,

          I am doing validations using struts2 validation framework.
Validations(Server-side validations) are working fine but my problem is
error messages are not getting displayed.when I am doing client-side
validations messages were getting displayed but the samething was not
working with server side validations

More Info on this : I am redirect the result it's a normal result (Not using
type="redirect" or "redirect-action")

All inputs are welcome and thankful to everyone 

regards
Vamsi Krishna

         
    regards

    Vamsi Krishna

-- 
View this message in context: http://www.nabble.com/Problem-with-server-side-validation-tf4204157.html#a11958534
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: Problem with server side validation

Posted by Laurie Harper <la...@holoweb.net>.
Vamsi wrote:
> Hi all,
> 
>           I am doing validations using struts2 validation framework.
> Validations(Server-side validations) are working fine but my problem is
> error messages are not getting displayed.when I am doing client-side
> validations messages were getting displayed but the samething was not
> working with server side validations
> 
> More Info on this : I am redirect the result it's a normal result (Not using
> type="redirect" or "redirect-action")

I'm confused; are you redirecting, or not redirecting? If you are doing 
a redirect, then the behaviour you are seeing is expected. Validation 
error messages are stored in request scope and so are lost on a 
redirect. The easiest solution in that case would be to not redirect in 
this case. Alternatively, the Message Store Interceptor [1] may help.

If you are *not* redirecting, I don't know what's happening. You'll need 
to supply some more details, such as which theme you're using, what your 
JSP looks like, how your validation is configured, etc.

[1] http://struts.apache.org/2.x/docs/message-store-interceptor.html

L.


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