struts2的Action参数详细说明

struts2的Action参数详细说明


2024年6月18日发(作者:)

Struts2 Action参数详细说明

1,Action的配置格式基本为:

该结果名称所对应的JSP页面

如:

/test/

访问时:

访问myaaAction

2,method属性,该属性可以把一个类的多个方法映射为多个Action,如:

类文件

public class MethodAction extends ActionSupport

{

public String add()

{

return SUCCESS;

}

public String delete()

{

return SUCCESS;


发布者:admin,转转请注明出处:http://www.yc00.com/web/1718703012a2751961.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信