Greetings,
I am trying to use JSP on server A to connect to an ASP app on server B, retrieve the output (based on a parameter) and display it within the jsp page. I have some code already (which does not include the parameter), but it is giving me an error. Here is the code:
The first line of the error follows, please let me know if the rest would be helpful:Code:<%@ page import="java.net.*" %> <%@ page import="java.io.*" %> <% URL urltt = new URL("http://SERVER_B/test.asp"); HttpURLConnection connection = (HttpURLConnection) urltt.openConnection(); connection.setUseCaches(false); connection.setAllowUserInteraction(true); connection.connect(); InputStream stream = connection.getInputStream(); String contentType = connection.getContentType(); if (contentType == null) out.println("NO CONTENT"); while (true) { int data = urlData.read(); if (data < 0) break; out.println((char)data); } %>
Any help would be greatly appreciated.Code:org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null


Reply With Quote


Bookmarks