日曜日, 7月 18, 2010

Apache Tomcat 6 How to Install & Configure

Apache Tomcat 6 How to Install & Configure

Yet Another Insignificant Programming Notes by Chua Hock-Chuan

Web Programming Tutorial - HTTP Authentication
Web Programming Tutorial - HTTP with SSL

tomcat 5.5 - problem with reading resource files


public void init(ServletConfig config) throws ServletException {
String pathToFile = config.getServletContext().getRealPath("")
+ "/WEB-INF/config.properties";
Properties properties = new Properties();
properties
.load(new FileInputStream(pathToPropertiesFile));
}

0 件のコメント: