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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLConnection and images with relative paths
 
Similar Threads
UrlConnection and images with relative paths
redirecting to an error page - relative paths on the error page no longer work.
Paths in Tomcat standalone mode
Stylesheet doesn't load in JSP
relative vs absolute jsp url issue