struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Thompson <elephant...@gmail.com>
Subject Re: Struts Validator Framework: client-side validation problem
Date Fri, 02 Sep 2011 12:41:28 GMT
I'm not familiar with the <html:form> tag; does that auto-include the script
defining the validateForm() function?

If not, I'd suggest a missing <script> in the html as a likely culprit ...
at least, without any further info!

Brian



On Fri, Sep 2, 2011 at 5:47 AM, Dave Newton <davelnewton@gmail.com> wrote:

> What happens? What do you expect to happen? What's your validation config?
> We need something beyond "it doesn't work".
>
> Dave
>  On Sep 2, 2011 3:47 AM, "RajasekharReddy" <pamireddys@gmail.com> wrote:
> > I am trying to implement Client-Side Validations using struts 1.3
> >
> > But server Side validations are working properly, but Client-Side
> > Validations are not working properly.
> >
> > My code is as follows....
> >
> >
> >
> >
> > <%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld" %>
> > <%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>
> > &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01
> > Transitional//EN&quot;&gt;
> > <html:html>
> > <head>
> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> > <title>LoginPage</title>
> > </head>
> >
> > <body>
> > <center>
> > <html:javascript formName="loginForm"/>
> >
> > <html:form action="/login.do" onsubmit="return validateLoginForm(this)">>
> > <table>
> > <tr><td><bean:message key="uname"/> </td>
> > <td><html:text property="uname"/></td>
> > <td><html:errors property="uname"/> </td></tr>
> >
> > <tr><td><bean:message key="upass"/> </td>
> > <td><html:password property="upass"/></td>
> > <td><html:errors property="upass"/> </td></tr>
> > </table>
> > <html:submit value="Login" />
> > </html:form>
> > <br><em><strong>Click here to &nbsp; <html:link
> > href="SignUp.jsp">SignUp</html:link> </strong></em><br>
> > </center>
> > </body>
> > </html:html>>
> >
> >
> > --
> > View this message in context:
>
> http://struts.1045723.n5.nabble.com/Struts-Validator-Framework-client-side-validation-problem-with-submitting-buttons-tp3481073p4761399.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message