aspose file tools*
The moose likes Servlets and the fly likes URLConnection and images with relative paths Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "URLConnection and images with relative paths" Watch "URLConnection and images with relative paths" New topic
Author

URLConnection and images with relative paths

Sandra Sharpe
Greenhorn

Joined: Jan 29, 2001
Posts: 7
I have a .jsp page that sends a POST to a remote resource using HttpURLConnection. I use HttpURLConnection.getInputStream() to access the input from this external website and include it in my jsp page. My problem is ... none of the images are displaying. This external website defines all of their images with relative paths and they aren't displaying in my browser. Does anyone have any suggestions?
 
jQuery in Action, 2nd edition
 
subject: URLConnection and images with relative paths