Hello Chad, hello Yoge,
thanks for your hints!
meanwhile, I could find a third solution:
Another solution should be to use EL:
But this solution doesn't work for me (the string ${object.rows} appears
unchanged after rows=) , though I'm using tomcat 5.5 and struts 1.2.9..
May be,
Another way to do it (with a little bit less java) is:
[EMAIL PROTECTED] wrote:
Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList ):
This does not work.
How must it been written to address the method getRows() in the object,
Try following tag...
On 7/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList ):
This does not work.
How must it been written to address the method getRows() in the object,
which has bee
Great!
it works fine...
thanks Jeff and Erik.
Lucas
Jeff Beal <[EMAIL PROTECTED]> wrote:
>From http://struts.apache.org/userGuide/struts-logic.html#iterate:
collection: A runtime expression that evaluates to a collection
probably evaluates to a String.
What you need is
name=''
On 4/21/05, Luc
>From http://struts.apache.org/userGuide/struts-logic.html#iterate:
collection: A runtime expression that evaluates to a collection
<%=Globales.AreaPersonal.MODULOS_KEY%> probably evaluates to a String.
What you need is
name='<%=Globales.AreaPersonal.MODULOS_KEY%>'
On 4/21/05, Lucas Bern <[EMA
Hmm I didn't even notice that.
However, this is the section of code that throws that Exception (from
1.2.4 src):
/**
* Construct an iterator for the specified collection, and begin
* looping through the body once per element.
*
* @exception JspException if a JSP exception has o
Looks like you are trying to iterate over string.
How about this:
Michael.
On 4/21/05, Lucas Bern <[EMAIL PROTECTED]> wrote:
>
> Hi all...
>
> I get this exception trying to render options with logic iterate tag...
>
> javax.servlet.jsp.JspException: Cannot create iterator for this collecti
I would like to get a null pointer exception or a "can not set bean to null"
when my list is null...
I use to solve this kind of problem with html:options and
html:optionsCollection but what i have to do in this page is very complex for
this tags...
thanks for your answer Erik
Lucas
Erik W
I think your List reference is probably null.
Also, have you looked at html:options and html:optionsCollection?
Erik
Lucas Bern wrote:
Hi all...
I get this exception trying to render options with logic iterate tag...
javax.servlet.jsp.JspException: Cannot create iterator for this collection
My act
Assuming you have a scoped Collection named "pageRecords":
Struts tags:
JSTL:
robert
> -Original Message-
> From: Eddie Yan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 23, 2004 12:06 PM
> To: [EMAIL PROTECTED]
> Subject: Logic:Iterate Problem
>
>
> Hi guys,
>
> Say I
10 matches
Mail list logo