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/10/13 19:47:54 UTC
How to access JSP variable declared in layout file into a tile
Hi All,
I have a JSP variable declared in the tiles layout
file. Now I want to use that variable inside one of
the tile declared in this layout.
Below is the layout file and I have a JSP variable
called "test" dclared in this. Now I want to use this
variable in the "content" tile. How can i do this.
***********start of layout-tiles.jsp**************
<html:html>
<head>
<title><tiles:insert
attribute="title"/></title>
<%@ include file="include/printable.jsp" %>
<% String test ="This is test"; %>
<tiles:insert attribute="head"/>
</head>
<body>
<tiles:insert attribute="top"/>
<tiles:insert attribute="content"/>
<tiles:insert attribute="bottom"/>
</body>
</html:html>
**********end of layout-tiles.jsp****************
Thanks
Vinod
__________________________________________________
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