struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Moreira <>
Subject Struts Tiles definitions
Date Mon, 07 Jul 2003 13:33:20 GMT
	Hello, is it possible to associate a request variable like 'action' to
struts tiles definitions, in the tiles-definition.xml ? 

Usually i have an index.jsp requesting a layout depending on the value
of the 'action' request parameter like this:

 <logic:present parameter="action" scope="request" >
        <logic:equal parameter="action" value="add" scope="request">
            <tiles:insert definition="site.mainLayout.addEvent"
flush="true" />

        <logic:equal  parameter="action" value="edit" scope="request">
            <tiles:insert definition="site.mainLayout.editEvent"
flush="true" />

        <logic:equal  parameter="action" value="confirmDelete"
definition="site.mainLayout.confirmDeleteEvent" flush="true" />


And what about the 'best-pratice' of it ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message