struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Mendonça" <marc...@gmail.com>
Subject [struts2] s:generator not generating output
Date Mon, 29 Oct 2007 13:20:25 GMT
Hello

I'm using Struts2.0.9.
I have to generate a number o inputs acording to a parameter. I tried
using the Iterator Generator Tag on the Struts2 Showcase application,
but the output for me is nothing, null.

This is my jsp code:

    <s:generator val="" separator="," count="getGroupSize()">
        <s:iterator value="%{top}">
            <s:property />
            <s:textfield name="input" size="2" value="11">
        </s:iterator>
    </s:generator>

getGroupSize() is a method in the action that returns an int. I tested
it and is working properly.

What could be wrong, or where what should I look for to find out why
the generator is not working for me?

Any tips appreciated.

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message