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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hide conn string

Status
Not open for further replies.

yytan

Programmer
Joined
May 8, 2002
Messages
113
Location
MY
hi there;

if i would like to hide the connection string, username and password in JSP is it possible? i mean this line :

Connection conn = DriverManager.getConnection ("jdbc:oracle:oci8:@MV","CLM", "CLM");
 
No you can't hide the String but you could always put it in a normal Java Class or a Custom Tag and call that from the JSP. Also, if your Application Server handles the Connection Pools or DataSources (most do) than you could have the connection information configured in the Server and just get a Connection from the JSP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top