
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
<field name="username">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message>Login name is required</message>
</field-validator>
</field>
<field name="password">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message>Password is required</message>
</field-validator>
</field>
</validators>
am using the above given LoginAction-validation.xml fro Login Action class.and the Login form is using the default theme.Validation is happening perfectly.
But the problem is even if i am enering the values the previous field errors persist in the page.
For eg:if i am not entering both username n password it ll show me 2 error messages saying "username is required" and "password is required".Next time even if i am enering the username the first message("username is required") is not getting removed.It still shows both the messages.Can you help me pls!

Hey,
Try this out!!!!!!!!!!!!!
Regards, Glitsys www.glitsys.com

Hey,
Try this out
<action name="viewConfig" method="input" class="com.action.EmpConfigAction">
<result name="input" type="tiles">employeeConfigure </result>
</action>
<action name="*Config" method="{1}" class="com.action.EmpConfigAction">
<result name="saveSuccess" type="tiles">employeeConfigure</result>
</action>
Regards,
Glitsys
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.