Getting result from stored procedure

i m using a store procedure which takes the date and returns the sysrefcursor for which i have used OracleTypes.cursornow i want to get the out parameter values.what should i doi tried rowcallbackhandler but it doesn't seems to be working :(
[270 byte] By [junkbustera] at [2007-11-27 4:30:48]
# 1
Please post your [url= http://forum.java.sun.com/help.jspa?sec=formatting ]formatted[/url] code demonstrating what you have tried along with the exact error message and resulting stack trace.
cotton.ma at 2007-7-12 9:40:10 > top of Java-index,Java Essentials,New To Java...
# 2

params.add(new SqlParameter("p_work_date", Types.DATE));

params.add(new SqlOutParameter("p_out_load", OracleTypes.CURSOR));

Map results = jdbcTemplate.call(new CallableStatementCreator() {

public CallableStatement createCallableStatement(Connection con)

throws SQLException {

CallableStatement cs =

con.prepareCall(

"{call PKG_BKP_LOAD.SP_LOAD_STAT(?,?)}");

cs.setDate(1, sqlDate);

cs.registerOutParameter(2, OracleTypes.CURSOR);

return cs;

}

}, params);

*****

now how shoudl i get the out parameters?

i m quite new to the springs

junkbustera at 2007-7-12 9:40:10 > top of Java-index,Java Essentials,New To Java...
# 3
You have to prepend ?= to obtain the returned value.
BIJ001a at 2007-7-12 9:40:10 > top of Java-index,Java Essentials,New To Java...
# 4

> Please post your

> [url=http://forum.java.sun.com/help.jspa?sec=formattin

> g ]formatted[/url] code demonstrating what you

> have tried along with the exact error message and

> resulting stack trace.

Obviously embedding the link confused him, perhaps this would have been clearer...

[url=http://forum.java.sun.com/help.jspa?sec=formatting]http://forum.java.sun.com/help.jspa?sec=formatting[/url]

macrules2a at 2007-7-12 9:40:10 > top of Java-index,Java Essentials,New To Java...
# 5
@Junkbuster: it's generally considered good form to at least acknowledge the help you get here, and maybe even thank those who help you
georgemca at 2007-7-12 9:40:10 > top of Java-index,Java Essentials,New To Java...