I'm trying to do something that seems relatively simple -- create a URL object from a String, such as:
<code>URL url = new URL("http://www.cnn.com");</code>
When I try to read the data from the URL with a method I've written, it works fine if I run it strictly on the client side of my client-server application. However, when I run it on the server, the URL seems to be erased and become empty (i.e. URL.getPath() = "").
The class that I use to read the URL has all static utility methods, so something like:
<code>String urlText = HTMLReader.readURL(url);</code> so I don't think Serialization should be an issue here.
Can anyone help to explain why this could be happening?