1、ACTION类(actionServlet)首先在web项目里的web.xml里进行注册,web.xml会在项目加载时同时加载:
<servlet>
<servlet-name>repairOrderServlet</servlet-name>
<servlet-class>com.tcl.scf.web.servlet.RepairOrderSaveServlet</servlet-class>
</servlet>
2、Struct的XML 文件控制着URL对控制器ACTION里的方法映射(actionServlet会通过这个XML把用户的请求发送到对应的控制器action方法里):
URL:${base}/balance/queryCanbeBalanceOrderList.action
配置: <action name="queryCanbeBalanceOrderList" class="com.tcl.scf.web.balance.BalanceOrderAction" method="queryCanbeBalanceOrderList">
<result type="json">
</result>
</action>
ACTION:public class BalanceOrderAction{}
方法:BalanceOrderAction{
public String queryCanbeBalanceOrderList(){}
}
<servlet>
<servlet-name>repairOrderServlet</servlet-name>
<servlet-class>com.tcl.scf.web.servlet.RepairOrderSaveServlet</servlet-class>
</servlet>
2、Struct的XML 文件控制着URL对控制器ACTION里的方法映射(actionServlet会通过这个XML把用户的请求发送到对应的控制器action方法里):
URL:${base}/balance/queryCanbeBalanceOrderList.action
配置: <action name="queryCanbeBalanceOrderList" class="com.tcl.scf.web.balance.BalanceOrderAction" method="queryCanbeBalanceOrderList">
<result type="json">
</result>
</action>
ACTION:public class BalanceOrderAction{}
方法:BalanceOrderAction{
public String queryCanbeBalanceOrderList(){}
}