On Sat, 2003-03-29 at 00:11, Puneet Agarwal wrote:
> Can this work
> 
> <logic:iterate id="idDataClass" property="vData" type="<bean:write
> name=txtInput>">

Did you try this?

<bean:define id="myType">
  <bean:write name="txtInput">
</bean:define>
<logic:iterate id="idDataClass" property="vData" type="<%=myType%>">


> 
> I want to give the "type" at run time  to make a re-usable TILE for our
> application.
> 
> Complete code is shown below.
> 
> ------------------------------------------------------------------------------------------------------------------------------------
> <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
> 
> <html:html locale="true">
>   <head>
>     <html:base/>
>   </head>
>   <BODY class="BodyClass">
>     <html:form name="FormTableRO" action="/pages/TableRO.do"
>                type="com.tiger.inf.forms.FormTableRO">
>       <logic:iterate id="idDataClass" property="vData" type="<bean:write
> name=txtInput>">
>         <bean:write name="idDataClass" property="time"/>
>         <bean:write name="idDataClass" property="day"/>
>       </logic:iterate>
>     </html:form>
>   </body>
> </html:html>
> ------------------------------------------------------------------------------------------------------------------------------------
> 
> Regards,
> Puneet Agarwal
> Ext: 1031
> 
> Struts ... Action ... Struts in Action ... Action in Struts ... Action
> "with" Struts ...
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to