  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | default directory for files in tomcat | default directory for files in tomcat 2004-01-22 - By Donie Kelly
Back In the Servlet init() method you can call a method called getRealPath()
This will return the name of the directory where your webapp is deployed. You may need to store this is a system property or a static classs for future use as it's only availalble on startup.
Donie
-- --Original Message-- -- From: Allan Bruce [mailto:allanmb@(protected)] Sent: 22 January 2004 13:08 To: tomcat-user@(protected) Subject: default directory for files in tomcat
I have an applet which requires a .ini file to be loaded up. This file is only found if I am in the directory containing it when I startup tomcat. Is there a default location for files, or is there a config for this? I tried placing them in a few places but none worked unless I started tomcat from within that directory. Thanks Allan
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
**********************************************************************
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |