useBean类属性的值...无效 [英] The value for the useBean class attribute ... is invalid
本文介绍了useBean类属性的值...无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用一个Java文件 SaveProp
,它写在一个包 user
中。类文件已放在 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屋!
查看全文