You may need to set up another Action Mapping with validate set to
false, but both could point to the same resources. 

Or, you may be able to just use department.jsp as the input resource.

> Prabha Desai wrote:
> 
> i have a page which calls an Action Form based on the action. Within
> the page, i have logic to view detail or not.
> I am trying to saveErrors and output them back to the page, but I keep
> getting an infinite loop.
> 
> Error:
> 
> path="" :action: Processing a POST for /department path="" :action:
> Looking for ActionForm bean under attribute 'departmentForm' path=""
> :action:  Recycling existing ActionForm bean instance of class
> 'com.netvendor.nvat.struts.forms.DepartmentForm' path="" :action:
> Populating bean properties from this request path="" :action:
> Validating input form properties path="" :action:   Validation
> error(s), redirecting to: /department.do
> 
> my main page  is department.jsp
> The action to view is viewItem on which I need to show the errors..
> Input on the struts-config page is department.do.
> The initial page is department.jsp with action of viewList.
> This is already within the Action class.
>                 if (!errors.empty()) {
>                     saveErrors(request, errors);
>                     saveToken(request);
>                     return (new ActionForward(mapping.getInput()));
>                 }
> 
> I need to write out errors if the user has not filled in all the
> items.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

Reply via email to