Click here to Skip to main content
15,911,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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



XML
<%@ 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.
Posted
Comments
Mike Meinz 3-Sep-13 10:36am    
Error 404 means it can't find the file.

1 solution

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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900