> > Hi!
> >
> > I'm trying to combine jsp & struts code in my jsp pages. Problem is that i
don't know how to do
> > this :-( I try to use <% out.println("<bean:write
...../>"); %> but this doesn't work.
> >
> > Is there a way to do this?
> 
> What exactly do you want to do?
> 

I manage to generate form in jsp page in loop. Something like:

from 0-10
{
html:input name="var"
}

Now i see that i need some input field, some drop down, and so on. So i think 
to do
something like:
if some session attribute is 0
go to part where you have input filed
else if 1
go to part where you have drop down menu
....

tnx,
Stanislav

PS: complete code:

                <% int temp = 0;%>
                <logic:present
name="hmKolateralInvesticijskiDataPrijenosList2">
                    <logic:iterate
id="hmKolateralInvesticijskiDataPrijenos2"
name="hmKolateralInvesticijskiDataPrijenosList2">
                        <tr bgcolor="<bean:write
name='hmKolateralInvesticijskiDataPrijenos2'
property='bgcolor'/>">
                            <% 
                                String proba = session.getAttribute("" + temp
+ "").toString();
                                String data = session.getAttribute("" + temp
+ "-0").toString();
                                String name = session.getAttribute("" + temp
+ "-1").toString();
                            %>
                            <td width="300" align="left">
                                <font class="PodaciBold"><%
out.println(proba);%>:</font>
                            </td>
                            <td class="Podaci" align="right">
                                  <html:text size="54"
property="<%=name%>" styleClass="InputTable"
value="<%=data%>"/>
                            </td>
                            <% temp++; %>
                        </tr>    
                    </logic:iterate>
                </logic:present>

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

Reply via email to