sir, I think u didn't get my question.My problem is i am not able to upload files to the server using oreilly package(using MultipartRequest class).Sometimes the file is uploaded but not with correct bytes(size) and i am not able to open it manually(like docs,pdf's etc).If u have some suggestions regarding this, uploading files correctly pls reply.
Thank you Rajesh.G On Sat, 25 May 2002 Walt Black wrote : >I sent him this same block of code last week. Alas... > >On Friday 24 May 2002 02:34 am, you wrote: > > When you create a FileReader, and the file has no path >defined, it is > > searched in the working directory. > > In Tomcat, this working directory is not changed in any point, >so when > > your object tries to create the reader, it searches the file >in the > > directory where you started Tomcat from (generally >$TOMCAT_HOME/bin). > > > > For getting your file, use something like: > > > > InputStream is = >this.getClass().getResourceAsStream("error.txt"); > > input = new BufferedReader(new InputStreamReader(is)); > > > > This way, the ClassLoader will search the file in the same >directory than > > your class. > > > > Regards > > > > >___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and >include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: >http://archives.java.sun.com/archives/servlet-interest.html > > Resources: >http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include >in the body >of the message "signoff SERVLET-INTEREST". > >Archives: >http://archives.java.sun.com/archives/servlet-interest.html >Resources: >http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > _________________________________________________________ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html