当前位置: 技术问答>java相关
为什么在jsp中import 我的包,说找不到呢?
来源: 互联网 发布时间:2017-03-11
本文导语: 联系QQ:20866956,我在做j2ee的项目,请各位多多交流。 我编了一个包,名gjgs,但是,为什么我在jsp中 调试信息如下: Compilation of 'H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java' failed: ...
联系QQ:20866956,我在做j2ee的项目,请各位多多交流。
我编了一个包,名gjgs,但是,为什么我在jsp中
调试信息如下:
Compilation of 'H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java' failed:
--------------------------------------------------------------------------------
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:22: package gjgs does not exist
probably occurred due to an error in /Login.jsp line 16:
"%>
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:51: cannot resolve symbol
probably occurred due to an error in /Login.jsp line 18:
public MySessionHome mySessionHome = null;
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:117: cannot resolve symbol
probably occurred due to an error in /Login.jsp line 36:
mySessionHome = (MySessionHome) ctx.lookup("MySession");
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:127: cannot resolve symbol
probably occurred due to an error in /Login.jsp line 45:
MySession mySession = mySessionHome.create();
我编了一个包,名gjgs,但是,为什么我在jsp中
调试信息如下:
Compilation of 'H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java' failed:
--------------------------------------------------------------------------------
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:22: package gjgs does not exist
probably occurred due to an error in /Login.jsp line 16:
"%>
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:51: cannot resolve symbol
probably occurred due to an error in /Login.jsp line 18:
public MySessionHome mySessionHome = null;
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:117: cannot resolve symbol
probably occurred due to an error in /Login.jsp line 36:
mySessionHome = (MySessionHome) ctx.lookup("MySession");
H:beauser_projectswxgjgs.comquery.wlnotdeleteDefaultWebApp_DefaultWebApp_1883389jsp_servlet__login.java:127: cannot resolve symbol
probably occurred due to an error in /Login.jsp line 45:
MySession mySession = mySessionHome.create();
|
把你所有的class考到classes目录下