HTTP状态404 -description请求的资源不可用。 [英] HTTP Status 404 -description The requested resource is not available.

查看:528
本文介绍了HTTP状态404 -description请求的资源不可用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiii ....当我运行此代码时收到错误HTTP状态404 -description请求的资源



不可用。我正在使用Eclipse IDE。我的直接结构是





WebContent - > META-INF - > src - > com - > read1 - > ReadExcel

! - > Action.jsp

! - > Upload.jsp







Hiii....When i run this code getting error HTTP Status 404 -description The requested resource

is not available. I am using Eclipse IDE. My direct structure is


WebContent-->META-INF-->src-->com-->read1-->ReadExcel
!-->Action.jsp
!-->Upload.jsp



<%@ page import="com.read1.ReadExcel" %>
<%@ page import="javax.naming.spi.ObjectFactory" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<%@ page import="java.io.*" %>
<body>
<%
String filePath= request.getParameter("Inputfile");
ReadExcel xl = new ReadExcel();
ObjectFactory myFactory = xl.createFactory(filePath);

%>
</body>
</html>







谢谢。




Thanks.

推荐答案

要解决此问题,请将您的java文件放入Java资源 - > src - > packageName - > javafile。



将您的jsps放在WebContent - > WEB-INF - > jsp文件中。请注意,WEB-INF下的lib文件夹必须



包含项目中使用的所有jar文件。希望这会有所帮助。
To solve this issue put your java file inside Java Resources-->src-->packageName-->javafile.

put your jsps in WebContent-->WEB-INF-->jsp files. Note that lib folder under WEB-INF must

contains all the jar files used in the project. Hope this will help.


这篇关于HTTP状态404 -description请求的资源不可用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆