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

解决方案 »

  1.   

    tomcat的话是放在web-inf/classes下面的
    不知道你用什么服务器
      

  2.   

    楼上不是有bea嘛,还用问是什么服务器
      

  3.   

    对呀,是weblogic,但是已经放在classes\wapbase\toUnicode下了,还是编译不过去,还是显示错误
      

  4.   

    那我帮不了你了,我现在用的是tomcat 现在没装weblogic.努力吧
      

  5.   

    又出现这样错误,如下:
    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]
                   ^
      

  6.   

    我认为你这个没必要导入<%@page import="wapbase.toUnicode"%>
    换成
    <jsp:useBean id="test" class="wapbase.toUnicode" scope="page"/>