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

Calling oracle report from jsp

Status
Not open for further replies.

jessiechkee

Programmer
Jun 12, 2001
2
0
0
MY
Hi all,
Does anyone know how to use jsp to connect to oracle report?
If can, please show me in details how it runs...
and
Please give me some guidelines.

Your help will be appreciated.
 
Hi
I have the same problum if get some positive response then let me know.
 
one way is to call WServlet from a jsp directly.
If your jsp needs to call a CGI program (or even a servlet) , u need to simulate the get ot post method functionality.
It can be done as follows.
String qry = "report="+rep+".RDF&userid=system%2Fmanager%40ibba&server=Rep60_INFRA5%2DOraHome82&desformat=pdf&destype=cache";
URL my_url = new URL(" URLConnection connection = my_url.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setAllowUserInteraction(false);
DataOutputStream send_data = new DataOutputStream(connection.getOutputStream());
send_data.writeBytes(qry);
DataInputStream read_data = new DataInputStream(connection.getInputStream());
String temp_data = "";
while ( (temp_data = read_data.readLine() ) != null) {
out.println(temp_data);
}

Hope this helps.

Jatin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top