HI Friends,
I am developing an application which needs to port attribute of one tile to
other.
Heres my defintion of tiles:
<definition name = "AMBody" page =
"/activity/common/amTiles/layout/AMLayoutBody.jsp" >
<put name = "title" value = "Page Title" type = "string" />
<put name = "pageName" value = "Current Page" type = "string" />
<put name = "message" value = "/activity/common/messages.jsp" />
<put name = "topNav" value = "/activity/common/topNav.jsp" />
<put name = "body" value = "pageContent" type = "page" />
</definition>
<definition name = "ExportResourcePool" extends = "AMBody" >
<put name = "title" value = "Export Resource Pool" />
<put name = "pageName" value = "ExportResourcePool"/>
<put name = "body" value = "/activity/plan/exportResourcePool.jsp" />
</definition>
My Action in Struts-config.xml
<action path = "/activity/exportResourcePool"
name = "emptyForm"
type = "net.collab.sourcecast.igrid.web.action.AMPlanAction"
input = "ExportResourcePool"
scope = "request" >
<forward name = "success" path = "ExportResourcePool" />
</action>
In my /activity/plan/exportResourcePool.jsp which is a part of
ExportResourcePool Definition.
i've coded
<tiles:useAttribute id = "currentPage" name = "pageName" type =
"java.lang.String" scope = "request" />
and when i try to access this attribute using
<bean:write name = "currentPage" />
I am getting an exception saying
<strong>currentPage</strong> is not found in any scope.
I am unable to figure out how to proceed ...
kindly help resolving this issue.
Thanking you in advance
regards,
Sunny.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]