true">
>> >
>> > I don't think logic:iterate supports property as "indexed".
>> > Probably you can create above tag using values you have.
>> >
>> > "bookLists[i].books[j].selected" will be converted as
>> > "g
t; > "bookLists[i].books[j].selected" will be converted as
> > "getBookList().get(i).getBooks().get(j).setSelected(value)" you will have
> > to
> > make sure that none of the getters return null object.
> >
> > Regards,
> > Nikhil
> > On Tue, Apr
turn null object.
>
> Regards,
> Nikhil
> On Tue, Apr 14, 2009 at 7:04 AM, thanuja
> wrote:
>
>>
>> Hi,
>>
>> I am using one logic iterate tag inside another. The data set at the
>> inner
>> loop should update form bean. Following explains what
).setSelected(value)" you will have to
make sure that none of the getters return null object.
Regards,
Nikhil
On Tue, Apr 14, 2009 at 7:04 AM, thanuja wrote:
>
> Hi,
>
> I am using one logic iterate tag inside another. The data set at the inner
> loop should update form bean. Fol
Hi,
I am using one logic iterate tag inside another. The data set at the inner
loop should update form bean. Following explains what i tried to do. This
way the data displays as I expected. But when I select the check box it
won't update the corresponding 'Book' object. (The f
ervlet.service(JspServlet.java:267)
>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>at
>> org.apache.catalina.core.ApplicationF
:26:04 -0800
> From: anishpis...@gmail.com
> To: user@struts.apache.org
> Subject: Logic Iterate problem
>
>
> Hi,
>
> In one page of my application i am trying to iterate through one collection
> for populating one combo box. But it is showing
> "javax.serv
ainBase.execute(ChainBase.java:190)
>at
> org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
>at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> at
> org.apache.struts.action.ActionServlet
)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Thanks and Regards,
Crazy Worker
--
View this message in context:
http://www.
ystem.out.println((creazioneProfiloUtenteForm.getHSportBean(0)).getValue());
> but I always obtain null values (for all indexes).
>
> So, I don't know how to solve my problem.
>
> I also followed guidelines in:
> http://faq.javaranch.com/java/IndexedProperties
> http://
a lot in advance.
--
View this message in context:
http://www.nabble.com/Problems-with-Indexed-Properties%2C-Hidden-Values-and-Logic-Iterate-Tag-tp19593011p19593011.html
Sent from the Struts - User mailing list archive at Nabble.com.
like to have it
> display using logic iterate tag in this manner :
>
> String1String5
>
>
> String2String6
>
>
> String3String7
>
>
> String4String8
>
> Hope someone helps, thank you.
>
--
View this message in context:
http://www.nabble.com/probl
Hello, i have a list of 8 String in session and i would like to have it
display using logic iterate tag in this manner :
String1String5
String2String6
String3String7
String4String8
Hope someone helps, thank you.
--
View this message in context:
http://www.nabble.com/problem-laying-out
On 9/8/06, Vishal <[EMAIL PROTECTED]> wrote:
I am stumped with something which i thought would not take that long and I
would appreciate any help i can get from you all. I am pasting below the code.
What does the corresponding action mapping in struts-config.xml look like?
Hi,
I am stumped with something which i thought would not take that long and I
would appreciate any help i can get from you all. I am pasting below the code.
org.act.rsp.util.Utils.java
-
public class Utils {
private Map passwordQuest
Hi i am trying to use a multi select box in logic iterate
in this way
in the form bean i have following code.
private Map selectedBooks;
public Object getBookMapped(String index) {
return selectedBooks.get(key);
}
public void setBookMapped(String index
Hi i am trying to use a multi select box in logic iterate
in this way
in the form bean i have following code.
private Map selectedBooks;
public Object getBookMapped(String index) {
return selectedBooks.get(key);
}
public void setBookMapped
: [EMAIL PROTECTED]
Date: Tue, 10 Jan 2006 08:39:34 -0800
To: user@struts.apache.org
Subject: How to use logic iterate...
> Hi All,
> I have the below logic , and I need to loop thriugh the Dmamarket Array
> using struts and
> Set the form attribute..
> My form has dmaMarket[]
Thanks. That was veru helpful, I got my problem solved..
-Original Message-
From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 3:21 PM
To: Struts Users Mailing List
Subject: Re: How to use logic iterate...
Shilpa,
Look at the lessons By Rick
http
Srinivas Jadcharla wrote the following on 1/10/2006 3:21 PM:
Shilpa,
Look at the lessons By Rick
http://www.reumann.net/struts/main.do
You'll find the answer.Thanks Rick for your lessons.
You're welcome, but I suggest if you want to get a jump on the more
up-to-date stuff you use the upda
an I use nested tags...
>
> -Original Message-
> From: Gary Feidt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 10, 2006 12:31 PM
> To: user@struts.apache.org
> Subject: Re: How to use logic iterate...
>
> If you have a getDmaMarket and setDmaMa
the attributes (country) also at the
same time.. Can I use nested tags...
-Original Message-
From: Gary Feidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 12:31 PM
To: user@struts.apache.org
Subject: Re: How to use logic iterate...
If you have a getDmaMarket and setDmaMarket
If you have a getDmaMarket and setDmaMarket property on your form, I
would do the following:
This will display your data, but it looks like you are trying to edit
the list by displaying it in tags. You may want to rethink
that, and use another page to edit each item individually.
Just my
Hi All,
I have the below logic , and I need to loop thriugh the Dmamarket Array
using struts and
Set the form attribute..
My form has dmaMarket[] as an attribute.
<%
DmaMarket[] dmaArray =
(DmaMarket[])session.getAttribute(Constants.ATTRIBUTE_EU_DMAMARKET_LIST)
;
Hi,
I am new to struts and played with the struts mail reader framework and could
not resolve the following puzzling,
In Registration.jsp there is an iteration statement.
I searched on web and did some of my research, here is my understanding.
subscriptions is name of th
arkup you would like to use not work for you? It looks fine to me.
L.
Vijay K Anand wrote:
Hi All
I have a problem in logic iterate .. I would like to dispaly
checkbox in each row of the iteration like
instead of
-
Why can't you just change your JSP? In other words, why does the markup you
would like to use not work for you? It looks fine to me.
L.
Vijay K Anand wrote:
Hi All
I have a problem in logic iterate .. I would like to dispaly checkbox
in each row of the iteration like
in
Hi All
I have a problem in logic iterate .. I would like to dispaly checkbox
in each row of the iteration like
instead of
Any help brothers??
Here goes the code
name="
thanks
On Fri, 18 Mar 2005 09:06:38 -0500, Slattery, Tim - BLS
<[EMAIL PROTECTED]> wrote:
> > How do you determine if your on the last element of your
> > logic:iterate loop?
>
> JSTL makes this very easy. Something like:
>
>
>
> stuff to do in the last iteration
>
>
thanks
On Fri, 18 Mar 2005 03:04:24 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:
> One way is to use a combination of logic:iterate's indexId attribute
> (serves as a loop counter) and the bean:size tag (can give the total
> size of a collection before you iterate). Then you could use a
> logic:e
> How do you determine if your on the last element of your
> logic:iterate loop?
JSTL makes this very easy. Something like:
stuff to do in the last iteration
--
Tim Slattery
[EMAIL PROTECTED]
-
To
One way is to use a combination of logic:iterate's indexId attribute
(serves as a loop counter) and the bean:size tag (can give the total
size of a collection before you iterate). Then you could use a
logic:equal test inside the iteration.
Erik
Richard Reyes wrote:
Hello All ,
How do you determ
Hello All ,
How do you determine if your on the last element of your logic:iterate loop?
Thanks
Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
scott burns wrote the following on 3/17/2005 5:21 PM:
How can I get the index and pass it to a js script function. I tried
setting it in my bean but using bean:write is not allowed it seems. Any
help would be appreciated.
http://struts.apache.org/userGuide/struts-logic.html#iterate
You need to
How can I get the index and pass it to a js script function. I tried
setting it in my bean but using bean:write is not allowed it seems. Any
help would be appreciated.
Scott
n
>
> -Original Message-
> From: Richard Reyes [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 24, 2005 3:52 PM
> To: Struts Users Mailing List
> Subject: logic iterate help
>
> Hello Guys,
>
> I have a user obj at sessionScope. Now this object
lay the username value...
>
> Does this answer ur question..?
>
> Cheers
> Rajasekaran Iyanu.
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Richard Reyes [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 24, 2005 3:52 PM
> To: Struts User
object to display the username value...
Does this answer ur question..?
Cheers
Rajasekaran Iyanu.
[EMAIL PROTECTED]
-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:52 PM
To: Struts Users Mailing List
Subject: logic iterate help
Hi Richards,
Make sure that class Ruser has getter and setter methods too
Regards,
Krishna Mohan
-Original Message-
From: Richard Reyes [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 3:52 PM
To: Struts Users Mailing List
Subject: logic iterate help
How do i display the username using logic iterate.
Please help
Thanks
Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the performance aspect.
Thanks,
Satish
-Original Message-
From: Aditya Athalye [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 11:52 AM
To: Kataria, Satish
Subject: RE: Logic Iterate tag
Hi Satish,
I understand that it will avoid Java code to a great extent. But, I want
to
: Aditya Athalye [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 10:44 AM
To: [EMAIL PROTECTED]
Subject: Logic Iterate tag
Hi All,
I am currently using for loops and iterators for traversing arrays and
coolections in JSP.
I am planning to use this logic : iterate tag in place of this
Hi All,
I am currently using for loops and iterators for traversing arrays and coolections in
JSP.
I am planning to use this logic : iterate tag in place of this.
I need to know if there is any advantage of using this tag in terms of performance or
reduction in Java code in JSP etc
P
>
> -Original Message-
> From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 14, 2004 5:28 AM
> To: Struts Users Mailing List
> Subject: RE: struts logic-iterate and accessing nested index
properties
>
> Thank you Tim. I used JSTL , tha
Hi,
It can as well be done in struts using this
[]
KP
-Original Message-
From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 5:28 AM
To: Struts Users Mailing List
Subject: RE: struts logic-iterate and accessing nested index properties
Thank you
Thank you Tim. I used JSTL , that solved my problem
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: struts logic-iterate and accessing nested index properties
> In
> In my JSP I have coded the following
> indexId="index"> property='<%= "fooBean[" + index + "].attID"
> %>'/> []
>
> When I run the JSP I get the following error
> Error 500: No getter method for property fooBean[0].attID of
> bean element
Use JSTL:
--
Tim Slattery
[EMAIL PROTECTE
Hi
I have a form bean which extexnds Action form .
FooForm
This FooForm has an array of another java bean say FooJavaBean
Public class FooForm extends ActionForm {
Public FooJavaBean[] fooBean = ;
Public FooJavaBean getFooBean(int index)
{
return fooBean[index];
}
Public FooJavaBean
Hi
I have a form bean which extexnds Action form .
FooForm
This FooForm has an array of another java bean say FooJavaBean
Public class FooForm extends ActionForm {
Public FooJavaBean[] fooBean = ;
Public FooJavaBean getFooBean(int index)
{
return fooBean[index];
}
Public FooJavaBean
49 matches
Mail list logo