jsp/javabean问题 ( 积分: 100 )

  • 主题发起人 主题发起人 nanwolf
  • 开始时间 开始时间
N

nanwolf

Unregistered / Unconfirmed
GUEST, unregistred user!
新手请各位大虾指点:
在浏览器中提示的错误(tomcat):
C:/Program Files/Apache Software Foundation/Tomcat 5.0/work/Catalina/localhost/_/org/apache/jsp/ch5/newuser_jsp.java:6: package ch5do
es not exist
import ch5.*;
===========================
ch5是我建的包,UserRegist,UserInfo是包里的两个javabean.
然后在jsp中调用如下:
<%@ page language="java"
errorPage="error.jsp"
import="ch5.*"
%>
<jsp:useBean id="userInfo"
class="ch5.UserInfo"
scope="page">
<jsp:setProperty name="userInfo"
property="*"/>
</jsp:useBean>
<jsp:useBean id="regist"
class="ch5.UserRegist"
scope="page"/>
 
新手请各位大虾指点:
在浏览器中提示的错误(tomcat):
C:/Program Files/Apache Software Foundation/Tomcat 5.0/work/Catalina/localhost/_/org/apache/jsp/ch5/newuser_jsp.java:6: package ch5do
es not exist
import ch5.*;
===========================
ch5是我建的包,UserRegist,UserInfo是包里的两个javabean.
然后在jsp中调用如下:
<%@ page language="java"
errorPage="error.jsp"
import="ch5.*"
%>
<jsp:useBean id="userInfo"
class="ch5.UserInfo"
scope="page">
<jsp:setProperty name="userInfo"
property="*"/>
</jsp:useBean>
<jsp:useBean id="regist"
class="ch5.UserRegist"
scope="page"/>
 
ch5不存在啊
 
不是,是因为ch5里的类出现错误而引起的,现在我自己已经搞定了。谢谢。
 
后退
顶部