Our setup in our web hosting company is if we have a /webapps/data directory, we should also have a /htdocs/data directory. All JSP's and classes reside in the /webapps directory while the rest are in /htdocs directory.
Lester At 09:57 AM 12/20/01 +0100, martin eberle wrote: >I've thinked about /htdocs dir, too .. >But: why does tomcat tries to access the file in >"../webapps/mywebapp/data/attachements/" ?? > >In result, how should the /htdocs directory labeled? >"/usr/local/httpd/htdocs/webapps/mywebapp/data/attachements/" ?? > >Or anything else? > >regards, >-martin > > >-----Ursprüngliche Nachricht----- >Von: Lester June Cabrera [mailto:[EMAIL PROTECTED]] >Gesendet: Donnerstag, 20. Dezember 2001 09:45 >An: Tomcat Users List; martin eberle >Betreff: Re: File upload won't work with Tomcat4 ... > > > >Try to upload to upload your data files in the apache htdocs directory >and >access them via your JSP files from there. This is our setup in our >webhosting company. All our JSP apps are in /webapps directory. And all >the >rest of the files (*.html, *gif, *.jpg, *.zip) are in /htdocs. > > > >At 09:42 AM 12/20/01 +0100, martin eberle wrote: > >Hi, > > > >i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it > >doesn't matter which filetype, the result > >is always the same: > > > >Apache Tomcat/4.0.1 - HTTP Status 404 - > >../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not > >found) > >type Status report > >message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File > >not found) > >description The requested resource > >../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not > >found)) is not available. > > > >I know, that the file has not been found, cause i try to create it ;) > >... > > > >Tomcat directory structure to .jsp files (oh, directory / file user > >rights, etc. has been set correctly!): > >/var/tomcat4/webapps/mywebapp/ > > > >Tomcat directory structure to data (upload) files: > >/var/tomcat4/webapps/mywebapp/data/attachements/ > > > >In my upload class, i've defined the var "SAVEPATH" which contain's the > >store path as string ... : > >String savePath="../webapps/mywebapp/data/attachements/"; > > > >Question 1: > > >From which base directory does tomcat try to access the data dir? > >(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??... > > > >Question 2: > >Is my savePath definition just wrong? > > > >What i'm wondering about: with Tomcat 3.2x, the fileupload worked as > >well .... > > > >Thx for any answers ... > > > >Regards, > >-martin > > > >-- > >To unsubscribe: <mailto:[EMAIL PROTECTED]> > >For additional commands: <mailto:[EMAIL PROTECTED]> > >Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>