struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: [S2] Validation
Date Mon, 18 Feb 2008 14:12:36 GMT
--- carmi_cd <> 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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message