| 发表于:2008-01-23 12:10:52 楼主 |
我写完的工程测试没有任何毛病 配置server.xml <host name="localhost" appbase="webapps" unpackwars="true" autodeploy="true" xmlvalidation="false" xmlnamespaceaware="false"> </host> <host name="www.jtjwz.com" appbase="webapps" unpackwars="true" autodeploy="true" xmlvalidation="false" xmlnamespaceaware="false"> <context path="" docbase="c:\program files\apache software foundation\tomcat 5.5\webapps\root\jtjwz" debug="0" reloadable="true"/> </host> 修改etc\hosts 127.0.0.1 localhost 127.0.0.1 www.jtjwz.com 运行http://www.jtjwz.com org.apache.jasper.jasperexception: /body.jsp(2,0) the value for the usebean class attribute webjtj.qian.qtcontent.selectcontent is invalid. body.jsp <%@ page import="webjtj.qian.aqcs.selectaqcs,webjtj.qian.qtcontent.selectcontent,java.util.*,webjtj.hou.xgxz.uploaddoc"%> <jsp:usebean id="slcon" scope="page" class="webjtj.qian.qtcontent.selectcontent"/> <jsp:usebean id="dc" scope="page" class="webjtj.hou.xgxz.uploaddoc"/> 没有配置域名绑定的时候都正常,配置后就出现这错误。 我的类都放到web-inf\classes里 还用放到其他的地方吗? 凡是有 <jsp:usebean> 标签的都这样,可是没配置之前怎么好用啊? |
|
|
|
|