Here is the link that I had, I could not typecase to
HTTPURLConnection.  I was able to get the same
(unencoded) java to work in JSP however:

http://article.gmane.org/gmane.text.xml.cocoon.user/33489

Thanks for the pointer, Jeff


Not sure if you will like it ...but all that
was missing was the root tag for the output
tree ;) See below...

<xsp:page language="java"
          xmlns:xsp="http://apache.org/xsp";>
<xsp:structure>
        <xsp:include>java.net.URL</xsp:include>
        <xsp:include>java.net.HttpURLConnection</xsp:include>
        <xsp:include>java.io.OutputStreamWriter</xsp:include>
        <xsp:include>java.io.BufferedReader</xsp:include>
        <xsp:include>java.io.InputStreamReader</xsp:include>
</xsp:structure>
<root>
<xsp:logic>
        StringBuffer results = new StringBuffer();
        String specURL = "SOMESERVERURL";
        String specStr = "&lt;SOMEXML /&gt;";
        URL url = new URL(specURL);
        HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
...

cheers
--
Torsten



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to