Niall: I took your recommendation and removed the action chaning from my struts config. I am still not seeing any error text. Here is my new action mapping:
<action path="/Search" name="searchForm" type=" com.actions.SearchAction" input="home.jsp" validate="true"> <forward name="success" path=" displaysearchresults.jsp"/> <forward name="error" path="home.jsp"/> </action> On 1/27/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > > On 1/26/06, Daniel Kies <[EMAIL PROTECTED]> wrote: > > 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"); > > Action chaining is generally not recommended... > > http://struts.apache.org/struts-doc-1.2.x/faqs/newbie.html#chaining > > ...however, although your input/error is mapped to another action - I > can't see anything that would prevent your errors being shown. Unless > your "LoadHomePage" is a redirect? Maybe you could try having your > input/error mapping straight to a jsp and see if the errors appear > then? Also, could you show the entry for "LoadHomePage" in your > struts-config.xml? > > Niall > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >