You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sharath karnati <ka...@yahoo.com> on 2009/07/21 00:13:44 UTC

Struts2 framework question.

Dear All,
 
   In strust2, we'll use struts.xml file for configuration.
 
   As per my knowledge, when server is started it will load struts.xml file into memory and it will parse this .xml file.  Depending upon URL it will navigates to required class and .jsp file accordingly.
 
   I have similar requirement where I need to load one .xml file into memory and depending upon URL I need to read column values
 
   <List>
    <Page URL="/employeeList.jsp" actionClass="com.EmployeeAction">
    <Column name="empNo" type="long"/>
    <Column name="empName” type=”String”/>
    <Column name="empDOJ” type=”Date” />
    <Column name="empDept” type=”String” /> 
    </Page>
 
    <Page URL="/orderList.jsp" actionClass="com.OrderAction">
    <Column name="orderNo" type="long"/>
    <Column name="orderName” type=”String”/>
    <Column name="orderDate” type=”Date” />
    <Column name="orderAddress” type=”String” /> 
    </Page>
  </List>
 
   Can anyone please let me know how to do this?? 
 
   Thanks in advance.
 
Regards,
Sharath.