Oh , I have fixed it.  :)
The bug is  in the login.jsp , I wrote
<s:form action="*login.action*" validate="true" namespace="/logreg">
..
*login.action is a Url .. So the client side validation did not work. *

2009/4/14 白鹏 <bill.tech...@gmail.com>

> I try to use the validation framework  in the *client side* But failed.
>
> It is a  ' login' scenario. In the html source , I find
> <script type="text/javascript" src="/LearnDataProject/struts/xhtml/*
> validation.js*"></script>
>     <script type="text/javascript" src="/LearnDataProject/struts*/utils.js
> *"></script>
> <form id="login" onsubmit="return *validateForm_login();*"
> action="login.action" method="post"
> onreset="clearErrorMessages(this);clearErrorLabels(this);"
> >
> but there isn't the function *validateForm_login(); in the validation.js
> or utils.js.  *
>  The browser told me that there was something wrong with *the
> validateForm_login(); No such an object ! *.
>
> 2009/4/13 Dave Newton <newton.d...@yahoo.com>
>
> ?? wrote:
>>
>>> Has anyone use the validation framework of struts 2.1.6??
>>>
>>
>> Yes.
>>
>> Dave
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>

Reply via email to