1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Web Service / Packet Listener Smack Integration Error

Discussion in 'JSP' started by rickprospers, Jun 3, 2008.

  1. rickprospers

    rickprospers New Member

    Joined:
    Jun 3, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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();
    		}
    	}
    %>
     
    Last edited by a moderator: Jun 4, 2008
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    Moved to JSP forum
     

Share This Page