Re: Problem with server side validation

2007-08-03 Thread Laurie Harper

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with server side validation

2007-08-01 Thread Vamsi

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 not redirecting 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]