tags:

views:

17

answers:

2
 Hi,
    below is the code in struts config file
  <action-mappings      
  type="com.jpmc.invconfirm.presentation.struts.controllers.InvestorConfirmActionMapping">

   <action path="/getLoanDetail" 
            type="com.jpmc.invconfirm.base.presentation.struts.actions.StrutsIoCAction" 
      name="InvConfLoanDetailPageLoadForm" 
      parameter="GET_LOAN_DETAIL"  
input="welcomePage" 
validate="false"
      scope="request">

        <forward name="success" path="loandetail" />
        <forward name="failure" path="sysError" />
    </action>
</action-mappings>

 My question is,
  1. what the "type" attribute in <action-mappings>  element will do.
  2. what the "PARAMETER" attribute in <action> element will do.  

Thanks in advance.for you help

A: 

"type" refers to the classname of the Action. "parameter" refers to the request parameter for the Action.

May I suggest finding a good book on the Struts framework? There are several out there.

@Edmanet ..in the above code they are using type attribute in two places 1. inside<action-mappings> element and other one is inside <action>element ...what is the difference of it??
Manu