In your description, you said:

"Input on the struts-config page is department.do."

I believe that is the problem. You are specifying an Action path instead of
a JSP path for the input parameter in your struts-config.xml. In your
<action> element, you need to specify:

<action ... input="/department.jsp" ...>

instead of specifying the department.do action.

Hope this helps.

--
Martin Cooper


----- Original Message -----
From: "Prabha Desai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 6:22 AM
Subject: ACtionError Issues


> 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.
>
>


Reply via email to