JSP网页代码如下:
<%@page import="wapbase.toUnicode"%>
<html>
Test
</html>但始终显示错误如下:
Compilation of 'D:\bea\user_projects\mydomain2\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_4608447\jsp_servlet\__index.java' failed:
--------------------------------------------------------------------------------
D:\bea\user_projects\mydomain2\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_4608447\jsp_servlet\__index.java:17: cannot resolve symbol
probably occurred due to an error in /index.jsp line 1:
<%@page import="wapbase.toUnicode"%>
--------------------------------------------------------------------------------
Full compiler error(s):
D:\bea\user_projects\mydomain2\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_4608447\jsp_servlet\__index.java:17: cannot resolve symbol
symbol : class toUnicode
location: package wapbase
import wapbase.toUnicode; //[ /index.jsp; Line: 1]
^
1 error
--------------------------------------------------------------------------------
Fri Nov 18 15:09:45 CST 2005
<%@page import="wapbase.toUnicode"%>
<html>
Test
</html>但始终显示错误如下:
Compilation of 'D:\bea\user_projects\mydomain2\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_4608447\jsp_servlet\__index.java' failed:
--------------------------------------------------------------------------------
D:\bea\user_projects\mydomain2\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_4608447\jsp_servlet\__index.java:17: cannot resolve symbol
probably occurred due to an error in /index.jsp line 1:
<%@page import="wapbase.toUnicode"%>
--------------------------------------------------------------------------------
Full compiler error(s):
D:\bea\user_projects\mydomain2\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_4608447\jsp_servlet\__index.java:17: cannot resolve symbol
symbol : class toUnicode
location: package wapbase
import wapbase.toUnicode; //[ /index.jsp; Line: 1]
^
1 error
--------------------------------------------------------------------------------
Fri Nov 18 15:09:45 CST 2005
不知道你用什么服务器
Full compiler error(s):
D:\bea\user_projects\mydomain2\myserver\.wlnotdelete\DefaultWebApp_DefaultWebApp_7001159\jsp_servlet\__index.java:17: cannot access wapbase.toUnicode
bad class file: D:\bea\user_projects\mydomain2\applications\DefaultWebApp\WEB-INF\classes\wapbase\toUnicode.class
class file contains wrong class: WapBase.toUnicode
Please remove or make sure it appears in the correct subdirectory of the classpath.
import wapbase.toUnicode; //[ /index.jsp; Line: 1]
^
换成
<jsp:useBean id="test" class="wapbase.toUnicode" scope="page"/>