Hi Lukasz,

Thanks for responding..

Snippet of Jsp:


<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>
        


My Struts-config:

<action name="MyAction" class="activationPendingAction">
                        <result name="input" type="tiles">MyForm</result>
                        <result name="failure" type="tiles">MyForm</result>
                        <result name="success" type="tiles">SuccessPage</result>
                </action>





Thats the snippet of my code.


Thanks,
Tauri.


Lukasz Lenart wrote:
> 
>>  But when I enter the value in the textbox and click submit again, the
>>  validation error for next is displayed correctly but entered value
>>  disappears in the textbox which is abnormal .
> 
> Maybe you are redirecting to the next page? Could you paste snippet
> for your struts.xml and jsp?
> 
> 
> Regards
> -- 
> Lukasz
> 
> ---------------------------------------------------------------------
> 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-tp16089678p16116146.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]

Reply via email to