1.struts2 action如何向JSP的JS函数传值 action中定义变量 public class TestAction extends ActionSupport implements ServletRequestAware { private String state = "test"; } JSP的JS函数中引用变量 <script type=text/javascript> function getStatus() { var t = "${st…
1.struts2 action如何向JSP的JS函数传值 action中定义变量public class TestAction extends ActionSupport implements ServletRequestAware { private String state = "test";} JSP的JS函数中引用变量<script type=text/javascript> function getStatus() { var t =…