Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Web Service / Packet Listener Smack Integration Error (http://www.go4expert.com/forums/web-service-packet-listener-smack-t11040/)

rickprospers 3Jun2008 12:39

Web Service / Packet Listener Smack Integration Error
 
During the execution of a package listener, I am trying to call a web page with embedded query strings to execute a task in .cfm...

The code below is a snippet from the original code to simplify the discover of the error. I have been struggling to get this simple code to work with no luck so far.

I am like two days into JSP.

Test.jsp


Code:

<%@page import=        "
        java.net.*,
        java.io.*"
%>


Section 1 <!-- THIS SECTION WORKS --><HR>
<%               
        URL urlOne =  new URL("http://google.com");
        Object getcontent = urlOne.getContent();
%>               
               


Section 2 <!-- THIS SECTION DOES NOT WORK --> <HR>
<!-- ERROR: Unhandled exception type MalformedURLException -->
<%!
        public class PassToWebService {
                PassToWebService(){
                        URL urlTwo = new URL("http://google.com/");
                        Object connection = urlTwo.getContent();
                }
        }
%>


shabbir 4Jun2008 09:44

Re: Web Service / Packet Listener Smack Integration Error
 
Moved to JSP forum


All times are GMT +5.5. The time now is 08:41.