Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting img tags to work in sub page using jstl core import tag

843838Aug 3 2005 — edited Aug 3 2005
Am trying to bring disparate system page reports together under one web app. This means using the jstl core import tag (I dont want to redirect as I want to hide the urls, this web app provides better security than those it calls).

Use of the import tag works to a degree but any resources (ie. img tags) don't load.

Have created a much simplified example that demonstrates..

So heres the jsp...
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<h3>Delivery Performance Report</h3>
<c:url value="http://localhost/mycontext/subpage.html" var="myUrl"/>
<c:import url="${myUrl}" />
and a simple sub page (note plain html, no jsp, this mimics my project as the other systems are hidden source, non jsp)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>sub page</TITLE>
</HEAD>

<BODY>
	This is the sub page<br>
	<img src="images/banner_image.jpg" />
</BODY>
</HTML>
While I dont get any errors what I do get is ..

Delivery Performance Report
This is the sub page

...but image fails to load.

If I redirect instead of import it works, but as I said I need to hide the url from the user as security is an issue.

Any help appreciated, really pulling my hair out with this final stage of something that will make a real difference to us!

regards,
G.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2005
Added on Aug 3 2005
2 comments
540 views