hi Sohaila, for your first question, you need to do the configuration programmatically which means you must be the one that would specify the right path to your File...by default Tomcat puts the file on its bin directory so in order that it would be in the context of your web application try placing this as the path:
String sPath = this.getServletContext().getRealPath("/"); this would return the complete path to your web application. then you can just add additional path from the result above. ex. if you want your file to be in /webapps/myapp/WEB-INF/myFiles then do this: File oFile = new File (sPath + File.separatorChar + "WEB-INF" + File.separatorChar + "myFiles" + "yourFile.txt"); hope this helps. randie Sohaila Roberts wrote: >Hi, my questions are regarding configuring tomcat 3.3.1 securely. > >One of my servlets writes/creates a file. Right now when it does this it >writes the file in the tomcat bin directory (no matter where I set the >file to go in my code..). Where do I change this, or where is it specified >in the config stuff? > >Also, if i'm only using Http10Connector for connection can i safely >comment out other connection attribute things, like Ajp12Connector, with >out having things break? > >We unfortunatly will be running tomcat with apache 1.3.14, due to other >applications on the server which require it. Are there any known problems >that might exisit? >Also how do the files in tomcat_home/conf/users affect things? Right now i >have done nothing in there and tomcat runs fine. > >And last but not least if there are any sites (excluding the jakarta >documentation) with documentation on configuring tomcat for people will >little knowledge on configuring things would be greatly appreciated! >Basically I have tomcat up and running but I've done no additional >configuration. > >Thanks > >sohaila > >___________________________________________________________________________ > > ___________________________________________________________________________ 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