Hi Piotr,

  i am importing my own package util.file. As it is not part of standard
release we are yet to  make it com.something.util.file.

thanks
vishwa

Piotr Wierzbicki wrote:
>
> Hi,
> Try this:
> <%@page import="java.io.*,java.util.file.*" %> // <-- java.util.file.*
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vishwa
> Sent: Friday, April 28, 2000 13:41
> To: [EMAIL PROTECTED]
> Subject: Compliation problem, please help
>
> 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
>
> ===========================================================================
> 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

===========================================================================
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

Reply via email to