If you are using the bean-el tag it should have worked. In any case this should work too :
<tiles:importAttribute /> <html:form method="post" action="<%=action%>"> -----Original Message----- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 2:21 PM To: Struts Users Mailing List Subject: Re: string substitution in tiles No, that doesn't work. I get an exception and look in the log and see: 2004-03-29 17:15:07 DEBUG InsertTag.java:945 - [ServletException in:/WEB-INF/tiles/layouts/FormLayout.jsp] Cannot retrieve mapping for action /<bean:write name="action"/>' any other ideas? Dean Hoover Avinash Gangadharan wrote: >Try this : > >In tiles-def.xml --- <put name="action" value="Logon.do" /> > >In your jsp --- ><tiles:importAttribute /> ><html:form method="post" action='<bean:write name="action"/>'> > > > > > > > > > >-----Original Message----- >From: Dean A. Hoover [mailto:[EMAIL PROTECTED] >Sent: Monday, March 29, 2004 1:40 PM >To: [EMAIL PROTECTED] >Subject: string substitution in tiles > > >I have a general form layout I am defining in >tiles. But there is one thing I'm not sure how >to do. The relevant part of the form layout >looks like this: > ><td valign="top"> ><html:form method="post" action="xxx"> ><table cellpadding="0" cellspacing="0" width="100%"> ><tr> ><td> ><table cellpadding="0" cellspacing="0" width="100%"> ><tr> ><td><els:spacer width="150"/></td> ><td><els:spacer width="250"/></td> ></tr> ><tiles:get name="subForm"/> ></table> ></td> ></tr> ><tr> ><td> ><tiles:get name="buttons"/> ></td> ></tr> ></table> ></html:form> ></td> > > >I want to replace the xxx action with a string >I define in tiles-defs.xml. Say I want to call the >replacement string "url" and in one instance I >want it to be "/Logon.do". What does the put >look like in tiles-defs.xml and how can I modify >the JSP snippet shown above to do the appropriate >replacement (for action="xxx")? > >Thanks. >Dean Hoover > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]