| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 682 人关注过本帖
标题:[求助]关于struts资源文件读取不了的问题
只看楼主 加入收藏
apang_007
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2005-10-21
收藏
 问题点数:0 回复次数:1 
[求助]关于struts资源文件读取不了的问题

这个struts的模型很简单,看着孙卫琴的源码写的,可是部属到weblobic8下的时候,跳出异常,说找不到"hello.title"
我把原码也附上,兄弟姐妹们,帮个忙,把我的错误找出来,谢谢了!!!

Error page hellojsp


An error occurred in the bean. Error Message is: Cannot find bean hello.title in any scope
Stack Trace is :

javax.servlet.jsp.JspException: Cannot find bean hello.title in any scope
	at org.apache.struts.taglib.TagUtils.lookup(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;(TagUtils.java:992)
	at org.apache.struts.taglib.bean.MessageTag.doStartTag()I(MessageTag.java:212)
	at jsp_servlet.__hellojsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(__hellojsp.java:169)
	at weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(JspBase.java:33)
	at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:526)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6981)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
	at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
	at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3892)
	at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2766)
	at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
	at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
	at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
NihW3eDE.rar (1.96 KB) [求助]关于struts资源文件读取不了的问题


搜索更多相关主题的帖子: struts 资源 文件 
2006-05-30 22:46
apang_007
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2005-10-21
收藏
得分:0 
hello.title是资源文件里面的一个key
2006-05-30 22:47
快速回复:[求助]关于struts资源文件读取不了的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017318 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved