You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vinod Kumar <vk...@yahoo.com> on 2006/09/28 00:07:21 UTC
can i access tile definition name directly in browser
Hi,
Can I access a tile definition name like "loginPage"
as below directly in the browser. I have
defined them in the tiles-defs.xml as below.
Basically, I want to make the page printable
and want to access the definition name for that
purpose. Thanks in advance for your help.
<definition name="loginPage" extends="baseLayout">
<put name="title"
value="/jsp/tiles/htmlHeader.jsp" />
<put name="content"
value="/jsp/login-content.jsp" />
</definition>
<definition name="loggedinPage"
extends="baseLayout">
<put name="title"
value="/jsp/tiles/htmlHeader.jsp" />
<put name="content"
value="/jsp/loggedin-content.jsp" />
</definition>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[tiles] Re: can i access tile definition name directly in browser
Posted by Antonio Petrelli <ap...@apache.org>.
Vinod Kumar ha scritto:
> Hi,
> Can I access a tile definition name like "loginPage"
> as below directly in the browser.
No, at least not directly, but you can define an attribute in the layout
page, e.g.:
<tiles:getAsString name="definitionName">
and doing:
<definition name="loginPage" extends="baseLayout">
<put name="definitionName" value="loginPage" />
<!-- The rest remains the same -->
</definition>
HTH
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org