struts2 示例
来源:百度文库 编辑:神马文学网 时间:2024/10/04 06:46:53
1、strutsi必需包
commons-logging-api-1.1.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar
struts2-core-2.0.12.jar
xwork-2.0.6.jar
commons-fileupload
commons-io 2、struts.xml传参:
method="findArticlesByFieldIdMethod">
/admin/article/showArticleList.jsp
/admin/adminError.jsp
action类成员变量,get and set 方法注入
method="updateArtCommMethod">
findArticlesByFieldId
/admin/adminError.jsp
页面接受参数格式:${fieldId}${fieldId.abc}
commons-logging-api-1.1.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar
struts2-core-2.0.12.jar
xwork-2.0.6.jar
commons-fileupload
commons-io 2、struts.xml传参:
method="findArticlesByFieldIdMethod">
/admin/article/showArticleList.jsp
action类成员变量,get and set 方法注入
method="updateArtCommMethod">
findArticlesByFieldId
页面接受参数格式:${fieldId}${fieldId.abc}