Thanks Lukasz it worked for textfields using <s:textfield> But I have the same problem when I use it for <s:password>
this is my listbox: <tr> <td> <s:select label="Country" name="country" headerKey="1" headerValue="Please Select" list="#{'AU':'Australia', 'CN':'China', 'HK':'Hong Kong', 'IN':'India', 'ID':'Indonesia', 'JP':'Japan', 'MY':'Malaysia', 'NZ':'New Zealand', 'PL':'Philippines', 'SG':'Singapore', 'KR':'South Korea', 'TW':'Taiwan', 'TH':'Thailand'}"/></td> </tr> And my password fields: <tr> <td><s:password name="pwd" label="Your Password"/></td> </tr> <tr> <td><s:password name="confirmPassword" label="Confirm your Password" /></td> </tr> Please suggest. Thanks, Tauri I used Lukasz Lenart wrote: > >> <form name="myForm" method="post" action="MyAction.do" validate="true"/> >> <tr> >> >> <td width="115">First Name</td> >> >> <td width="142"><input type="text" name="firstName" id="firstName" >> class="form_field"></td> >> >> >> <td> >> >> >> <s:fielderror> >> >> <s:param>firstName</s:param> >> >> </s:fielderror> >> >> </td> > > But as I see, you don't use <s:textfield> for your form and that's way > you don't see values in the form. If you want to add html tags as > above, use theme=simple and s:textfield > > > Regards > -- > Lukasz > > http://www.linkedin.com/in/lukaszlenart > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Struts2-Annotation-based-Validation-tp16089678p16118342.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]