Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi All, This code below throws t

Status
Not open for further replies.

graccula

Programmer
Oct 9, 2000
4
BR
Hi All,

This code below throws the following error:

Type Expected.
props.put( "user", userID);
^

conntest.jsp
---------------------------

....
String userID = "dba";
String password = "sql";
java.util.Properties props;
props.put("user", userID);
props.put("password", password);
props.put("DYNAMIC_PREPARE", "true");
....

----------------------

Anyone knows why?

Tks
Gracc [sig][/sig]
 
Is that necessary at JSP or just at Servlets?
Tks
Gracc [sig][/sig]
 
Anywhere in java. [sig]<p>--Will Duty<br><a href=mailto:wduty@radicalfringe.com>wduty@radicalfringe.com</a><br><a href= > </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top