Using tiles for dynamic action,
May 10, 2007 at 1:20 PM
Hi, I would like to use tiles for dynamic action, it means that I have 2 tiles template, each of them will set different action name to the JSP. for example: For mobile product I set the action <definition name="mobile" template="/search.jsp"> <put name="actionName" value="/mobileSearch.do"/> </definition> For land line: <definition name="land" template="/search.jsp"> <put name="actionName" value="/landSearch.do"/> </definition>
in the jsp I set the action name like that: <html:form action="<tiles:getAsString name="actionName"/>"> . . </html:form> I got an exception. How can I do that using tiles? Is it possible? Thanks, Jaron