struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: [S2] Validation
Date Mon, 18 Feb 2008 14:12:36 GMT
--- carmi_cd <carmi_dom@yahoo.com> wrote:
> Hi I have an application in Struts 2, my problem is when 
> i try to submit the form even if there are values in the 
> form input box it stills give validation message to the 
> user to enter values for the required fields. 
>
> here is my form fields.
> <s:textfield name="employeeId" label="Employee ID" labelposition="left"
> value="%{edituser.empId}" size="10"/>
> <s:textfield name="lastname" label="Lastname" labelposition="left"
> value="%{edituser.lastName}" size="30"/>

You're validating on "lastName" etc; do you have getters and setters for
"lastName" and so on, or are you assuming there's a getEdituser() and all the
values are being set on the edituser bean?

Dave



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


Mime
View raw message