I tried it but I got this error :
org.apache.jasper.JasperException: Unable to compile class for
JSPC:\tomcat323\work\localhost_8080%2Ffreevote\_0002fvote_0002ejspvote_jsp_5.java:94:
Array constants can only be used in initializers.

files={"C:\\file1.txt","C:\\file2.txt","C:\\file3.txt","C:\\file4.txt","C:\\file5.txt"};
                      ^



>From: Chris Pratt <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: path question
>Date: Mon, 3 Dec 2001 12:39:55 -0800
>
>Try either:
>
>String[] files =
>files={"C:\\file1.txt","C:\\file2.txt","C:\\file3.txt","C:\\file4.txt","C:\\
>file5.txt"};
>
>or
>
>String[] files =
>files={"C:/file1.txt","C:/file2.txt","C:/file3.txt","C:/file4.txt","C:/file5
>.txt"};
>
>(*Chris*)
>
>----- Original Message -----
>From: "sufi malak" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, December 03, 2001 11:57 AM
>Subject: [JSP-INTEREST] path question
>
>
> > I have a jsp file that has this line :
> > String[]
> >
>files={"/path/to/file1.txt","/path/to/file2.txt","/path/to/file3.txt","/path
>/to/file4.txt","/path/to/file5.txt"};
> >
> > I tried to write the path to those files like :
> >
> > String[]
> >
>files={"C:\file1.txt","C:file2.txt","C:file3.txt","C:file4.txt","C:file5.txt
>"};
> >
> > But it does not work, could you please help.
> > thanks
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
> >
> >
>===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to