do u changed ur web.xml also the code is ok it should work.but u hav to check all the other files also like web.xml from the older web.xml file it was written that the servlet class is Downloadfiles but u hav to change it to com.deepa.servlet.Downloadfiles if all these things are working, ur code should work but if still it's not working try to setup another tomcat that will be time saving.as u are having the code files with u.u can easily recreate another hierarchy of ur code on the newly setup tomcat.If u are having much time u can try reconfiguring everything regards vineesh
On 1/31/06, DEEPA M N <[EMAIL PROTECTED]> wrote: > > Here r few lines of codes; > > package com.deepa.servlet; > import java.io.*; > import java.util.*; > import java.net.*; > import javax.servlet.*; > import javax.servlet.http.*; > import java.util.zip.GZIPOutputStream; > public class DownloadFiles extends HttpServlet > { > private static final String DIR = "dir"; > private String separator; > private String root; > public DownloadFiles() > { > Properties propFile = null; > FileInputStream in = null; > String JAVA_HOME = "application.properties"; > // Get a handle on the properties file > try{ > in = new FileInputStream(JAVA_HOME); > propFile = new Properties(); > propFile.load(in); > } > catch (IOException ignore){} > separator = "/"; > // Get the directory from the application.properties file > // e.g. C:\\Temp\\Files\\ > root = propFile.getProperty("app.directory"); > } > Code continues....... > I m typing the url as > http://localhost:8080/Downloadfile/servlet/DownloadFiles > > I m trying in all possible ways, but still i am getting the same error. > Pls help > Thanks in advance > Deepa > vineesh kumar <[EMAIL PROTECTED]> wrote: > that may be the correct path > also check that > package com.deepa.servlet; > at the first line itself > is declared in ur java file > - Show quoted text - > > > > --------------------------------- > Jiyo cricket on Yahoo! India cricket > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]