Re: struts2 disable validation on page load

2012-10-06 Thread Chris Pratt
Set the failure result of the processAdd to redirect to the add action. (*Chris*) On Sat, Oct 6, 2012 at 10:30 PM, prashid wrote: > Thanks, > > if I do processing as than the > URL will change to /processAdd from /add if input error is generated. How I > stop it from changing URL thus not va

Re: struts2 disable validation on page load

2012-10-06 Thread prashid
Thanks, if I do processing as than the URL will change to /processAdd from /add if input error is generated. How I stop it from changing URL thus not validate on page load. That's what I want? On Sun, Oct 7, 2012 at 9:19 AM, Chris Pratt [via Struts] < ml-node+s1045723n5710744...@n5.nabble.co

struts2 disable validation on page load

2012-10-06 Thread prashid
I am using xml based validation. *Problem:* I don't want validation to perform on input form when page loaded first time because all the fields are blank for user to fill in. Suppose for register form to add new student. It should perform once I click the button. *Note:* /I want to retain same u

Re: Email validation regex - client vs. server

2012-10-06 Thread Lukasz Lenart
2012/10/6 : > Hi all, > > I'm using @EmailValidator annotation to check an email address. > The Struts2 documentation http://struts.apache.org/2.x/docs/email-validator. > html(http://struts.apache.org/2.x/docs/email-validator.html) mentions that > following regular expression is being used to chec

Email validation regex - client vs. server

2012-10-06 Thread
Hi all, I'm using @EmailValidator annotation to check an email address. The Struts2 documentation http://struts.apache.org/2.x/docs/email-validator. html(http://struts.apache.org/2.x/docs/email-validator.html) mentions that following regular expression is being used to check the email address: \\