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

getting function value

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a function that returns 1 integer value but am having some problems getting it into my jsp page, here is what I have:

//Get Connection
...

CallableStatement NameCall = conn.prepareCall("{? = call tc_user.verify_user(?) }");
NameCall.setString(2, clock_nbr);
NameCall.registerOutParameter(1,java.sql.Types.INTEGER);
ResultSet rs = NameCall.execute();

while(rs.next()){
out.println("Tmp_Var "+rs.getInt(1)+ " ");
}

%>


any help or sites with good examples would be appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top