On 4/18/06, Asad Habib <[EMAIL PROTECTED]> wrote:
>
> Hello. The following statement in one of my views is generating an error
> at runtime:
>
> <html:img srcKey="<bean:message key="image.logo" />" />
>
> The error is as follows:
>
> org.apache.jasper.JasperException: /test.jsp(4,54) equal symbol expected
>
> Is it not possible to embedd tags in Struts? Any help would be
> appreciated. Thank you.


This is not an issue specific to Struts ... it is a JSP custom tag
restriction that you cannot nest  one tag invocation inside the attribute of
another like you are trying to do.  For this particular use case, however,
it looks like you are trying to work too hard :-).  The <html:img> tag will
do the lookup for you, if you do something like:

  <html:img srcKey="image.logo" .../>

Assuming that the value of the "image.logo" key is in fact the URL of the
localized image to be displayed.

- Asad


Craig

Reply via email to