This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

retrieve data from a stored ORACLE procedure by JSP  RSS feed

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

want to resolve problem

in Oracle exits procedure witch returns SYS_REFCURSOR

REPORTS.inwork

In pl-sql developer this variant returns information


pl-sql block result



how to show this data used JSP (JSTL)?

p.s.

before I used this variant



Please help an example of information output from the Oracle stored procedure by JSP (JSTL).
 
Rancher
Posts: 3767
40
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That block doesn't return any information.
It is simply writing lines to a buffer in the db.
These can be retrieved by calls to DBMS_OUTPUT.GET_LINES (this is what SQL*Plus does, I believe).

Now, I've never tried this, but you could call that block and then, with the same Connection, try and see what happens when you call GET_LINES (it's a procedure).

Seems a rather roundabout way of doing it, though.

Is there a reason you can't call REPORTS.inwork() directly, and handle the cursor OUT parameter as a ResultSet?
 
Baranenko Nikolay
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Dave

some days ago I founded this resolve, used ResultSet :-)

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!