You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Colic <al...@pop-ware.com> on 2001/04/06 16:45:01 UTC

Newbie question #4

Last question. Could someone explain this part of struts.xml

Am I correct that:

path=form action path that is submitting this request
type=class to handle this request
name=name of form bean to handle this request
scope=scope of from bean
input=path of page submitting this request
forward=local settings for where to go on success or failure. You can define
them locally or use a global forward setting.

 <!-- Process the requisition header data -->
    <action    path="/reqHeader"
               type="com.popware.rd.reqPro.reqHeaderAction"
               name="reqHeaderForm"
               scope="request"
               input="/pwReqHeader.jsp">
		   <forward name="success"              path="/index.jsp"/>
		   <forward name="failure"              path="/failed.jsp"/>
    </action>

If that is the case then way am I getting the below error when I submit the
form on page /pwReqheader.jsp.

Error creating Action instance for path '/reqHeader', class name
'com.popware.rd.reqPro.reqHeaderAction'

The class name is correct and it exists and it extends Action.

Any help is appreciated.

Regards

Alex