dcsimg
calling URL from JSP
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kittu_roda
Posted On:   Monday, April 17, 2006 05:09 PM

submit Login Hi All, I am facing problem in my JSP file. My objective is to run one url but its content should not be displayed. I have one JSP file which is use to make a call. When ever I click on submit button to create a call it should run the url of http://voxeo.com but user should only see “your call is in process” which is part of the process.jsp and not the url : http://session.voxeo.net/CCXML.start?tokenid=32dea78bc8e56c4ea8192ac65ed3b8d2183851521e42e3821fc4c067e1ac37736782971d09d7b560d610dfd8 For this purpose what I am doing is, in process.jsp I am using following code. But its is not working properly. <%@ page import="java.io.BufferedReader" %> &   More>>
submit Login

Hi All,


I am facing problem in my JSP file. My objective is to run one url but its content should not be displayed.


I have one JSP file which is use to make a call. When ever I click on submit button to create a call it should run the url of http://voxeo.com but user should only see “your call is in process” which is part of the process.jsp and not the url : http://session.voxeo.net/CCXML.start?tokenid=32dea78bc8e56c4ea8192ac65ed3b8d2183851521e42e3821fc4c067e1ac37736782971d09d7b560d610dfd8



For this purpose what I am doing is, in process.jsp I am using following code. But its is not working properly.

			
<%@ page import="java.io.BufferedReader" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.InputStreamReader" %>
<%@ page import="java.net.MalformedURLException" %>
<%@ page import="java.net.URL" %>







your call is in process


<%
URL postURL = new URL(“http://session.voxeo.net/CCXML.start?tokenid=32dea78bc8e56c4ea8192ac65ed3b8d2183851521e42e3821fc4c067e1ac37736782971d09d7b560d610dfd8”);

BufferedReader in = new BufferedReader(new inputStreamReader(postURL.openStream()));

String inputLine = in.readLine();
in.close();

%>





Please let me the solution for my problem or my error in this program.

Your help will be greatly appreciated.


Regards,

Preeti    <<Less
About | Sitemap | Contact