On Sat, 2003-03-29 at 02:46, Puneet Agarwal wrote:
> Unfortunately, this did not work, mostly because this will substitute the
> value at a later stage than required.

I can't really help, if you don't specify your requirements.

> 
> We need some other solution to this....
> 
> Any more  clues !!!
> 
> ------------James Mitchell Suggested:
> ------------------------------------------------
> Did you try this?
> 
> <bean:define id="myType">
>   <bean:write name="txtInput">
> </bean:define>
> <logic:iterate id="idDataClass" property="vData" type="<%=myType%>">
> 
> ------------Original Problem
> --------------------------------------------------------
> Can this work
> 
> <logic:iterate id="idDataClass" property="vData" type="<bean:write
> name=txtInput>">
> 
> 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>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> 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