Re: How to pass a tiles attribute into an s:url

2008-10-23 Thread 928572663
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

Re: How to pass a tiles attribute into an s:url

2008-10-15 Thread Antonio Petrelli
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

Re: How to pass a tiles attribute into an s:url

2008-10-15 Thread 928572663
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

How to pass a tiles attribute into an s:url

2008-10-14 Thread 928572663
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,