The below piece of code was written in struts-config file.but i am not able to understand it.
<action path="/showWelcome"
type="com.code.base.presentation.struts.actions.StrutsIoCAction"
name="LoanDetailPageLoadForm"
parameter="GET_WELCOME_PAGE"
input="welcomePage"
validate="false"
scope="request">
<set-property property="requestDTOKeyName" value="ItemDataRequest" />
<set-property property="responseDTOKeyName" value="ItemDataResponse" />
<set-property property="exceptionDTOKeyName" value="ProfileSekerException" />
<set-property property="businessServiceId" value="ItemsDataMgmtService" />
<forward name="success" path="welcomePage" />
<forward name="failure" path="sysError" />
</action>
My question is
- what is the usage of
pathattribute? - what is the usage of
parameterattribute? - what is the usage of
inputattribute? - what is the usage of
<set-Property>?
Help me guys on this.
Note:
as per my understanding there should be “showWelcome.jsp” page in the application but it is not there.(then what is use of that?)
But if you’re going to use struts for a considerable time, QA won’t get you far, read some docs on struts’ config file.