I found that this syntax will work (although there may be a more elegant
way to do this)
tiles:importAttribute name=image_url scope=request /
s:submit type='image'
s:param name=src
s:url value=%{#request.image_url} /
/s:param
/s:submit
-John
Antonio Petrelli wrote:
2008/10/15
2008/10/14 928572663 [EMAIL PROTECTED]:
s:submit type='image'
s:param name=src
s:url value=tiles:insertAttribute name='image'/ /
/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
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
I need to be able to pass a tiles2 attribute down into a s:url tag,
something like this:
s:submit type='image'
s:param name=src
s:url value=tiles:insertAttribute name='image'/ /
/s:param
/s:submit
But I am unable to find a syntax that will work correctly.
Any ideas?
Thanks,
4 matches
Mail list logo