Either one would work, to be consistent with other struts tags I am using, html:text is probably better. This doesn't affect the validation issue.
On 1/26/06, Thomas Garben <[EMAIL PROTECTED]> wrote: > > Dan, > > Should you be using" > <html:text > instead of: > <input type="text" name="searchString" size="30" > > <input type="submit" name="Submit" value="Go"> > > Tom > > > > > > Daniel Kies <[EMAIL PROTECTED]> > 01/26/2006 04:07 PM > Please respond to > "Struts Users Mailing List" <user@struts.apache.org> > > > To > Struts Users Mailing List <user@struts.apache.org> > cc > > Subject > Validation problems > > > > > > > Hello. I am trying to do some standard validations, but I am failing. Any > ideas why? I know the errors are getting raised as the request is > forwarding back to the initial page making the request, but the error > messages are not showing on the page. Any help is appreciated! > > Struts config DynaActionForm: > <form-bean name="searchForm" > type="org.apache.struts.action.DynaActionForm"> > <form-property name="searchString" > type="java.lang.String"></form-property> > > <action path="/Search" name="searchForm" type="com.actions.SearchAction" > input="/LoadHomePage.do" validate="true"> > <forward name="success" path="displaysearchresults.jsp"/> > <forward name="error" path="LoadHomePage.do"/> > </action> > > > jsp: > <html:form action="/Search"> > <html:errors/> > <input type="text" name="searchString" size="30" > > <input type="submit" name="Submit" value="Go"> > </html:form> > > if(searchString.equals("kill")){ > ActionErrors errors = new ActionErrors(); > errors.add("errors", new ActionError("errors", "errors")); > saveErrors(request, errors); > > return mapping.findForward("error"); > > >