struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sharath karnati <karna...@yahoo.com>
Subject Struts2 framework question.
Date Mon, 20 Jul 2009 22:13:44 GMT
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.


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message