You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Anderson <ja...@jandernet.com> on 2004/01/15 23:01:00 UTC
Q: html:img question
I'm converting a perl web app to Java/Struts and have run into a couple
of problems converting html files.
First, I started converting <img> tags to <html:img> but discovered
that a number of them use the name attribute with javascript to
implement mouseover popup menus, e.g. <img name="place_holder01" ...>.
When I changed these to <html:img>, I got errors like "Cannot find bean
place_holder01 in any scope".
Second, I put all graphics in an images directory at the top level of
the application context, e.g., /myapp/images. The problem is that
they're not being found. I tried both with and w/o <html:base/> in the
<head> section. Here's the <head> section from View Source when using
<html:base/>
<HTML>
<HEAD>
<TITLE>Smith Barney</TITLE>
<base
href="http://localhost:8080/portfolio/tiles/layouts/mainLayout1.jsp">
</HEAD>
Any help greatly appreciated,
jim