>>>>> "Mohan" == Mohan Radhakrishnan <[EMAIL PROTECTED]> writes:
Mohan> Hi,
Mohan> Eddie bush wrote. From the archives
Mohan> ---------------
Mohan> ... and if you happen to be able to use the JSTL ... David Karr wrote a
Mohan> taglib for struts which should soon be in the contrib directory. It's called
Mohan> Struts-EL, and it incorporates the JSTL's EL engine into the standard Struts
Mohan> tags we all know and love. Using his taglib, you could do the following:
Mohan> <html:img src="${BEAN.property}"/> Nice, eh? Search the archive for
Mohan> "struts-el", and you're bound to happen across how you can get the taglib.
Mohan> If you're stuck using the HTML <img src="..."> go with Martin's suggestion.
Mohan> ----------------
Mohan> My question is. Is this valid ?
Mohan> <html:img src="${BEAN.property}"/>
Mohan> Though we are using JSTL, we are assuming it is the same as the Struts-el.
Mohan> Same engine ?
Mohan> Our tag
Mohan> <html:img src="${image.name}" width="730" height="350" border="0"
Mohan> usemap="#Map"/>
Mohan> generates
Mohan> <img src="${image.name}" height="350" width="730" border="0" usemap="#Map">
Mohan> Do you see something wrong here ?
Normally, I would expect the tag to look like:
<html-el:img src="${image.name}" ... />
because it's conventional to have a taglib line like:
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
However, if you used a prefix of "html" instead of "html-el", then that could
work, although it would be unconventional.
The fact that your attribute value isn't getting translated means that you're
either using the wrong prefix, or you didn't specify the correct taglib line.
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED] ; SCJP
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>