It's probably a stupid suggestion, but can you see anything in the server
output? What happens if you include System.out.println("Hello world")? And
what happens if you send the properties to the HTML page, by including
something like <%= "DataBase = " + p.getProperty("Database") %>?
Chris Walker
Brainbench MVP for ASP
http://www.brainbench.com
> -----Original Message-----
> From: AT&T [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 07, 2000 2:38 PM
> To: [EMAIL PROTECTED]
> Subject: Reading File using Properties
>
>
> > I have following JSP code/page:
> >
> > <%@ page import="java.util.*" %>
> > <%@ page import="java.io.*" %>
> >
> > <%
> > try{
> > Properties p = new Properties();
> >
> > p.load(new FileInputStream("connection.ini"));
> >
> > System.out.println("DataBase = " + p.getProperty("Database"));
> > System.out.println("Jaguar IP = " +
> p.getProperty("JagServer"));
> > System.out.println("Jaguar Port = " +
> p.getProperty("JagPort"));
> > p.list(System.out);
> > }
> > catch (Exception e) {
> > System.out.println(e);
> > }
> > %>
> >
> > Connection.ini looks like this:
> > Database=HepekDB
> > CacheName=HepekJag
> > DBMS=ODBC
> > ServerName=
> > UserID=
> > PassWord=
> > JagServer=42.9.1.150
> > JagPort=9000
> > Application=none
> >
> > Page and connection.ini are in the same directory on Tomcat/NT.
> > %TOMCAT_HOME%\webapps\root
> >
> > Page complies just fine and produces no output whatsoever.
> > I tried to provide explicit path to connection.ini but same
> thing, no
> > output.
> > Anyone have any suggestions?
> >
> > Thanks
> >
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets