我希望在点击html页面中的html链接时执行Struts2操作.我的第一个问题是,是否可以在html页面(而不是JSP)中执行Struts2操作?如果是,请查看下面的代码:
home.html的
HREF = "home.action"
在struts.xml
action name ="home"class ="com.struts.action.HomeAction"
Run Code Online (Sandbox Code Playgroud)result name="Success">loginJSP.jsp
*****web.xml*****我做了过滤映射,以便所有内容都转到Struts2