You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tyrone Hed <ty...@earthlink.net> on 2003/05/01 20:41:04 UTC

How to Use html:img with imageclass?

  I am trying to duplicate what you see here in Struts and I have the problem that in HTML you can embed an <img> tag in an
<a> anchor link, but how do you do that in Struts?
<!--

<td valign="top" width="7" nowrap>
    <a onmouseover="imageOn('nav_O')" 
       onmouseout="imageOff('nav_F')" 
       HREF="/contact/MaintenanceAndSupport.do">     
          <img class="navArrow" 
               name="nav_O"
               src="/contact/images/nav_01.gif" 
               alt="go" 
               width="7" 
               height="5" 
               border="0">
    </a>
</td>

   I've tried to use the

         <html:link 
tag and the
         <html:img 
tag but then the image is not in the link. Any insights 
or resources?
    Ted?
-->

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


RE: How to Use html:img with imageclass?

Posted by Ravi Kora <rk...@1bigthink.com>.
Did u try this?
<html:link href="/contact/MaintenanceAndSupport.do" >
  <html:img src="xxx.gif" />
</html:link>

> -----Original Message-----
> From: Tyrone Hed [mailto:tyronehed@earthlink.net] 
> Sent: Thursday, May 01, 2003 2:41 PM
> To: struts-user@jakarta.apache.org
> Subject: How to Use html:img with imageclass?
> 
> 
>   I am trying to duplicate what you see here in Struts and I 
> have the problem that in HTML you can embed an <img> tag in 
> an <a> anchor link, but how do you do that in Struts?
> <!--
> 
> <td valign="top" width="7" nowrap>
>     <a onmouseover="imageOn('nav_O')" 
>        onmouseout="imageOff('nav_F')" 
>        HREF="/contact/MaintenanceAndSupport.do">     
>           <img class="navArrow" 
>                name="nav_O"
>                src="/contact/images/nav_01.gif" 
>                alt="go" 
>                width="7" 
>                height="5" 
>                border="0">
>     </a>
> </td>
> 
>    I've tried to use the
> 
>          <html:link 
> tag and the
>          <html:img 
> tag but then the image is not in the link. Any insights 
> or resources?
>     Ted?
> -->
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 



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