ActionContext.PARAMETERS ActionContext.getContext().getParameters().get("greeting")可以得到这个值<s:property value="#parameters.greeting"/>这个我无法取得 如何修改能在标签中输出 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <s:property value="#context.parameters.greeting"/>试一下看看 我试了,依然是空的.<%= ActionContext.getContext().getParameters().get("greeting") %>为什么我在JSP写的时候 这个脚本代码 会出现 ActionContext cannot be resolved 我是少了文件 还是写错了 望指点 <%@ page import com.opensymphony.xwork.ActionContext %>Undefined attribute name "com.opensymphony.xwork.ActionContext"貌似不行 <%@ page import com.opensymphony.xwork.ActionContext %>Undefined attribute name "com.opensymphony.xwork.ActionContext"貌似不行是自己写错了 <%@ page import=“com.opensymphony.xwork2.ActionContext” %>这样能引用了 版主能教教在STRUTS2标签中 怎么做吗 Action中代码:ActionContext context=ActionContext.getContext();Map parameters =context.getParameters();parameters.put("greeting", "大大");JSP页面中代码<%= ActionContext.getContext().getParameters().get("greeting")%> 这个代码可以取出这个值<s:property value="#parameters.greeting" /> 换这个就不行 求知道的人帮忙 大家帮 找找错啊 快吐血了 我的jsp struts2 验证数字问题 谈论DWR与SSH 菜鸟刚接触Hibernate,想做个小型BBS系统,诸多疑问望大家帮忙解决 jsp中如何获取全路径? 日程管理 急啊!!一个关于jrun的问题 简单问题!!! 从MYSQL中取得的中文String在页面上显示为?????问号,哪位遇见过 Hibernate4.3.1 创建session工厂的问题 maven项目中jar包问题
我试了,依然是空的.
<%= ActionContext.getContext().getParameters().get("greeting") %>为什么我在JSP写的时候 这个脚本代码 会出现 ActionContext cannot be resolved 我是少了文件 还是写错了 望指点
<%@ page import com.opensymphony.xwork.ActionContext %>
Undefined attribute name "com.opensymphony.xwork.ActionContext"貌似不行
<%@ page import com.opensymphony.xwork.ActionContext %>
Undefined attribute name "com.opensymphony.xwork.ActionContext"貌似不行是自己写错了 <%@ page import=“com.opensymphony.xwork2.ActionContext” %>
这样能引用了 版主能教教在STRUTS2标签中 怎么做吗
ActionContext context=ActionContext.getContext();
Map parameters =context.getParameters();
parameters.put("greeting", "大大");JSP页面中代码
<%= ActionContext.getContext().getParameters().get("greeting")%> 这个代码可以取出这个值<s:property value="#parameters.greeting" /> 换这个就不行 求知道的人帮忙