Re: email field validation in struts-2

2007-06-04 Thread Martin Gainty
- From: "Leena Borle" <[EMAIL PROTECTED]> To: Sent: Monday, June 04, 2007 8:02 PM Subject: email field validation in struts-2 Hi, I have just started learning Struts-2. I am using sruts2-blank application on Tomcat server. I added email field in login file. Problem I have

Re: email field validation in struts-2

2007-06-04 Thread Jeromy Evans
Property names are case sensitive. Your property name is "userEmail" not useremail public void setUserEmail(String userEmail) (wrong) The params interceptor will try to call setUseremail(String). As this doesn't exist userEmail is null. (wrong) The validator will be calling

email field validation in struts-2

2007-06-04 Thread Leena Borle
Hi, I have just started learning Struts-2. I am using sruts2-blank application on Tomcat server. I added email field in login file. Problem I have is validation is failing. Even if I put email address in email field, framework comes back with the error message from my validation.XML file(Email fi