Hi to all.
I have a problem with a logic:iterate tag. I'm using Struts 1.3.
I have to populate a select with data read from db (by invoking the first
Action). When a select option is selected in the jsp, I have to invoke a
second Action (on the same jsp page) which has to perform some operations
a
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
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 been defined by id in logic:iterate?
Kind regards,
Andreas Hartmann
"Jetzt Handy
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
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 action just get a List form a Srevice layer and store it in session scope
under Globales.AreaPersonal.MODULOS_KEY.
<%=((Contenibl
ot;applicationScope" depending on the "pageRecords" is stored.
BR
/Amleto
-Messaggio originale-
Da: Eddie Yan [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 23 giugno 2004 18.06
A: [EMAIL PROTECTED]
Oggetto: Logic:Iterate Problem
Hi guys,
Say I have a JSP as follows:
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
ot;applicationScope" depending on the "pageRecords" is stored.
-Messaggio originale-
Da: Eddie Yan [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 23 giugno 2004 18.06
A: [EMAIL PROTECTED]
Oggetto: Logic:Iterate Problem
Hi guys,
Say I have a JSP as follows:
Hi guys,
Say I have a JSP as follows:
<%
Iterator iter = pageRecords.iterator();
while(iter.hasNext())
{
UserDetail detail = (UserDetail)iter.next();
%>
<%= detail.getId() %>
<%
}
%>
pageRecords is a Collection of UserDetail object.
UserDetail is my data tr
16 matches
Mail list logo