Hi all, I'm stuck and I can't find an answer.
I am trying to put a 'get' url (string) into a parser and then print results
through a servlet.
I can do it locally with the string in the code or print out the 'get' but I
can't 'get' from one and push through the other and print the results.
Anybody have an idea how I do this?
// printwriter and other imports and things
try {
URL url = new URL("http://www.blah.com/blah?doc=1&id=2");
HttpURLConnection conn =
(HttpURLConnection)url.openConnection();
BufferedReader bin = new BufferedReader (
new InputStreamReader(
url.openStream() ));
String line = null;
line = bin.readLine();
while ( (line = bin.readLine()) !=null )
// out.println( line );
//**************** this bit above into the function
below ***************************
//wddx deserializer object
InputSource source = new InputSource(new StringReader(
line ));
WddxDeserializer deserializer = new
WddxDeserializer("com.jclark.xml.sax.Driver");
Object result = deserializer.deserialize(source);
if (result != null)
{
out.println( result );
}
else...
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html