67,550
社区成员




<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.ui.theme" value="css_xhtml"/>
<constant name="struts.devMode" value="true"/>
<constant name="struts.objectFactory" value="spring" />
<!-- <constant name="struts.objectFactory.spring.autoWire" value="name"/> -->
<package name="default" extends="struts-default" namespace="">
。。。。
</package>
<package name="root" extends="struts-default" namespace="/">
</package>
<package name="auth" extends="struts-default" namespace="/manage">
。。。
</package>
<package name="bizRCS" extends="struts-default" namespace="/rcs">
<action name="company" class="companyAction" >
<result name="success" type="dispatcher">/jsp/biz/rcs/companyInformation.jsp</result>
</action>
</package>
</struts>
...
<bean id="companyAction" class="com.liccd.eabp.web.action.CompanyAction" scope="prototype">
<property name="service" ref="defaultCompanyServiceImpl" />
<property name="carService" ref="defaultCarServiceImpl" />
</bean>
...
public class CompanyAction extends BaseAction<Company> {
private static final long serialVersionUID = -3564264901895152537L;
public CompanyAction() {
super();
System.out.println("111111111111111111111111111111111111111");
System.out.println(this.hashCode());
}
private ICompanyService companyService = (ICompanyService)this.service;
private ServiceInterface<Car> carService;
private Page<Car> carPage = new Page<Car>(25);
@Override
@Auth(authValue=AuthType.READ,resourceCode="company")
public String execute() throws Exception {
ICompanyService service = (ICompanyService) this.service ;
QueryResult<Car> qr = service.listCarByCompany(guid,start,limit) ;
carPage.setResult(qr.getResults());
carPage.setTotalCount(qr.getTotal());
//System.out.println(WebUtil.getUser().getName());
return SUCCESS;
}
public void setCompanyService(ICompanyService companyService) {
this.companyService = companyService;
}
public ServiceInterface<Company> getCompanyService() {
return companyService;
}
public ServiceInterface<Car> getCarService() {
return carService;
}
public void setCarService(ServiceInterface<Car> carService) {
this.carService = carService;
}
public void setCarPage(Page<Car> carPage) {
this.carPage = carPage;
}
}