I am sorry for sending this email again. But I made a mistake to point to "name" attribute. This attribute has to be equal to "", because I do not use it. But no attribute "alt" was generated.

Maya
P.S. here is my statement with the tag:
<html:image pageKey="image.btnEnter" altKey="altkey.btnEnter" border="0"/>

Maya Muchnik wrote:

No exception. Here is a short cut from view source:
...
<form name="logonForm" method="POST" action="/jndi2/logon.do;jsessionid=...">
....
<table...>
<tbody>
<tr><td>Username:</td>
        <td><input ...></td>
</tr>
<tr><td>Password:</td>
        <td><input ...></td>
</tr>
<tr><td><input type="image" name="" src="/jndi2/images/button_enter.gif;jsessionid=..." border="0">
</td></tr>
</tbody>
</table>
...
</form>
<script language=... >
...
</script>
...

As you can see name is empty.

Maya

Howard Moore wrote:

It's possible I suppose. I've tried it with Tomcat 3.2 using pageKey rather
than src and it works ok (using Struts 1.0b1). What happens when you try to
use the tag, e.g. what html is produced or what exception is thrown?

> -----Original Message-----
> From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> Sent: 29 March 2001 14:01
> To: [EMAIL PROTECTED]
> Subject: Re: Internationalised 'alt' text
>
>
> Thank you, Howard. And if this does not work for me, is that
> meant, because I
> am using Tomcat 3.1? In your example below I am using pageKey
> instead of src.
>
>
>
> Howard Moore wrote:
>
> > The html:img tag now contains an altKey attribute that does
> what you want.
> >
> > e.g.
> >
> > <html:img src="someImage.png" altKey="someImage.alt.text"/>
> >
> > > -----Original Message-----
> > > From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> > > Sent: 28 March 2001 21:54
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Internationalised 'alt' text
> > >
> > >
> > > Hi, this is an old email, but not resolved, at least for me.
> > > Maybe somebody can give
> > > me a hunt.
> > > I have tried both suggestions. Both are not working. Maybe I
> > > am doing something
> > > wrong.
> > > Thanks in advance.
> > > Maya
> > >
> > > Craig Tataryn wrote:
> > >
> > > > How about this:
> > > >
> > > > <
-- MyResources would be replaced with whatever class name
> > > you used in the
> > > > application
> > > >         init-param you setup for the ActionServlet
> > > > -->
> > > > <jsp:useBean id="resouces" class="MyResources" />
> > > >
> > > > <html:img src="someImage.png" alt='<%=
> > > resources.getString("someImage.alt.text")
> > > > %>'/>
> > > >
> > > > Craig T.
> > > >
> > > > Peter Alfors wrote:
> > > >
> > > > > scratch that.  You would need to have a bean that had
> > > access to the messages.
> > > > >
> > > > > Peter Alfors wrote:
> > > > >
> > > > > > I think that <bean:define>  does what you want.
> > > > > >
> > > > > > <bean:define id="altTxt" property="someImage.alt.text"/>
> > > > > > <html:img src="someImage.png" alt="<%= altTxt %>"/>
> > > > > >
> > > > > > HTH,
> > > > > >     Pete
> > > > > >
> > >
>


 

Reply via email to