I think I know why it doesn't get it right.
My template file is:
<tiles:insert template='/Template.jsp'>
<tiles:put name='title' content='Application' direct='true'/>
<tiles:put name='stepimage' content='/images/dealerapp1of7.gif' direct='true'/>
<tiles:put name='header' content='/header.jsp' />
<tiles:put name='sidebar' content='/sidebar.jsp' />
<tiles:put name='content' content='/MainApplication-content.jsp'/>
<tiles:put name='footer' content='/footer.jsp' />
</tiles:insert>
And <bean:define ... > was placed in header.jsp
What should I do?
Thanks,
Phong.
On Tue, 28 Sep 2004, James Mitchell wrote:
That's correct. You cannot nest custom taglibs.
Try separating them:
<bean:define id="pg"> <tiles:get name='step'/> </bean:define> <html:img page="<%=pg%>" height="10" />
if 'step' was set to "/images/myImage.gif", and your app was "myApp", you would get:
<img src="/myApp/images/myImage.gif">
-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx
----- Original Message ----- From: "Phong Nguyen Thanh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 28, 2004 2:39 PM Subject: How to use tiles:get together with html:img
Hi,
I want to do something like this
<html:img page="<tiles:get name='step'/>" height="10" />
step will represent some images that is dynamically put into using tiles:put. But what I got is
<img src="/validator<tiles:get name='title'/>"
i.e. <tiles:get name='step'/> is not get expanded.
Can I do the above and how?
Thank you very much.
Kind regards,
Phong.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]