Okay I figured this out.  Just a matter of not ever doing this before.  I gave 
the wrong path for the image file in the src attribute of the img tag.

Here is my new sample code called home.jsp.


  | <%--
  |   Created by IntelliJ IDEA.
  |   User: rb
  |   Date: Mar 24, 2005
  |   Time: 11:03:29 AM
  |   To change this template use File | Settings | File Templates.
  | --%>
  | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  | <html>
  |   <head><title>Simple jsp page</title></head>
  |   <IMG SRC="/webquotes10/images/home_header.jpg">
  |   <body>Place your content here</body>
  | </html>
  | 

In my initial attemp I thought I only needed to give the path to the image file 
as it was in the .war file which was images/home_header.jpg.  What I needed to 
do was add the web module context root to the path and then it worked fine.  My 
web module context root is webquotes10.

So now my IMG tag look like

  |   <IMG SRC="/webquotes10/images/home_header.jpg">
  | 
instead of

  |   <IMG SRC="/images/home_header.jpg">
  | 


I am relieved that you can really do both text and images from a jsp.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871626#3871626

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871626


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to