JiveJdon Community Forums
在线97人   首页   主题总表   培训咨询   精华   查搜   注册    登陆
首页 » 论坛 » 开源项目大家谈
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
Go 总共有 0 回复 / 1
 发表新帖子   回复该主题贴
expeditioner

悄悄话
发表文章: 15
注册时间: 2004年12月13日 15:43
标记处理程序中使用tagUtil.message的问题. 2004年12月23日 20:18 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
标签列表
运行环境:struts1.2.4,resin-2.1.11,jdk1.4.2(05)
在自定义标签处理程序中使用如下代码:

...
TagUtils tagUtil=org.apache.struts.taglib.TagUtils.getInstance();//(1)
String stringKey=
"button.first";//(2)
String firstString=tagUtil.message(pageContext,Globals.MESSAGE_KEY,Globals.LOCALE_KEY,stringKey,null);
//(3)
...

请问第(3)行的tagUtil.message方法中的stringKey参数(即"button.first")在哪里设置,
我在Struts的ApplicationResources.properties文件中设置好象不好用,总是抛出如下异常.
500 Servlet Exception
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.ACTION_MESSAGE
at org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1233)
at org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082)
...
兄弟姐妹们快帮我啊,我目前还没有找到相关资料.先谢谢了.
这个主题有 0 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache 缓存 DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Seam Spring Struts
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
查询本论坛内 回复超过的热门帖子
     回复该主题贴
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
 

手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com
anti spam