Here is a code excerpt:
---
String dbDriver = org.gjt.mm.mysql.Driver;
try
{
Class.forName(dbDriver).newInstance()
}
catch(ClassNotFoundException cnf)
{
out.println(cnf);
}
-
When I go to compile this servlet, I have been getting
the .newInstance()..
E.g
Class.forName(oracle.jdbc.driver.OracleDriver);
Connection con =
DriverManager.getConnection(URL);
Z.BEAT wrote:
Here is a code excerpt:
---
String dbDriver = org.gjt.mm.mysql.Driver;
try
{
Class.forName(dbDriver
I am running Apache 1.3 and Tomcat 4.1.2, on Solaris
7. Where can I download mod_webapp.so binary? I am
currently running Tomcat only as a Standalone, and it
would be nice if I could connect it to Apache.
The expected location does not have the module:
information on the equals and
equalsIgnoreCase methods.
Steve
-Original Message-
From: Z.BEAT [mailto:zackbeatty;yahoo.com]
Sent: Thursday, October 17, 2002 1:58 PM
To: Tomcat Users List
Subject: expression ALWAYS evaluates to if...
NEVER to else
In the following code
In the following code snippet, the expression ALWAYS
evaluates to the if statement block:
String paramPassword =
request.getParameter(paramPassword);
String secretCode = secret;
if(paramPassword != secretCode)
{
}
else
{
}
However, my debugging flags that I send in an HTML
comment CLEARLY