useBean 类属性的值...无效 [英] The value for the useBean class attribute ... is invalid
本文介绍了useBean 类属性的值...无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用user
包中编写的Java 文件SaveProp
.类文件已放置在 WEBINF/classes
中.以下是导致问题的两行.
I want to use a Java file SaveProp
which is written in a package user
. The class file has been placed in WEBINF/classes
. Below are the two lines which cause the issue.
jsp:useBean id="user" class="user.SaveProp" scope="session"
jsp:setProperty name="user" property="*"
它抛出:
The value for the useBean class attribute user.SaveProp is invalid
我使用的是 Tomcat 6.0.
I'm using Tomcat 6.0.
推荐答案
你应该把文件放在WEBINF/classes/user下
You should put the file under WEBINF/classes/user
这篇关于useBean 类属性的值...无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文