我碰到一个问题,先看代码:
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: %>
请教达人解决
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: %>
请教达人解决
解决方案 »
- 谁那有Android手机客户端开发的网络结构图,急求,加分!谢谢啦!
- java urlrewrite参数大于10个就不能访问,请问有什么办法传大于10个的参数!!!
- propotype ajax firefox 不执行
- 批量填写网页表单
- myeclipse没有办法像visualstudio一样可视化的进行页面设计吗?
- 如何获取系统时间
- jsp输出问题,用system.out.print();怎么不能输出了???
- jrun中的javabean应放在那里?如何设置?
- 请问如何在jsp文件中得到自己网站的主页ulr?(在线等待!)
- 谁用过神盾FP-220指纹采集器做过相关的项目
- 求教高人:ssh环境的问题
- javascript获取select动态值
import Test
tomcat就是不行,
楼上的方法试过了,不行