Thanks Antonio for the reply.

When I changed the code to do this I am now getting a JSP compile error:

Static attribute must be a String literal, its illegal to specify an expression.
           <s:url value="${image_url}" />
                             ^---^

I then commented out this line and added a JSTL expression just to see what happens:


<c:if test="${image_url == '/images/next_button.gif'}">
   <h1>JSTL worked and image_url was found</h1>
</c:if>

and the page renders with the <h1> tag included.

Any ideas?

Thanks,
John



Antonio Petrelli wrote:
2008/10/14 928572663 <[EMAIL PROTECTED]>:
<s:submit type='image'>
  <s:param name="src">
     <s:url value="<tiles:insertAttribute name='image_url'/>" />
  </s:param>
</s:submit>

You can't nest a JSP tag into another.
If "image" is a string, then you can do this:

<tiles:importAttribute name="image" />
<s:submit type='image'>
  <s:param name="src">
     <s:url value="${image_url}" />
  </s:param>
</s:submit>

HTH
Antonio



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to