struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bjørn T Johansen <...@havleik.no>
Subject Re: html:image?
Date Tue, 14 Dec 2004 12:29:05 GMT
Yes, of course..... Thx.... :)

BTJ

Matthias Stoll wrote:
> Hi Bjorn
> 
> You should use the <html:img> tag. the <html:image> tag renders an "input"

> tag of type "image" (<input type="image"...) which automacially will 
> result in a submit on click. the img tag renders an <img src=""....> tag, 
> which is what you need.
> 
> greets
> __
> Matthias Stoll
> hpi GmbH
> Application Development
> Web site: http://www.hpigmbh.com
> 
> 
> 
> Bjørn T Johansen <btj@havleik.no> 
> 14.12.2004 12:50
> Please respond to
> "Struts Users Mailing List" <user@struts.apache.org>
> 
> 
> To
> Struts Users Mailing List <user@struts.apache.org>
> cc
> 
> Subject
> html:image?
> 
> 
> 
> 
> 
> 
> I have an image in my jsp page, that acts like a button when I click on 
> the image, why is 
> that? It creates a request to my action object, but this is not what I 
> want... Clicking on 
> the image, should do nothing.
> How do I fix this?
> 
> The code in my jsp looks like this..:
> 
> <html:image value="Chart" src="<%= (String)imgFile %>" />
> 
> 
> Regards,
> 
> BTJ
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message