我也遇到了这个jsp不能显示出来,请问是什么原因?

php2002 php2002 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
是输入IE网址不对还是Apache对该文件common.jsp设置了访问权限?总之,无法
访问 http://IP/cgi-bin/common.jsp

问题详情如下:

<%@ page language="java" %>
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.sql.*,java.util.*,java.text.*" %>
<%@ include file="/cgi-bin/common.jsp" %>
<%
Connection con = null;
Statement stmt = null;
ResultSet rst = null;
...
%>
上述的这个JSP是某个网站服务器的index.jsp的原代码,
输入http://IP/index.jsp可以看到index.jsp的网页,而从这句话
<%@ include file="/cgi-bin/common.jsp" %>,照说我应该再输入
http://IP/cgi-bin/common.jsp可以看到common.jsp的页面,可是出现的是如下信息:

"The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@***.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
-------------------------------------------------------------------------------- Apache/1.3.20 Server at www.***.com Port 80
"应该用IE如何输入才能看到这个/cgi-bin/common.jsp文件呢?
这个cgi-bin/下的文件如何通过象输入http://IP/cgi-bin/filename.jsp显示在网页
中呢?
好像以前也有人碰到过,没有人回答吧?

...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
php2002
Web 开发 81,108 成员 341,721 内容