Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSP and <img> tag bug
JSP and <img> tag bug [message #138033] Sat, 10 September 2005 02:11 Go to next message
Nicolas Laplante is currently offline Nicolas LaplanteFriend
Messages: 7
Registered: July 2009
Junior Member
Hi all,

I'm using the wst-all-in-one-0.7 on Windows XP and I have a problem
putting an image into my page. I put an <img ... ... /> tag into my page
and it doesn't appear on the resulting page when I access it via the
Tomcat 5.5 server.

Here's the code of the page:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="/WEB-INF/tlds-jstl/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/tlds-jstl/fmt.tld" %>
<%@ taglib prefix="sql" uri="/WEB-INF/tlds-jstl/sql.tld" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-trans.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/standard.css" />
<link rel="stylesheet" type="text/css" href="css/ie.css" />
</head>

<body>

<div id="banner">This is the header.<img src="images/banner.gif"
/>Wow!</div>

</body>

</html>

And here's the code that is returned from the server:




<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-trans.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/standard.css" />
<link rel="stylesheet" type="text/css" href="css/ie.css" />
</head>

<body>

<div id="banner">This is the header.Wow!</div>

</body>

</html>

Did I miss something????

Thank you!
Re: JSP and <img> tag bug [message #139382 is a reply to message #138033] Sun, 18 September 2005 19:39 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On Fri, 09 Sep 2005 22:11:08 -0400, Nicolas Laplante <nicolas.laplante@g=
mail.com> wrote:

> Did I miss something????

Well ... maybe. Just as a sanity check, I tried this (minus the custom t=
ag libs,
which I don't think would effect this) and it worked as expected.

I think this doesn't have anything to so with your JSP and/or IMG tag.
My * guess * is the image tag was the last thing you added. Right?
And if so, then my guess is that this is simply a case of your changed
JSP file was not properly "refreshed" to the server and re-built on the =
server,
and resent to the web browser upon browser refresh.

I'd have no idea why that would be, but think there's been other posting=
s here and bugs
opened related to that. [you might try stopping/restarting server, ...
you might have to delete the file, then restore from local history, or s=
omething.] My hope
is if you approach from that point of view, you'll find what you're miss=
ing -- your image! :)
Previous Topic:J2EE application = EJB's + JDBC
Next Topic:which download?
Goto Forum:
  


Current Time: Thu Apr 25 21:55:24 GMT 2024

Powered by FUDForum. Page generated in 0.02530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top