struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaƫl di Cicco <raphael.dici...@atosorigin.com>
Subject Tiles attributes used in beans
Date Tue, 29 Apr 2003 16:02:03 GMT
Hi,

here is my situation I have a JSP page that display a list of results from a
Bean. I have several pages that use this model, every page uses its own
Bean.

in my JSP page :
<bean:define id="searchResults" name="BeanResultObject"
property="searchArray" />

Only the String BeanResultObject is specific to the page. Therefore I
decided to do something like this :

<bean:define id="searchResults" name=<tiles:getAsString name="resultBean">
property="searchArray" />
With a definition in my tiles XML file :
<tiles-definitions>
<definition name="page.results" path="layout/pageResults.jsp">
<put name="title" value="Title of my page" />
<put name="resultBean" value="BeanResultObject" />
</definition>
</tiles-definitions>

Of course my solution doesn't work because I can't use a struts tag inside a
struts tag ! Do anyone see any solution to this problem, this might help me
do a better job in reusability.

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message