我碰到一个问题,先看代码:
index.jsp代码如下
<%@ page import="java.lang.*" %>
<%@ page import="com.gu158.*"%><%
out.println(request.getContextPath());

out.println(Test.gettestmsg());
%>java代码如下:
package com.gu158;public class Test {
public Test(){}
public static String gettestmsg(){
String r="get test msg";
return r;
}
}web服务器是tomcat5.5
我碰到的问题是:index.jsp在127.0.0.1下可以正常运行,但是放到127.0.0.1/View/IE 就无法正常显示
系统报错信息
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 7 in the jsp file: /IE/index.jsp
Test cannot be resolved
4: <%
5:  out.println(request.getContextPath());
6: 
7:  out.println(Test.gettestmsg());
8: %>
请教达人解决