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