English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to convert the following asp coding to JSP coding
Function getEmpID(LoginID)
Set cnn=CreateObject("ADODB.Connection")
Set rs=CreateObject("ADODB.Recordset")
Set cm=CreateObject("ADODB.Command")

cnn.Provider = "ADsDSOObject"
cnn.Open "Active Directory Provider"
cm.ActiveConnection=cnn
cm.Properties("searchscope")=2
cm.Properties("Page Size")=100000

please let me know if someone is aware of this.

2007-01-24 23:44:19 · 1 answers · asked by Rajesh G 1 in Computers & Internet Programming & Design

1 answers

Unless you are completely new to Java or have never used Java before it would be a real bad idea to code your Database connection in jsp file itself.
You can write a Java class file to handle the DB connection or interaction and call the class file in JSP when needed.


--
Ck
http://www.gfour.net

2007-01-25 00:44:42 · answer #1 · answered by KingPin 3 · 0 0

fedest.com, questions and answers