struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Moreira <jmore...@e-terno.net>
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>

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

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

    </logic:present>


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


---------------------------------------------------------------------
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