Hello,
I am using Javawebserver and i am trying to compile the following jsp.
It imports the class Explorer which is in util.file package. I have
copied the util/file folder to the servlets directory.
But i am getting this error :
---------------------------------------
500 Internal Server Error
Java Server Page Translation Error
Error during compilation :
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_upload.java:15:
Package util.file not found in import.
import util.file.*;
^
1 error
Code:
------------------------------------------
<%@page info="Upload page"%>
<html>
<body>
<bR><br><br>
<%@page import="java.io.*,util.file.*" %>
<%! private static final String
DOC_ROOT="c:\\javawebserver2.0\\public_html"; %>
<% String[] files;
Explorer explorer = new Explorer(DOC_ROOT);
if(explorer!=null)
files=explorer.listFiles();
%>
<form name='Upload' action='/servlet/UploadTest' method='post'
enctype='multipart/form-data'>
<b> File to upload : <input name='userfile' type='file'>
<br><br>
<b><input type='Submit' value='Upload'></b>
</form>
</body>
Regards,
vishwa
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets