RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
I did not mean that J.  I meant let's see the code.  Stop being so 
private.  LOL.  Give it up!

At 02:19 AM 2/4/2004, you wrote:
Sorry Michael.  I do that in a jsp page.

> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > bgcolor="">
> > > >   
> > > > 
> > > > property="receiptNumber"/>
> > > >   
> > > >   
> > > > 
> > > > property="transactionDate"/>
> > > >   
> > > > 
> > > >   
> > > > 

> > > >

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 6:14 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
If you do this where?  You are not giving enough information.  Either give
it up or I have to retire.  Thanks.
At 02:07 AM 2/4/2004, you wrote:
>if I do a 
>I get
>[EMAIL PROTECTED]
>So I know that the element is there!!
>
>I will send a stack trace in a second.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:50 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>Could you please give more details?  Show me the stack trace or whatever
>you are seeing.
>
>At 01:44 AM 2/4/2004, you wrote:
> >I am still getting Cannot Create Iterator for this collection error.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:42 PM
> >To: Struts Users Mailing List
> >Subject: RE: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >What happens?
> >
> >
> >At 01:36 AM 2/4/2004, you wrote:
> > >I did put a bean:write in there and it still doesn't work.
> > >
> > >-Original Message-
> > >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, 4 February 2004 5:35 PM
> > >To: Struts Users Mailing List
> > >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> > >
> > >
> > >I have not looked at this closely, but I notice there is no write in the
> > >nested iterator.  Can you say what happens with this when you run it?
> > >
> > >At 01:06 AM 2/4/2004, you wrote:
> > > >Hi All,
> > > >
> > > >I have a List collection (paymntTrnsctns) which contains an
> adminReceipts
> > > >objects. One of the properties of adminReceipts is a list.  So I 
display
> > > >the normal string properties of the object, such as receiptNumber and
> > > >transactionDate, but can't then get the list adminPaymentDetails 
within
> > > >the adminReceipts object.
> > > >
> > > >I am trying to execute the following code:
> > > >
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > > bgcolor="">
> > > >   
> > > > 
> > > > property="receiptNumber"/>
> > > >   
> > > >   
> > > > 
> > > > property="transactionDate"/>
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > >   
> > > >
> > > >
> > > >Can anyone please tell me what I'm doing wrong.
> > > >
> > > >Thanks,
> > > >
> > > >Jackie.
> > > >
> > > >-
> &g

RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes
Oh, i see. Nope, it isn't.  Its an object that should be in a collection! doh!!

Thanks very much Michael.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 6:22 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection


Is [EMAIL PROTECTED] a collection?

At 02:07 AM 2/4/2004, you wrote:
>if I do a 
>I get
>[EMAIL PROTECTED]
>So I know that the element is there!!
>
>I will send a stack trace in a second.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:50 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>Could you please give more details?  Show me the stack trace or whatever
>you are seeing.
>
>At 01:44 AM 2/4/2004, you wrote:
> >I am still getting Cannot Create Iterator for this collection error.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:42 PM
> >To: Struts Users Mailing List
> >Subject: RE: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >What happens?
> >
> >
> >At 01:36 AM 2/4/2004, you wrote:
> > >I did put a bean:write in there and it still doesn't work.
> > >
> > >-Original Message-----
> > >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, 4 February 2004 5:35 PM
> > >To: Struts Users Mailing List
> > >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> > >
> > >
> > >I have not looked at this closely, but I notice there is no write in the
> > >nested iterator.  Can you say what happens with this when you run it?
> > >
> > >At 01:06 AM 2/4/2004, you wrote:
> > > >Hi All,
> > > >
> > > >I have a List collection (paymntTrnsctns) which contains an 
> adminReceipts
> > > >objects. One of the properties of adminReceipts is a list.  So I display
> > > >the normal string properties of the object, such as receiptNumber and
> > > >transactionDate, but can't then get the list adminPaymentDetails within
> > > >the adminReceipts object.
> > > >
> > > >I am trying to execute the following code:
> > > >
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > >   
> > > > 
> > > >   
> > > > 
> > > >  > > > bgcolor="">
> > > >   
> > > >  > > > property="receiptNumber"/>
> > > >   
> > > >   
> > > >  > > > property="transactionDate"/>
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > >   
> > > >
> > > >
> > > >Can anyone please tell me what I'm doing wrong.
> > > >
> > > >Thanks,
> > > >
> > > >Jackie.
> > > >
> > > >-
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



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


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



Re: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael Wiles

You need to specify the name of the collection in the nested iterator
(the getter).

Add another parameter to the nested iterator line called property.




I'm having trouble referencing properties of the nested iterator.

On Wed, 2004-02-04 at 11:06, Jacqueline Gomes wrote:
> Hi All,
> 
> I have a List collection (paymntTrnsctns) which contains an adminReceipts objects. 
> One of the properties of adminReceipts is a list.  So I display the normal string 
> properties of the object, such as receiptNumber and transactionDate, but can't then 
> get the list adminPaymentDetails within the adminReceipts object.
> 
> I am trying to execute the following code:
> 
>   
>  
>   
>   
> 
>   
>  
> 
>   
> 
>   
>   ">
> 
>   
> 
> 
>   
> 
>  
> 
>   
>   
>   
> 
> 
> Can anyone please tell me what I'm doing wrong.
> 
> Thanks,
> 
> Jackie.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
> If you don't have web access, the disclaimer can be mailed to you on request.
> Disclaimer requests to be sent to [EMAIL PROTECTED]
-- 
Michael Wiles <[EMAIL PROTECTED]>
Pick 'n Pay IS - 1665


Read our disclaimer at: http://www.picknpay.co.za/email-disclaimer.htm
If you don't have web access, the disclaimer can be mailed to you on request.
Disclaimer requests to be sent to [EMAIL PROTECTED]

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



RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
   at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from 
/admi
n/adm_obtain_extract_results.jsp:81
at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
at 
jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
java:381)
at 
jrun__admin__adm_obtain_extract_results2ejsp25._jspService(jrun__admi
n__adm_obtain_extract_results2ejsp25.java:540)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
ava:414)
at 
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
r.java:387)
at 
jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
:172)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(Reques
tProcessor.java:455)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
Could you please give more details?  Show me the stack trace or whatever
you are seeing.
At 01:44 AM 2/4/2004, you wrote:
>I am still getting Cannot Create Iterator for this collection error.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:42 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>What happens?
>
>
>At 01:36 AM 2/4/2004, you wrote:
> >I did put a bean:write in there and it still doesn't work.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:35 PM
> >To: Struts Users Mailing List
> >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >I have not looked at this closely, but I notice there is no write in the
> >nested iterator.  Can you say what happens with this when you run it?
> >
> >At 01:06 AM 2/4/2004, you wrote:
> > >Hi All,
> > >
> > >I have a List collection (paymntTrnsctns) which contains an 
adminReceipts
> > >objects. One of the properties of adminReceipts is a list.  So I display
> > >the normal string properties of the object, such as receiptNumber and
> > >transactionDate, but can't then get the list adminPaymentDetails within
> > >the adminReceipts object.
> > >
> > >I am trying to execute the following code:
> > >
> > >   
> > > 
> > >   
> > > 
> > >   
> > > 
> > >

RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
Is [EMAIL PROTECTED] a collection?

At 02:07 AM 2/4/2004, you wrote:
if I do a 
I get
[EMAIL PROTECTED]
So I know that the element is there!!
I will send a stack trace in a second.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
Could you please give more details?  Show me the stack trace or whatever
you are seeing.
At 01:44 AM 2/4/2004, you wrote:
>I am still getting Cannot Create Iterator for this collection error.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:42 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>What happens?
>
>
>At 01:36 AM 2/4/2004, you wrote:
> >I did put a bean:write in there and it still doesn't work.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:35 PM
> >To: Struts Users Mailing List
> >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >I have not looked at this closely, but I notice there is no write in the
> >nested iterator.  Can you say what happens with this when you run it?
> >
> >At 01:06 AM 2/4/2004, you wrote:
> > >Hi All,
> > >
> > >I have a List collection (paymntTrnsctns) which contains an 
adminReceipts
> > >objects. One of the properties of adminReceipts is a list.  So I display
> > >the normal string properties of the object, such as receiptNumber and
> > >transactionDate, but can't then get the list adminPaymentDetails within
> > >the adminReceipts object.
> > >
> > >I am trying to execute the following code:
> > >
> > >   
> > > 
> > >   
> > > 
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > > 
> > > 
> > > bgcolor="">
> > >   
> > > 
> > > property="receiptNumber"/>
> > >   
> > >   
> > > 
> > > property="transactionDate"/>
> > >   
> > > 
> > >   
> > > 
> > > 
> > >   
> > >
> > >
> > >Can anyone please tell me what I'm doing wrong.
> > >
> > >Thanks,
> > >
> > >Jackie.
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



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


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


RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
  at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from 
/admi
n/adm_obtain_extract_results.jsp:81
at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
at 
jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
java:381)
at 
jrun__admin__adm_obtain_extract_results2ejsp25._jspService(jrun__admi
n__adm_obtain_extract_results2ejsp25.java:540)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
ava:414)
at 
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
r.java:387)
at 
jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
:172)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(Reques
tProcessor.java:455)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
Could you please give more details?  Show me the stack trace or whatever
you are seeing.
At 01:44 AM 2/4/2004, you wrote:
>I am still getting Cannot Create Iterator for this collection error.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:42 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>What happens?
>
>
>At 01:36 AM 2/4/2004, you wrote:
> >I did put a bean:write in there and it still doesn't work.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:35 PM
> >To: Struts Users Mailing List
> >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >I have not looked at this closely, but I notice there is no write in the
> >nested iterator.  Can you say what happens with this when you run it?
> >
> >At 01:06 AM 2/4/2004, you wrote:
> > >Hi All,
> > >
> > >I have a List collection (paymntTrnsctns) which contains an 
adminReceipts
> > >objects. One of the properties of adminReceipts is a list.  So I display
> > >the normal string properties of the object, such as receiptNumber and
> > >transactionDate, but can't then get the list adminPaymentDetails within
> > >the adminReceipts object.
> > >
> > >I am trying to execute the following code:
> > >
> > >   
> > > 
> > >   
> > > 
> > >   
> > > 
> > >

RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes
Sorry Michael.  I do that in a jsp page.

> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > >   
> > > > 
> > > >   
> > > > 
> > > >  > > > bgcolor="">
> > > >   
> > > >  > > > property="receiptNumber"/>
> > > >   
> > > >   
> > > >  > > > property="transactionDate"/>
> > > >   
> > > > 
> > > >   
> > > > 

> > > >

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 6:14 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection


If you do this where?  You are not giving enough information.  Either give 
it up or I have to retire.  Thanks.


At 02:07 AM 2/4/2004, you wrote:
>if I do a 
>I get
>[EMAIL PROTECTED]
>So I know that the element is there!!
>
>I will send a stack trace in a second.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:50 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>Could you please give more details?  Show me the stack trace or whatever
>you are seeing.
>
>At 01:44 AM 2/4/2004, you wrote:
> >I am still getting Cannot Create Iterator for this collection error.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:42 PM
> >To: Struts Users Mailing List
> >Subject: RE: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >What happens?
> >
> >
> >At 01:36 AM 2/4/2004, you wrote:
> > >I did put a bean:write in there and it still doesn't work.
> > >
> > >-Original Message-
> > >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, 4 February 2004 5:35 PM
> > >To: Struts Users Mailing List
> > >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> > >
> > >
> > >I have not looked at this closely, but I notice there is no write in the
> > >nested iterator.  Can you say what happens with this when you run it?
> > >
> > >At 01:06 AM 2/4/2004, you wrote:
> > > >Hi All,
> > > >
> > > >I have a List collection (paymntTrnsctns) which contains an 
> adminReceipts
> > > >objects. One of the properties of adminReceipts is a list.  So I display
> > > >the normal string properties of the object, such as receiptNumber and
> > > >transactionDate, but can't then get the list adminPaymentDetails within
> > > >the adminReceipts object.
> > > >
> > > >I am trying to execute the following code:
> > > >
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > > 
> > > >   
> > > >   
> > > > 
> > > >   
> > > > 
> > > >  > > > bgcolor="">
> > > >   
> > > >  > > > property="receiptNumber"/>
> > > >   
> > > >   
> > > >  > > > property="transactionDate"/>
> > > >   
> > > > 
> > > >   
> > > > 
> > > > 
> > > >   
> > > >
> > > >
> > > >Can anyone please tell me what I'm doing wrong.
> > > >
> > > >Thanks,
> > > >
> > > >Jackie.
> > > >
> > > >-
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > &g

RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
If you do this where?  You are not giving enough information.  Either give 
it up or I have to retire.  Thanks.

At 02:07 AM 2/4/2004, you wrote:
if I do a 
I get
[EMAIL PROTECTED]
So I know that the element is there!!
I will send a stack trace in a second.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
Could you please give more details?  Show me the stack trace or whatever
you are seeing.
At 01:44 AM 2/4/2004, you wrote:
>I am still getting Cannot Create Iterator for this collection error.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:42 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>What happens?
>
>
>At 01:36 AM 2/4/2004, you wrote:
> >I did put a bean:write in there and it still doesn't work.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:35 PM
> >To: Struts Users Mailing List
> >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >I have not looked at this closely, but I notice there is no write in the
> >nested iterator.  Can you say what happens with this when you run it?
> >
> >At 01:06 AM 2/4/2004, you wrote:
> > >Hi All,
> > >
> > >I have a List collection (paymntTrnsctns) which contains an 
adminReceipts
> > >objects. One of the properties of adminReceipts is a list.  So I display
> > >the normal string properties of the object, such as receiptNumber and
> > >transactionDate, but can't then get the list adminPaymentDetails within
> > >the adminReceipts object.
> > >
> > >I am trying to execute the following code:
> > >
> > >   
> > > 
> > >   
> > > 
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > > 
> > > 
> > > bgcolor="">
> > >   
> > > 
> > > property="receiptNumber"/>
> > >   
> > >   
> > > 
> > > property="transactionDate"/>
> > >   
> > > 
> > >   
> > > 
> > > 
> > >   
> > >
> > >
> > >Can anyone please tell me what I'm doing wrong.
> > >
> > >Thanks,
> > >
> > >Jackie.
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



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


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


RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes
et.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /admi
n/adm_obtain_extract_results.jsp:81
at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.
java:381)
at jrun__admin__adm_obtain_extract_results2ejsp25._jspService(jrun__admi
n__adm_obtain_extract_results2ejsp25.java:540)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
ava:414)
at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
r.java:387)
at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
:172)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(Reques
tProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
241)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection


Could you please give more details?  Show me the stack trace or whatever 
you are seeing.

At 01:44 AM 2/4/2004, you wrote:
>I am still getting Cannot Create Iterator for this collection error.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:42 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>What happens?
>
>
>At 01:36 AM 2/4/2004, you wrote:
> >I did put a bean:write in there and it still doesn't work.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:35 PM
> >To: Struts Users Mailing List
> >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >I have not looked at this closely, but I notice there is no write in the
> >nested iterator.  Can you say what happens with this when you run it?
> >
> >At 01:06 AM 2/4/2004, you wrote:
> > >Hi All,
> > >
> > >I have a List collection (paymntTrnsctns) which contains an adminReceipts
> > >objects. One of the properties of adminReceipts is a list.  So I display
> > >the normal string properties of the object, such as receiptNumber and
> > >transactionDate, but can't then get the list adminPaymentDetails within
> > >the adminReceipts object.
> > >
> > >I am trying to execute the following code:
> > >
> > >   
> > > 
> > >   
> > > 
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > >  

RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes
if I do a 
I get
[EMAIL PROTECTED] 
So I know that the element is there!!

I will send a stack trace in a second.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:50 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection


Could you please give more details?  Show me the stack trace or whatever 
you are seeing.

At 01:44 AM 2/4/2004, you wrote:
>I am still getting Cannot Create Iterator for this collection error.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:42 PM
>To: Struts Users Mailing List
>Subject: RE: Logic Iterate - Cannot Create iterator for this collection
>
>
>What happens?
>
>
>At 01:36 AM 2/4/2004, you wrote:
> >I did put a bean:write in there and it still doesn't work.
> >
> >-Original Message-
> >From: Michael McGrady [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, 4 February 2004 5:35 PM
> >To: Struts Users Mailing List
> >Subject: Re: Logic Iterate - Cannot Create iterator for this collection
> >
> >
> >I have not looked at this closely, but I notice there is no write in the
> >nested iterator.  Can you say what happens with this when you run it?
> >
> >At 01:06 AM 2/4/2004, you wrote:
> > >Hi All,
> > >
> > >I have a List collection (paymntTrnsctns) which contains an adminReceipts
> > >objects. One of the properties of adminReceipts is a list.  So I display
> > >the normal string properties of the object, such as receiptNumber and
> > >transactionDate, but can't then get the list adminPaymentDetails within
> > >the adminReceipts object.
> > >
> > >I am trying to execute the following code:
> > >
> > >   
> > > 
> > >   
> > > 
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > > 
> > >  > > bgcolor="">
> > >   
> > >  > > property="receiptNumber"/>
> > >   
> > >   
> > >  > > property="transactionDate"/>
> > >   
> > > 
> > >   
> > > 
> > > 
> > >   
> > >
> > >
> > >Can anyone please tell me what I'm doing wrong.
> > >
> > >Thanks,
> > >
> > >Jackie.
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



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


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



RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
Could you please give more details?  Show me the stack trace or whatever 
you are seeing.

At 01:44 AM 2/4/2004, you wrote:
I am still getting Cannot Create Iterator for this collection error.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:42 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection
What happens?

At 01:36 AM 2/4/2004, you wrote:
>I did put a bean:write in there and it still doesn't work.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:35 PM
>To: Struts Users Mailing List
>Subject: Re: Logic Iterate - Cannot Create iterator for this collection
>
>
>I have not looked at this closely, but I notice there is no write in the
>nested iterator.  Can you say what happens with this when you run it?
>
>At 01:06 AM 2/4/2004, you wrote:
> >Hi All,
> >
> >I have a List collection (paymntTrnsctns) which contains an adminReceipts
> >objects. One of the properties of adminReceipts is a list.  So I display
> >the normal string properties of the object, such as receiptNumber and
> >transactionDate, but can't then get the list adminPaymentDetails within
> >the adminReceipts object.
> >
> >I am trying to execute the following code:
> >
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >  > bgcolor="">
> >   
> >  > property="receiptNumber"/>
> >   
> >   
> >  > property="transactionDate"/>
> >   
> > 
> >   
> > 
> > 
> >   
> >
> >
> >Can anyone please tell me what I'm doing wrong.
> >
> >Thanks,
> >
> >Jackie.
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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


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


RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes
I am still getting Cannot Create Iterator for this collection error.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:42 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate - Cannot Create iterator for this collection


What happens?


At 01:36 AM 2/4/2004, you wrote:
>I did put a bean:write in there and it still doesn't work.
>
>-Original Message-
>From: Michael McGrady [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, 4 February 2004 5:35 PM
>To: Struts Users Mailing List
>Subject: Re: Logic Iterate - Cannot Create iterator for this collection
>
>
>I have not looked at this closely, but I notice there is no write in the
>nested iterator.  Can you say what happens with this when you run it?
>
>At 01:06 AM 2/4/2004, you wrote:
> >Hi All,
> >
> >I have a List collection (paymntTrnsctns) which contains an adminReceipts
> >objects. One of the properties of adminReceipts is a list.  So I display
> >the normal string properties of the object, such as receiptNumber and
> >transactionDate, but can't then get the list adminPaymentDetails within
> >the adminReceipts object.
> >
> >I am trying to execute the following code:
> >
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >  > bgcolor="">
> >   
> >  > property="receiptNumber"/>
> >   
> >   
> >  > property="transactionDate"/>
> >   
> > 
> >   
> > 
> > 
> >   
> >
> >
> >Can anyone please tell me what I'm doing wrong.
> >
> >Thanks,
> >
> >Jackie.
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



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


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



RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
What happens?

At 01:36 AM 2/4/2004, you wrote:
I did put a bean:write in there and it still doesn't work.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:35 PM
To: Struts Users Mailing List
Subject: Re: Logic Iterate - Cannot Create iterator for this collection
I have not looked at this closely, but I notice there is no write in the
nested iterator.  Can you say what happens with this when you run it?
At 01:06 AM 2/4/2004, you wrote:
>Hi All,
>
>I have a List collection (paymntTrnsctns) which contains an adminReceipts
>objects. One of the properties of adminReceipts is a list.  So I display
>the normal string properties of the object, such as receiptNumber and
>transactionDate, but can't then get the list adminPaymentDetails within
>the adminReceipts object.
>
>I am trying to execute the following code:
>
>   
> 
>   
> 
>   
> 
>   
>   
> 
>   
> 
>  bgcolor="">
>   
>  property="receiptNumber"/>
>   
>   
>  property="transactionDate"/>
>   
> 
>   
> 
> 
>   
>
>
>Can anyone please tell me what I'm doing wrong.
>
>Thanks,
>
>Jackie.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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


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


RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
What happens?

At 01:36 AM 2/4/2004, you wrote:
I did put a bean:write in there and it still doesn't work.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:35 PM
To: Struts Users Mailing List
Subject: Re: Logic Iterate - Cannot Create iterator for this collection
I have not looked at this closely, but I notice there is no write in the
nested iterator.  Can you say what happens with this when you run it?
At 01:06 AM 2/4/2004, you wrote:
>Hi All,
>
>I have a List collection (paymntTrnsctns) which contains an adminReceipts
>objects. One of the properties of adminReceipts is a list.  So I display
>the normal string properties of the object, such as receiptNumber and
>transactionDate, but can't then get the list adminPaymentDetails within
>the adminReceipts object.
>
>I am trying to execute the following code:
>
>   
> 
>   
> 
>   
> 
>   
>   
> 
>   
> 
>  bgcolor="">
>   
>  property="receiptNumber"/>
>   
>   
>  property="transactionDate"/>
>   
> 
>   
> 
> 
>   
>
>
>Can anyone please tell me what I'm doing wrong.
>
>Thanks,
>
>Jackie.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


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


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


RE: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes
I did put a bean:write in there and it still doesn't work.

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 February 2004 5:35 PM
To: Struts Users Mailing List
Subject: Re: Logic Iterate - Cannot Create iterator for this collection


I have not looked at this closely, but I notice there is no write in the 
nested iterator.  Can you say what happens with this when you run it?

At 01:06 AM 2/4/2004, you wrote:
>Hi All,
>
>I have a List collection (paymntTrnsctns) which contains an adminReceipts 
>objects. One of the properties of adminReceipts is a list.  So I display 
>the normal string properties of the object, such as receiptNumber and 
>transactionDate, but can't then get the list adminPaymentDetails within 
>the adminReceipts object.
>
>I am trying to execute the following code:
>
>   
> 
>   
> 
>   
> 
>   
>   
> 
>   
> 
>  bgcolor="">
>   
>  property="receiptNumber"/>
>   
>   
>  property="transactionDate"/>
>   
> 
>   
> 
> 
>   
>
>
>Can anyone please tell me what I'm doing wrong.
>
>Thanks,
>
>Jackie.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



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


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



Re: Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Michael McGrady
I have not looked at this closely, but I notice there is no write in the 
nested iterator.  Can you say what happens with this when you run it?

At 01:06 AM 2/4/2004, you wrote:
Hi All,

I have a List collection (paymntTrnsctns) which contains an adminReceipts 
objects. One of the properties of adminReceipts is a list.  So I display 
the normal string properties of the object, such as receiptNumber and 
transactionDate, but can't then get the list adminPaymentDetails within 
the adminReceipts object.

I am trying to execute the following code:

  

  

  

  
  

  

">
  

  
  

  

  


  


Can anyone please tell me what I'm doing wrong.

Thanks,

Jackie.

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


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


Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes

> I have a List collection (paymntTrnsctns) which contains an adminReceipts objects. 
> One of the properties of adminReceipts is a list.  So I display the normal string 
> properties of the object, such as receiptNumber and transactionDate, but can't then 
> get the list adminPaymentDetails within the adminReceipts object.
> 
> I am trying to execute the following code:
> 
>   
>   
>   
>   
> 
>   
>  
> 
>   
> 
>   
>   ">
> 
>   
> 
> 
>
> 
>  
> 
> 
>   
>   
> 
> 
> Can anyone please tell me what I'm doing wrong.
> 
> Thanks,
> 
> Jackie.

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



Logic Iterate - Cannot Create iterator for this collection

2004-02-04 Thread Jacqueline Gomes
Hi All,

I have a List collection (paymntTrnsctns) which contains an adminReceipts objects. One 
of the properties of adminReceipts is a list.  So I display the normal string 
properties of the object, such as receiptNumber and transactionDate, but can't then 
get the list adminPaymentDetails within the adminReceipts object.

I am trying to execute the following code:

  
  
  

  

   
  

  

">
  

  
  
 
  
   
  
  

  


Can anyone please tell me what I'm doing wrong.

Thanks,

Jackie.

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



RE: problem in javascript for select enabled/disabled by checkbox in a list with in logic iterate

2003-12-11 Thread Udaya Allu
HI Firat,
I am using it for for the whole select.

It is working fine out side logic iterate in normal html select when I tried as follws.
But in logic iterate I could not provide reference of name for select
like sampleSelect in indexed way like sampleSelectArray[index].sampleSelect 
dynamically.
Thank you for understanding.
-Udaya Allu



Select Card
Visa -5678 10/2005
Amex -6854 12/2005
Amex -4211 10/2005
Visa -5678 10/2004
 


 

-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 10:25 AM
To: Struts Users Mailing List
Subject: Re: problem in javascript for select enabled/disabled by
checkbox in a list with in logic iterate 


Well, sorry but you can't use the disabled property for one of a select
element's options, you can use it for the whole select.

F.

- Original Message - 
From: "Udaya Allu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 5:17 PM
Subject: problem in javascript for select enabled/disabled by checkbox in a
list with in logic iterate


Hi All,
Please help me on
select enabled/disabled by checkbox in a list with in logic iterate
I am not able to pass the index for disableing select box basing on check
box enale/disable
please look at  the code part
onclick="this.form.subscriptions['<%=index
%>'].selectedWalletItemId.disabled=this.checked?false:true;"
in the following code.
I tried it different ways ...but no success.
Other wise also if  I want to use simple onclick=" sumbit()", to do
something action class and refresh,
I do not know how to pass the index or other parameters through
Any amount of help is really appreciated as this is code in production.
Thank you
-Udaya Allu



Select Credit Card


">

   - 
/






 


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



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


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



Re: problem in javascript for select enabled/disabled by checkbox in a list with in logic iterate

2003-12-11 Thread Firat TIRYAKI
Well, sorry but you can't use the disabled property for one of a select
element's options, you can use it for the whole select.

F.

- Original Message - 
From: "Udaya Allu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 5:17 PM
Subject: problem in javascript for select enabled/disabled by checkbox in a
list with in logic iterate


Hi All,
Please help me on
select enabled/disabled by checkbox in a list with in logic iterate
I am not able to pass the index for disableing select box basing on check
box enale/disable
please look at  the code part
onclick="this.form.subscriptions['<%=index
%>'].selectedWalletItemId.disabled=this.checked?false:true;"
in the following code.
I tried it different ways ...but no success.
Other wise also if  I want to use simple onclick=" sumbit()", to do
something action class and refresh,
I do not know how to pass the index or other parameters through
Any amount of help is really appreciated as this is code in production.
Thank you
-Udaya Allu



Select Credit Card


">

   - 
/






 


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



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



problem in javascript for select enabled/disabled by checkbox in a list with in logic iterate

2003-12-11 Thread Udaya Allu
Hi All,
Please help me on 
select enabled/disabled by checkbox in a list with in logic iterate
I am not able to pass the index for disableing select box basing on check box 
enale/disable
please look at  the code part  onclick="this.form.subscriptions['<%=index 
%>'].selectedWalletItemId.disabled=this.checked?false:true;"
in the following code.
I tried it different ways ...but no success.
Other wise also if  I want to use simple onclick=" sumbit()", to do something action 
class and refresh,
I do not know how to pass the index or other parameters through 
Any amount of help is really appreciated as this is code in production.
Thank you
-Udaya Allu



Select Credit 
Card


">

   - 
/






 


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



RE: logic iterate

2003-12-01 Thread Naveen S. Kumar
i mean when i am displaying the value from collection using logic iterate i display 
values in  with 4  for the 5th value i have to go for next  with 4  
value to be displayed.as i showed in last mail
thanks
naveen.

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 12:38 PM
To: Struts Users Mailing List
Subject: RE: logic iterate


Are you trying to do this to save space:

value1 value2 value3
value4 value5 value6
value7 value8 value9

Or this to show 3 properties of any one bean at a time:

bean1.value1 bean1.value2 bean1.value3
bean2.value1 bean2.value2 bean2.value3
bean3.value1 bean3.value2 bean3.value3

Regards,
David

-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:02 AM
To: Struts Users Mailing List
Subject: RE: logic iterate


No, in the same page i have to display

 value1 value2  value3 

for the next 3 values i should display in next row.using logic iterate and
only with struts not with jstl.
thanks
naveen.

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 12:24 PM
To: Struts Users Mailing List
Subject: RE: logic iterate


Are you talking about pagination?  Show 3 on a page and then skip to the
next page?  Sounds like you want the displaytag taglib.  This examples does
10 items per page: http://www.displaytag.org/example-paging.jsp

Regards,
David

-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:43 AM
To: Struts Users Mailing List
Subject: logic iterate


hi,
how do i break the row according the number of data displayed, i.e i have 3
values in a row after 3 rows i have to go next row for display how can i do
using only struts without scriptlets. any example or link would be great
help for me
thanks
naveen.

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


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


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


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


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



RE: logic iterate

2003-12-01 Thread David Friedman
Are you trying to do this to save space:

value1 value2 value3
value4 value5 value6
value7 value8 value9

Or this to show 3 properties of any one bean at a time:

bean1.value1 bean1.value2 bean1.value3
bean2.value1 bean2.value2 bean2.value3
bean3.value1 bean3.value2 bean3.value3

Regards,
David

-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:02 AM
To: Struts Users Mailing List
Subject: RE: logic iterate


No, in the same page i have to display

 value1 value2  value3 

for the next 3 values i should display in next row.using logic iterate and
only with struts not with jstl.
thanks
naveen.

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 12:24 PM
To: Struts Users Mailing List
Subject: RE: logic iterate


Are you talking about pagination?  Show 3 on a page and then skip to the
next page?  Sounds like you want the displaytag taglib.  This examples does
10 items per page: http://www.displaytag.org/example-paging.jsp

Regards,
David

-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:43 AM
To: Struts Users Mailing List
Subject: logic iterate


hi,
how do i break the row according the number of data displayed, i.e i have 3
values in a row after 3 rows i have to go next row for display how can i do
using only struts without scriptlets. any example or link would be great
help for me
thanks
naveen.

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


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


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


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



RE: logic iterate

2003-12-01 Thread Naveen S. Kumar
No, in the same page i have to display 

 value1 value2  value3 

for the next 3 values i should display in next row.using logic iterate and only with 
struts not with jstl.
thanks
naveen.

-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 12:24 PM
To: Struts Users Mailing List
Subject: RE: logic iterate


Are you talking about pagination?  Show 3 on a page and then skip to the
next page?  Sounds like you want the displaytag taglib.  This examples does
10 items per page: http://www.displaytag.org/example-paging.jsp

Regards,
David

-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:43 AM
To: Struts Users Mailing List
Subject: logic iterate


hi,
how do i break the row according the number of data displayed, i.e i have 3
values in a row after 3 rows i have to go next row for display how can i do
using only struts without scriptlets. any example or link would be great
help for me
thanks
naveen.

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


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


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



RE: logic iterate

2003-11-30 Thread David Friedman
Are you talking about pagination?  Show 3 on a page and then skip to the
next page?  Sounds like you want the displaytag taglib.  This examples does
10 items per page: http://www.displaytag.org/example-paging.jsp

Regards,
David

-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:43 AM
To: Struts Users Mailing List
Subject: logic iterate


hi,
how do i break the row according the number of data displayed, i.e i have 3
values in a row after 3 rows i have to go next row for display how can i do
using only struts without scriptlets. any example or link would be great
help for me
thanks
naveen.

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


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



logic iterate

2003-11-30 Thread Naveen S. Kumar
hi,
how do i break the row according the number of data displayed, i.e i have 3 
values in a row after 3 rows i have to go next row for display how can i do using only 
struts without scriptlets. any example or link would be great help for me
thanks
naveen.

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



Re: Logic Iterate problem:

2003-11-24 Thread Jeff Kyser
Look at the  tag. Nice

	http://jakarta.apache.org/struts/userGuide/struts-nested.html

-jeff

On Monday, November 24, 2003, at 09:44  AM, Raman wrote:

Logic Iterate problem:

Can we have nested logic iterates?

e.g. if I want to show list of products under all Categories. how can 
i implement that?

I am having problem in setting the values of  attributes for inner 
logic iterate loop




   


I have a bean "catergory" class which has "productlist[]" and 
"catergoryname" as its properties

Thanks in advance
Raman Garg


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


Logic Iterate problem:

2003-11-24 Thread Raman
Logic Iterate problem:

Can we have nested logic iterates?

e.g. if I want to show list of products under all Categories. how can i implement that?

I am having problem in setting the values of  attributes for inner logic iterate loop




   



I have a bean "catergory" class which has "productlist[]" and "catergoryname" as its 
properties

Thanks in advance
Raman Garg

Re: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Mark Lowe
I'm not sure how you've got things arranged but sounds like you could 
do with having you team objects having a getMembers() method. If you 
don't have this in you model then I guess its going to smart somewhat.

List teamList = someModelStuff.getTeams();

request.setAttribute("teams", teamList.toArray());

...


Team: bean:write name="team" property="name" />


or in jstl


Team: 


Cheers Mark



On 22 Nov 2003, at 09:44, Shakti wrote:

As i told u earlier ..
In MyTeamRowBean i have
TeamNameFirstName MiddleName LastName
In MyTeamFormBean i have an arraylist which contains MyTeamRowBean

Now in the jsp i have to show them according to a group that is
Team Name 1
 Firstname1 1  Midinitial1 1  Lastname 1 1
 Firstname1 2  Midinitial1 2  Lastname 1 2
  Firstname1 3  Midinitial1 3  Lastname 1 3
Team Name 2
 Firstname2 1  Midinitial2 1  Lastname 2 1
 Firstname2 2  Midinitial2 2  Lastname 2 2
 Firstname2 3  Midinitial2 3  Lastname 2 3
Team Name 3
Firstname3 1  Midinitial3 1  Lastname 3 1
Firstname3 2  Midinitial3 2  Lastname 3 2
Firstname3 3  Midinitial3 3  Lastname 3 3
1)Wht i am not getting is the exact struts logic tags so that my output
comes as shown above ???
2)How do i keep a flag in my jsp so that .. if there is a repetetion 
of the
team name then it should not get printed ( i am sorting the team 
members in
my action class so once one Team name is gone it won't come back .. 
uff ..
( half of problem was solved there ... ) .. now i need help on the 
rest of
the half ... )

Thanks & Regards,
shakti.
P.S I don't know much of jsp or struts.. so if possible plz giv me the 
exact
code .. :-) .. I know . i am asking t much .. ;-)



- Original Message -
From: "Joe Hertz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, November 22, 2003 3:09 PM
Subject: RE: Still no reply for :Problem in grouping using logic 
iterate &
logic equal


Your doing a bean:write of the team name inside of your iterate, so
yeah, the team name is going to show up on every iteration.
What approaches have you tried already? Which is the part your not
getting?

-Original Message-
From: Shakti [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 22, 2003 4:11 AM
To: Struts Users Mailing List
Subject: Still no reply for :Problem in grouping using logic
iterate & logic equal


Hi,
  "MyTeamFormBean "contains an arraylist "allTeams" having
MyTeamRowBean with attributes :
  String teamName, first, middle & last
  property="allTeams">

 property="teamName" />
  


  
    property="Lastname"/>

 

  Which produces something like this 

 Team Name 1
Firstname1 1  Midinitial1 1  Lastname 1 1
  Team Name 1
Firstname1 2  Midinitial1 2  Lastname 1 2
  Team Name 1
Firstname1 3  Midinitial1 3  Lastname 1 3
  Team Name 2
Firstname2 1  Midinitial2 1  Lastname 2 1
  Team Name 2
Firstname2 2  Midinitial2 2  Lastname 2 2
  Team Name 2
Firstname2 3  Midinitial2 3  Lastname 2 3
  Team Name 3
Firstname3 1  Midinitial3 1  Lastname 3 1
  Team Name 3
Firstname3 2  Midinitial3 2  Lastname 3 2
  Team Name 3
Firstname3 3  Midinitial3 3  Lastname 3 3
  Team Name 4
Firstname4 1  Midinitial4 1  Lastname 4 1
  Team Name 4
Firstname4 2  Midinitial4 2  Lastname 4 2
  Team Name 4
Firstname4 3  Midinitial4 3  Lastname 4 3
  Team Name 5
Firstname5 1  Midinitial5 1  Lastname 5 1
  Team Name 5
Firstname5 2  Midinitial5 2  Lastname 5 2
  Team Name 5
Firstname5 3  Midinitial5 3  Lastname 5 3
  but i want something like this. ..

  Team Name 1
Firstname1 1  Midinitial1 1  Lastname 1 1
Firstname1 2  Midinitial1 2  Lastname 1 2
Firstname1 3  Midinitial1 3  Lastname 1 3
  Team Name 2
Firstname2 1  Midinitial2 1  Lastname 2 1
Firstname2 2  Midinitial2 2  Lastname 2 2
Firstname2 3  Midinitial2 3  Lastname 2 3
  Team Name 3
Firstname3 1  Midinitial3 1  Lastname 3 1
Firstname3 2  Midinitial3 2  Lastname 3 2
Firstname3 3  Midinitial3 3  Lastname 3 3
  Team Name 4
Firstname4 1  Midinitial4 1  Lastname 4 1
Firstname4 2  Midinitial4 2  Lastname 4 2
Firstname4 3  Midinitial4 3  Lastname 4 3
  Team Name 5
Firstname5 1  Midinitial5 1  Lastname 5 1
Firstname5 2  Midinitial5 2  Lastname 5 2
Firstname5 3  Midinitial5 3  Lastname 5 3


can anyone plz help me out in this ...

Thanks in advance ..
Shakti..

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

Re: :Problem in grouping using logic iterate & logic equal: Somewht solved

2003-11-22 Thread Shakti
Hi,
it was really a gr8 reference for my problem ... but i am not sure whether
my Team will allow new libs to be added to the current version ...
still i will try n find out some other ( CRUDE SOLUTION .. ) for this
grouping. . but in new projects i think  we will consider these libraries as
they will be really useful in reducing the presentation probs that we face
.. :-) ..
Thanks David 
:-) ..
bye
Shakti

- Original Message -
From: "David Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday, November 22, 2003 3:21 PM
Subject: RE: Still no reply for :Problem in grouping using logic iterate &
logic equal


> This sounds like a job for ...  the DisplayTag Taglib.
> See this example page:
>
> http://www.displaytag.org/example-grouping.jsp
>
> Your formbean looks pretty simple:
> (Should I ask why your properties start with a capital letter?)
> myteam.teamName
> myteam.Firstname
> myteam.Midinitial
> myteam.Lastname
>
> If so it's practically build for the displaytag library, might
> even work a bit like this:
>
> 
> 
> 
> 
> 
> 
>
> If you use the displaytag library, follow their directions
> about the handful of apache commons .jar files that need
> to be updated!!
>
> Regards,
> David
>
> -Original Message-
> From: Joe Hertz [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 22, 2003 4:39 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Still no reply for :Problem in grouping using logic iterate
> & logic equal
>
>
> Your doing a bean:write of the team name inside of your iterate, so
> yeah, the team name is going to show up on every iteration.
>
> What approaches have you tried already? Which is the part your not
> getting?
>
>
> > -Original Message-
> > From: Shakti [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, November 22, 2003 4:11 AM
> > To: Struts Users Mailing List
> > Subject: Still no reply for :Problem in grouping using logic
> > iterate & logic equal
> >
> >
> >
> > > Hi,
> > >   "MyTeamFormBean "contains an arraylist "allTeams" having
> > > MyTeamRowBean with attributes :
> > >   String teamName, first, middle & last
> > >
> > >> property="allTeams">
> > > 
> > >   > property="teamName" />
> > >   
> > > 
> > > 
> > >   
> > >    > > property="Firstname"/>  > > property="Midinitial"/>  > property="Lastname"/>
> > > 
> > >  
> > > 
> > >
> > >   Which produces something like this 
> > >
> > >  Team Name 1
> > > Firstname1 1  Midinitial1 1  Lastname 1 1
> > >   Team Name 1
> > > Firstname1 2  Midinitial1 2  Lastname 1 2
> > >   Team Name 1
> > > Firstname1 3  Midinitial1 3  Lastname 1 3
> > >   Team Name 2
> > > Firstname2 1  Midinitial2 1  Lastname 2 1
> > >   Team Name 2
> > > Firstname2 2  Midinitial2 2  Lastname 2 2
> > >   Team Name 2
> > > Firstname2 3  Midinitial2 3  Lastname 2 3
> > >   Team Name 3
> > > Firstname3 1  Midinitial3 1  Lastname 3 1
> > >   Team Name 3
> > > Firstname3 2  Midinitial3 2  Lastname 3 2
> > >   Team Name 3
> > > Firstname3 3  Midinitial3 3  Lastname 3 3
> > >   Team Name 4
> > > Firstname4 1  Midinitial4 1  Lastname 4 1
> > >   Team Name 4
> > > Firstname4 2  Midinitial4 2  Lastname 4 2
> > >   Team Name 4
> > > Firstname4 3  Midinitial4 3  Lastname 4 3
> > >   Team Name 5
> > > Firstname5 1  Midinitial5 1  Lastname 5 1
> > >   Team Name 5
> > > Firstname5 2  Midinitial5 2  Lastname 5 2
> > >   Team Name 5
> > > Firstname5 3  Midinitial5 3  Lastname 5 3
> > >
> > >
> > >   but i want something like this. ..
> > >
> > >
> > >   Team Name 1
> > > Firstname1 1  Midinitial1 1  Lastname 1 1
> > > Firstname1 2  Midinitial1 2  Lastname 1 2
> > > Firstname1 3  Midinitial1 3  Lastname 1 3
> > >   Team Name 2
> > > Firstname2 1  Midinitial2 1  Lastname 2 1
> > > Firstname2 2  Midinitial2 2  Lastname 2 2
> > > Firstname2 3  Midinitial2 3  Lastname 2 3
> > >   Team Name 3
> > > Fi

RE: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread David Friedman
This sounds like a job for ...  the DisplayTag Taglib.
See this example page:

http://www.displaytag.org/example-grouping.jsp

Your formbean looks pretty simple:
(Should I ask why your properties start with a capital letter?)
myteam.teamName
myteam.Firstname
myteam.Midinitial
myteam.Lastname

If so it's practically build for the displaytag library, might
even work a bit like this:








If you use the displaytag library, follow their directions
about the handful of apache commons .jar files that need
to be updated!!

Regards,
David

-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 22, 2003 4:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Still no reply for :Problem in grouping using logic iterate
& logic equal


Your doing a bean:write of the team name inside of your iterate, so
yeah, the team name is going to show up on every iteration. 

What approaches have you tried already? Which is the part your not
getting?


> -Original Message-
> From: Shakti [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, November 22, 2003 4:11 AM
> To: Struts Users Mailing List
> Subject: Still no reply for :Problem in grouping using logic 
> iterate & logic equal
> 
> 
> 
> > Hi,
> >   "MyTeamFormBean "contains an arraylist "allTeams" having 
> > MyTeamRowBean with attributes :
> >   String teamName, first, middle & last
> >
> >property="allTeams">
> > 
> >   property="teamName" />
> >   
> > 
> > 
> >   
> >    > property="Firstname"/>  > property="Midinitial"/>  property="Lastname"/>
> > 
> >  
> > 
> >
> >   Which produces something like this 
> >
> >  Team Name 1
> > Firstname1 1  Midinitial1 1  Lastname 1 1
> >   Team Name 1
> > Firstname1 2  Midinitial1 2  Lastname 1 2
> >   Team Name 1
> > Firstname1 3  Midinitial1 3  Lastname 1 3
> >   Team Name 2
> > Firstname2 1  Midinitial2 1  Lastname 2 1
> >   Team Name 2
> > Firstname2 2  Midinitial2 2  Lastname 2 2
> >   Team Name 2
> > Firstname2 3  Midinitial2 3  Lastname 2 3
> >   Team Name 3
> > Firstname3 1  Midinitial3 1  Lastname 3 1
> >   Team Name 3
> > Firstname3 2  Midinitial3 2  Lastname 3 2
> >   Team Name 3
> > Firstname3 3  Midinitial3 3  Lastname 3 3
> >   Team Name 4
> > Firstname4 1  Midinitial4 1  Lastname 4 1
> >   Team Name 4
> > Firstname4 2  Midinitial4 2  Lastname 4 2
> >   Team Name 4
> > Firstname4 3  Midinitial4 3  Lastname 4 3
> >   Team Name 5
> > Firstname5 1  Midinitial5 1  Lastname 5 1
> >   Team Name 5
> > Firstname5 2  Midinitial5 2  Lastname 5 2
> >   Team Name 5
> > Firstname5 3  Midinitial5 3  Lastname 5 3
> >
> >
> >   but i want something like this. ..
> >
> >
> >   Team Name 1
> > Firstname1 1  Midinitial1 1  Lastname 1 1
> > Firstname1 2  Midinitial1 2  Lastname 1 2
> > Firstname1 3  Midinitial1 3  Lastname 1 3
> >   Team Name 2
> > Firstname2 1  Midinitial2 1  Lastname 2 1
> > Firstname2 2  Midinitial2 2  Lastname 2 2
> > Firstname2 3  Midinitial2 3  Lastname 2 3
> >   Team Name 3
> > Firstname3 1  Midinitial3 1  Lastname 3 1
> > Firstname3 2  Midinitial3 2  Lastname 3 2
> > Firstname3 3  Midinitial3 3  Lastname 3 3
> >   Team Name 4
> > Firstname4 1  Midinitial4 1  Lastname 4 1
> > Firstname4 2  Midinitial4 2  Lastname 4 2
> > Firstname4 3  Midinitial4 3  Lastname 4 3
> >   Team Name 5
> > Firstname5 1  Midinitial5 1  Lastname 5 1
> > Firstname5 2  Midinitial5 2  Lastname 5 2
> > Firstname5 3  Midinitial5 3  Lastname 5 3
> >
> >
> >
> > can anyone plz help me out in this ...
> >
> > Thanks in advance ..
> > Shakti..
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



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


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



Re: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Shakti
As i told u earlier ..
In MyTeamRowBean i have
TeamNameFirstName MiddleName LastName

In MyTeamFormBean i have an arraylist which contains MyTeamRowBean

Now in the jsp i have to show them according to a group that is
Team Name 1
 Firstname1 1  Midinitial1 1  Lastname 1 1
 Firstname1 2  Midinitial1 2  Lastname 1 2
  Firstname1 3  Midinitial1 3  Lastname 1 3
Team Name 2
 Firstname2 1  Midinitial2 1  Lastname 2 1
 Firstname2 2  Midinitial2 2  Lastname 2 2
 Firstname2 3  Midinitial2 3  Lastname 2 3
Team Name 3
Firstname3 1  Midinitial3 1  Lastname 3 1
Firstname3 2  Midinitial3 2  Lastname 3 2
Firstname3 3  Midinitial3 3  Lastname 3 3


1)Wht i am not getting is the exact struts logic tags so that my output
comes as shown above ???
2)How do i keep a flag in my jsp so that .. if there is a repetetion of the
team name then it should not get printed ( i am sorting the team members in
my action class so once one Team name is gone it won't come back .. uff ..
( half of problem was solved there ... ) .. now i need help on the rest of
the half ... )

Thanks & Regards,
shakti.
P.S I don't know much of jsp or struts.. so if possible plz giv me the exact
code .. :-) .. I know . i am asking t much .. ;-)




- Original Message -
From: "Joe Hertz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Saturday, November 22, 2003 3:09 PM
Subject: RE: Still no reply for :Problem in grouping using logic iterate &
logic equal


> Your doing a bean:write of the team name inside of your iterate, so
> yeah, the team name is going to show up on every iteration.
>
> What approaches have you tried already? Which is the part your not
> getting?
>
>
> > -Original Message-
> > From: Shakti [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, November 22, 2003 4:11 AM
> > To: Struts Users Mailing List
> > Subject: Still no reply for :Problem in grouping using logic
> > iterate & logic equal
> >
> >
> >
> > > Hi,
> > >   "MyTeamFormBean "contains an arraylist "allTeams" having
> > > MyTeamRowBean with attributes :
> > >   String teamName, first, middle & last
> > >
> > >> property="allTeams">
> > > 
> > >   > property="teamName" />
> > >   
> > > 
> > > 
> > >   
> > >    > > property="Firstname"/>  > > property="Midinitial"/>  > property="Lastname"/>
> > > 
> > >  
> > > 
> > >
> > >   Which produces something like this 
> > >
> > >  Team Name 1
> > > Firstname1 1  Midinitial1 1  Lastname 1 1
> > >   Team Name 1
> > > Firstname1 2  Midinitial1 2  Lastname 1 2
> > >   Team Name 1
> > > Firstname1 3  Midinitial1 3  Lastname 1 3
> > >   Team Name 2
> > > Firstname2 1  Midinitial2 1  Lastname 2 1
> > >   Team Name 2
> > > Firstname2 2  Midinitial2 2  Lastname 2 2
> > >   Team Name 2
> > > Firstname2 3  Midinitial2 3  Lastname 2 3
> > >   Team Name 3
> > > Firstname3 1  Midinitial3 1  Lastname 3 1
> > >   Team Name 3
> > > Firstname3 2  Midinitial3 2  Lastname 3 2
> > >   Team Name 3
> > > Firstname3 3  Midinitial3 3  Lastname 3 3
> > >   Team Name 4
> > > Firstname4 1  Midinitial4 1  Lastname 4 1
> > >   Team Name 4
> > > Firstname4 2  Midinitial4 2  Lastname 4 2
> > >   Team Name 4
> > > Firstname4 3  Midinitial4 3  Lastname 4 3
> > >   Team Name 5
> > > Firstname5 1  Midinitial5 1  Lastname 5 1
> > >   Team Name 5
> > > Firstname5 2  Midinitial5 2  Lastname 5 2
> > >   Team Name 5
> > > Firstname5 3  Midinitial5 3  Lastname 5 3
> > >
> > >
> > >   but i want something like this. ..
> > >
> > >
> > >   Team Name 1
> > > Firstname1 1  Midinitial1 1  Lastname 1 1
> > > Firstname1 2  Midinitial1 2  Lastname 1 2
> > > Firstname1 3  Midinitial1 3  Lastname 1 3
> > >   Team Name 2
> > > Firstname2 1  Midinitial2 1  Lastname 2 1
> > > Firstname2 2  Midinitial2 2  Lastname 2 2
> > > Firstname2 3  Midinitial2 3  Lastname 2 3
> > >   Team

RE: Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Joe Hertz
Your doing a bean:write of the team name inside of your iterate, so
yeah, the team name is going to show up on every iteration. 

What approaches have you tried already? Which is the part your not
getting?


> -Original Message-
> From: Shakti [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, November 22, 2003 4:11 AM
> To: Struts Users Mailing List
> Subject: Still no reply for :Problem in grouping using logic 
> iterate & logic equal
> 
> 
> 
> > Hi,
> >   "MyTeamFormBean "contains an arraylist "allTeams" having 
> > MyTeamRowBean with attributes :
> >   String teamName, first, middle & last
> >
> >property="allTeams">
> > 
> >   property="teamName" />
> >   
> > 
> > 
> >   
> >    > property="Firstname"/>  > property="Midinitial"/>  property="Lastname"/>
> > 
> >  
> > 
> >
> >   Which produces something like this 
> >
> >  Team Name 1
> > Firstname1 1  Midinitial1 1  Lastname 1 1
> >   Team Name 1
> > Firstname1 2  Midinitial1 2  Lastname 1 2
> >   Team Name 1
> > Firstname1 3  Midinitial1 3  Lastname 1 3
> >   Team Name 2
> > Firstname2 1  Midinitial2 1  Lastname 2 1
> >   Team Name 2
> > Firstname2 2  Midinitial2 2  Lastname 2 2
> >   Team Name 2
> > Firstname2 3  Midinitial2 3  Lastname 2 3
> >   Team Name 3
> > Firstname3 1  Midinitial3 1  Lastname 3 1
> >   Team Name 3
> > Firstname3 2  Midinitial3 2  Lastname 3 2
> >   Team Name 3
> > Firstname3 3  Midinitial3 3  Lastname 3 3
> >   Team Name 4
> > Firstname4 1  Midinitial4 1  Lastname 4 1
> >   Team Name 4
> > Firstname4 2  Midinitial4 2  Lastname 4 2
> >   Team Name 4
> > Firstname4 3  Midinitial4 3  Lastname 4 3
> >   Team Name 5
> > Firstname5 1  Midinitial5 1  Lastname 5 1
> >   Team Name 5
> > Firstname5 2  Midinitial5 2  Lastname 5 2
> >   Team Name 5
> > Firstname5 3  Midinitial5 3  Lastname 5 3
> >
> >
> >   but i want something like this. ..
> >
> >
> >   Team Name 1
> > Firstname1 1  Midinitial1 1  Lastname 1 1
> > Firstname1 2  Midinitial1 2  Lastname 1 2
> > Firstname1 3  Midinitial1 3  Lastname 1 3
> >   Team Name 2
> > Firstname2 1  Midinitial2 1  Lastname 2 1
> > Firstname2 2  Midinitial2 2  Lastname 2 2
> > Firstname2 3  Midinitial2 3  Lastname 2 3
> >   Team Name 3
> > Firstname3 1  Midinitial3 1  Lastname 3 1
> > Firstname3 2  Midinitial3 2  Lastname 3 2
> > Firstname3 3  Midinitial3 3  Lastname 3 3
> >   Team Name 4
> > Firstname4 1  Midinitial4 1  Lastname 4 1
> > Firstname4 2  Midinitial4 2  Lastname 4 2
> > Firstname4 3  Midinitial4 3  Lastname 4 3
> >   Team Name 5
> > Firstname5 1  Midinitial5 1  Lastname 5 1
> > Firstname5 2  Midinitial5 2  Lastname 5 2
> > Firstname5 3  Midinitial5 3  Lastname 5 3
> >
> >
> >
> > can anyone plz help me out in this ...
> >
> > Thanks in advance ..
> > Shakti..
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



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



Still no reply for :Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Shakti

> Hi,
>   "MyTeamFormBean "contains an arraylist "allTeams" having MyTeamRowBean
> with attributes :
>   String teamName, first, middle & last
>
>   
> 
>  
>   
> 
> 
>   
>    property="Firstname"/>  property="Midinitial"/> 
> 
>  
> 
>
>   Which produces something like this 
>
>  Team Name 1
> Firstname1 1  Midinitial1 1  Lastname 1 1
>   Team Name 1
> Firstname1 2  Midinitial1 2  Lastname 1 2
>   Team Name 1
> Firstname1 3  Midinitial1 3  Lastname 1 3
>   Team Name 2
> Firstname2 1  Midinitial2 1  Lastname 2 1
>   Team Name 2
> Firstname2 2  Midinitial2 2  Lastname 2 2
>   Team Name 2
> Firstname2 3  Midinitial2 3  Lastname 2 3
>   Team Name 3
> Firstname3 1  Midinitial3 1  Lastname 3 1
>   Team Name 3
> Firstname3 2  Midinitial3 2  Lastname 3 2
>   Team Name 3
> Firstname3 3  Midinitial3 3  Lastname 3 3
>   Team Name 4
> Firstname4 1  Midinitial4 1  Lastname 4 1
>   Team Name 4
> Firstname4 2  Midinitial4 2  Lastname 4 2
>   Team Name 4
> Firstname4 3  Midinitial4 3  Lastname 4 3
>   Team Name 5
> Firstname5 1  Midinitial5 1  Lastname 5 1
>   Team Name 5
> Firstname5 2  Midinitial5 2  Lastname 5 2
>   Team Name 5
> Firstname5 3  Midinitial5 3  Lastname 5 3
>
>
>   but i want something like this. ..
>
>
>   Team Name 1
> Firstname1 1  Midinitial1 1  Lastname 1 1
> Firstname1 2  Midinitial1 2  Lastname 1 2
> Firstname1 3  Midinitial1 3  Lastname 1 3
>   Team Name 2
> Firstname2 1  Midinitial2 1  Lastname 2 1
> Firstname2 2  Midinitial2 2  Lastname 2 2
> Firstname2 3  Midinitial2 3  Lastname 2 3
>   Team Name 3
> Firstname3 1  Midinitial3 1  Lastname 3 1
> Firstname3 2  Midinitial3 2  Lastname 3 2
> Firstname3 3  Midinitial3 3  Lastname 3 3
>   Team Name 4
> Firstname4 1  Midinitial4 1  Lastname 4 1
> Firstname4 2  Midinitial4 2  Lastname 4 2
> Firstname4 3  Midinitial4 3  Lastname 4 3
>   Team Name 5
> Firstname5 1  Midinitial5 1  Lastname 5 1
> Firstname5 2  Midinitial5 2  Lastname 5 2
> Firstname5 3  Midinitial5 3  Lastname 5 3
>
>
>
> can anyone plz help me out in this ...
>
> Thanks in advance ..
> Shakti..
>
>

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



Problem in grouping using logic iterate & logic equal

2003-11-22 Thread Shakti
Hi,
  "MyTeamFormBean "contains an arraylist "allTeams" having MyTeamRowBean
with attributes :
  String teamName, first, middle & last

  

 
  


  
    

 


  Which produces something like this 

 Team Name 1
Firstname1 1  Midinitial1 1  Lastname 1 1
  Team Name 1
Firstname1 2  Midinitial1 2  Lastname 1 2
  Team Name 1
Firstname1 3  Midinitial1 3  Lastname 1 3
  Team Name 2
Firstname2 1  Midinitial2 1  Lastname 2 1
  Team Name 2
Firstname2 2  Midinitial2 2  Lastname 2 2
  Team Name 2
Firstname2 3  Midinitial2 3  Lastname 2 3
  Team Name 3
Firstname3 1  Midinitial3 1  Lastname 3 1
  Team Name 3
Firstname3 2  Midinitial3 2  Lastname 3 2
  Team Name 3
Firstname3 3  Midinitial3 3  Lastname 3 3
  Team Name 4
Firstname4 1  Midinitial4 1  Lastname 4 1
  Team Name 4
Firstname4 2  Midinitial4 2  Lastname 4 2
  Team Name 4
Firstname4 3  Midinitial4 3  Lastname 4 3
  Team Name 5
Firstname5 1  Midinitial5 1  Lastname 5 1
  Team Name 5
Firstname5 2  Midinitial5 2  Lastname 5 2
  Team Name 5
Firstname5 3  Midinitial5 3  Lastname 5 3


  but i want something like this. ..


  Team Name 1
Firstname1 1  Midinitial1 1  Lastname 1 1
Firstname1 2  Midinitial1 2  Lastname 1 2
Firstname1 3  Midinitial1 3  Lastname 1 3
  Team Name 2
Firstname2 1  Midinitial2 1  Lastname 2 1
Firstname2 2  Midinitial2 2  Lastname 2 2
Firstname2 3  Midinitial2 3  Lastname 2 3
  Team Name 3
Firstname3 1  Midinitial3 1  Lastname 3 1
Firstname3 2  Midinitial3 2  Lastname 3 2
Firstname3 3  Midinitial3 3  Lastname 3 3
  Team Name 4
Firstname4 1  Midinitial4 1  Lastname 4 1
Firstname4 2  Midinitial4 2  Lastname 4 2
Firstname4 3  Midinitial4 3  Lastname 4 3
  Team Name 5
Firstname5 1  Midinitial5 1  Lastname 5 1
Firstname5 2  Midinitial5 2  Lastname 5 2
Firstname5 3  Midinitial5 3  Lastname 5 3



can anyone plz help me out in this ...

Thanks in advance ..
Shakti..


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



logic iterate + radio

2003-10-30 Thread ajay brar
hi!
i have a code segment that displays a form. part of the form consists of a 
selection from a bunch of plans that can be selected through a radio button 
tag
here's how it goes

..








what that is supposed to do is 'serviceTypes' contains a list of service 
plans. the plans are of type ServiceType an empty bean of which is stored in 
the session under serviceType
the form bean is ServiceAccountForm and has a field called serviceTypeId.
the user is basically supposed to select a plan through the radio button and 
the code for the plan should become the serviceTypeId.

i am however getting an error when i run this saying it cant find a getter 
for 'code'
however i have getCode in ServiceType

please help
thanks
ajay
_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp

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


Re: Logic Iterate --URGENT Please

2003-10-22 Thread Lukas Bradley

bgcolor="red" <% }
%> >
   . other stuff in row
   


Maybe not as pretty as you want

Lukas

"Srikanth Gubba" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I have a doubt using logic iterate:
>
> Is it possible to display a row in a different color based on a value of
the
> bean while iterating it?
>
> Actually, I am displaying the tax history of a person and I want to
> highlight the row or a field (tax owed) to red color if the tax paid
column
> shows delinquent.
>
> Please let me know if u have any suggestions or ideas.
>
> Thanks in Advance,
> Srikanth Gubba.




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



RE: Logic Iterate --URGENT Please

2003-10-22 Thread Greg Dunn


  ...
  

  
  

  
  ...


You could also do it with JSTL:


  ...
  
  
  ...




Greg

-Original Message-
From: Srikanth Gubba [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 2:24 PM
To: '[EMAIL PROTECTED]'
Subject: Logic Iterate --URGENT Please


Hi all,

I have a doubt using logic iterate:

Is it possible to display a row in a different color based on a value of the
bean while iterating it?

Actually, I am displaying the tax history of a person and I want to
highlight the row or a field (tax owed) to red color if the tax paid column
shows delinquent.

Please let me know if u have any suggestions or ideas.

Thanks in Advance,
Srikanth Gubba.

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



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



RE: Logic Iterate

2003-10-22 Thread Satyabrata Dash
Here is sample code snippet.




Display Red color


Display green color




-Original Message-
From: Srikanth Gubba [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: Logic Iterate --URGENT Please


Hi all,

I have a doubt using logic iterate:

Is it possible to display a row in a different color based on a value of the
bean while iterating it?

Actually, I am displaying the tax history of a person and I want to
highlight the row or a field (tax owed) to red color if the tax paid column
shows delinquent. 

Please let me know if u have any suggestions or ideas. 

Thanks in Advance,
Srikanth Gubba.

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


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



Logic Iterate --URGENT Please

2003-10-22 Thread Srikanth Gubba
Hi all,

I have a doubt using logic iterate:

Is it possible to display a row in a different color based on a value of the
bean while iterating it?

Actually, I am displaying the tax history of a person and I want to
highlight the row or a field (tax owed) to red color if the tax paid column
shows delinquent. 

Please let me know if u have any suggestions or ideas. 

Thanks in Advance,
Srikanth Gubba.

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



RE: Logic Iterate

2003-10-17 Thread Khalid Umar

Probably check if you are setting the collection properly in the
formbean.


-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2003 4:31 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate


My Form Bean is configured properly and It does contain values.
The only thing that I am not understanding is , why is struts looking
for
the bean with name as "managers".
I get this error , Cannot find bean managers in any scope.

Thanks,
Vikram

-Original Message-
From: Khalid Umar [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:15 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate



If it is collection of Strings only then you can write the collection on
page using
 itself. 
There is No need to provide "property" attribute. property attribute is
required if you have collection of objects.

Check the name of Formbean name="NewCategoryConfirm". 
Should be from struts-config.xml file.





-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2003 4:07 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate

may be ur collection may be empty or null
check ur collection object whether its contains anything??

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate


No, It does not work.
It says ,  Cannot find bean managers in any scope.

Thanks anywayz.


-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate






try this

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To: Struts (E-mail)
Subject: Logic Iterate




Hi ,
Can anyone help me with this iterate Tag ?





the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.

Thanks,
Vikram 



This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.

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


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


This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.

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


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


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited
is 
'privileged' and 'confidential' and intended for use only by the
individual
 or entity to which it is addressed. You are notified that any use,
copying 
or dissemination of the information contained in the E-MAIL in any
manner 
whatsoever is strictly prohibited.


***

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


This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
dis

RE: Logic Iterate

2003-10-17 Thread Thakur, Vikram

My Form Bean is configured properly and It does contain values.
The only thing that I am not understanding is , why is struts looking for
the bean with name as "managers".
I get this error , Cannot find bean managers in any scope.

Thanks,
Vikram

-Original Message-
From: Khalid Umar [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:15 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate



If it is collection of Strings only then you can write the collection on
page using
 itself. 
There is No need to provide "property" attribute. property attribute is
required if you have collection of objects.

Check the name of Formbean name="NewCategoryConfirm". 
Should be from struts-config.xml file.





-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2003 4:07 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate

may be ur collection may be empty or null
check ur collection object whether its contains anything??

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate


No, It does not work.
It says ,  Cannot find bean managers in any scope.

Thanks anywayz.


-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate






try this

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To: Struts (E-mail)
Subject: Logic Iterate




Hi ,
Can anyone help me with this iterate Tag ?





the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.

Thanks,
Vikram 



This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.

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


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


This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.

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


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


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

-
To unsubs

Re: Logic Iterate

2003-10-17 Thread Mark Lowe
The id is the name of whatever you want to call each object thats being 
spat out during the iteration.

Have a play with this in a jsp page to get used to the tags. And then 
you can move the scriptlet out when your a bit more familiar with stuff.

<%
java.util.Map mapOne = new java.util.HashMap();
mapOne.put("fieldOne","valueOne" );
mapOne.put("fieldTwo","valueTwo" );
java.util.Map mapTwo = new java.util.HashMap();

mapTwo.put("fieldOne","valueOne" );
mapTwo.put("fieldTwo","valueTwo" );
java.util.ArrayList list = new java.util.ArrayList();

list.add(mapOne);
list.add(mapTwo);
request.setAttribute("mylist",list.toArray());

%>





or in jstl






Cheers Mark

On Friday, October 17, 2003, at 11:38 AM, Thakur, Vikram wrote:

No, It does not work.
It says ,  Cannot find bean managers in any scope.
Thanks anywayz.

-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate



try this

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To: Struts (E-mail)
Subject: Logic Iterate


Hi ,
Can anyone help me with this iterate Tag ?



the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.
Thanks,
Vikram

This message contains information that may be privileged or 
confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended 
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, 
disseminate,
distribute, or use this message or any part thereof. If you receive 
this
message in error, please notify the sender immediately and delete all 
copies
of this message.

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

This message contains information that may be privileged or 
confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended 
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, 
disseminate,
distribute, or use this message or any part thereof. If you receive 
this
message in error, please notify the sender immediately and delete all 
copies
of this message.

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


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


RE: Logic Iterate

2003-10-17 Thread Khalid Umar

If it is collection of Strings only then you can write the collection on
page using
 itself. 
There is No need to provide "property" attribute. property attribute is
required if you have collection of objects.

Check the name of Formbean name="NewCategoryConfirm". 
Should be from struts-config.xml file.





-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2003 4:07 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate

may be ur collection may be empty or null
check ur collection object whether its contains anything??

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate


No, It does not work.
It says ,  Cannot find bean managers in any scope.

Thanks anywayz.


-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate






try this

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To: Struts (E-mail)
Subject: Logic Iterate




Hi ,
Can anyone help me with this iterate Tag ?





the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.

Thanks,
Vikram 



This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.

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


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


This message contains information that may be privileged or confidential
and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies
of this message.

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


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


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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



RE: Logic Iterate

2003-10-17 Thread Ramesh Kannery
may be ur collection may be empty or null
check ur collection object whether its contains anything??

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 4:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate


No, It does not work.
It says ,  Cannot find bean managers in any scope.

Thanks anywayz.


-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate






try this

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To: Struts (E-mail)
Subject: Logic Iterate




Hi ,
Can anyone help me with this iterate Tag ?





the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.

Thanks,
Vikram 



This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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


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


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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


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



RE: Logic Iterate

2003-10-17 Thread Thakur, Vikram
No, It does not work.
It says ,  Cannot find bean managers in any scope.

Thanks anywayz.


-Original Message-
From: Ramesh Kannery [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:55 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate






try this

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To: Struts (E-mail)
Subject: Logic Iterate




Hi ,
Can anyone help me with this iterate Tag ?





the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.

Thanks,
Vikram 



This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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


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


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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



RE: Logic Iterate

2003-10-17 Thread Ramesh Kannery




try this

-Original Message-
From: Thakur, Vikram [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 3:57 PM
To: Struts (E-mail)
Subject: Logic Iterate




Hi ,
Can anyone help me with this iterate Tag ?





the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.

Thanks,
Vikram 



This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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


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



Logic Iterate

2003-10-17 Thread Thakur, Vikram


Hi ,
Can anyone help me with this iterate Tag ?





the categoryManagers property  returns a Collection os Strings I
want to print all the values in the collection on screen.
Is it possible usingor there any alternatives.

Thanks,
Vikram 



This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.

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



RE: Logic Iterate in Struts

2003-07-09 Thread Wendy Smoak
Mike wrote:
> I am looking int the jstl stuff, I honestly just haven't used it yet, 
> sounds like the thing to do its just hard to get managers to agree to 
> let you use "new" stuff :(

It's easier to beg forgiveness than to ask permission.  Anyway, how do you
evaluate new stuff if you have to get permission to use it, which would
entail knowing enough about it to make a case for it?

Goes along with all those poor souls stuck on Struts 1.0 because 1.1 didn't
officially have the word "Final" next to it.  Meanwhile my webapp went live
on July 1 with RC2 and I'll switch over to 1.1 Final next maintenance
period.

Struts-EL and JSTL make life much MUCH easier, give them a try!

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


RE: Logic Iterate in Struts

2003-07-09 Thread Mike Ash
I am looking int the jstl stuff, I honestly just haven't used it yet, sounds
like the thing to do its just hard to get managers to agree to let you use
"new" stuff :(

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:11 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


have you tried:

...

?
Better yet.. why not just use JSTL?


...

-Tim

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:31 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts



...


java code was like

List list = some_business_layer_call to return a list 

session.setAttribute("txndetails", list);

error is 

cannot create iterator for collection

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 3:16 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


It all depends on how you use the tag.
Show us how you tried to do this and what error was returned.
-Tim

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


I am having a problem with this tag as well.  My issue it that I set a
collection (List) object in the session, the list is not empty yet the
result I get is cannot create an iterator...  Every example i see says that
you should have a bean that holds the collection so the tag uses the
property attribute to retrieve the collection but I thought I could just
throw a collection object into session and use it with the tag.  What am I
missing?

-Original Message-
From: Matthew J. Vincent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 1:33 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


Deepak,

Yesterday I posted a link containing source code on how to use the iterate
tag.

http://moosejaw.org/java/struts-iterate/

I hope it helps you.

Matt



-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:25 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak


This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna

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

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

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



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

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

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

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

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

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



RE: Logic Iterate in Struts

2003-07-09 Thread Chen, Gin
have you tried:

...

?
Better yet.. why not just use JSTL?


...

-Tim

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:31 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts



...


java code was like

List list = some_business_layer_call to return a list 

session.setAttribute("txndetails", list);

error is 

cannot create iterator for collection

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 3:16 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


It all depends on how you use the tag.
Show us how you tried to do this and what error was returned.
-Tim

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


I am having a problem with this tag as well.  My issue it that I set a
collection (List) object in the session, the list is not empty yet the
result I get is cannot create an iterator...  Every example i see says that
you should have a bean that holds the collection so the tag uses the
property attribute to retrieve the collection but I thought I could just
throw a collection object into session and use it with the tag.  What am I
missing?

-Original Message-
From: Matthew J. Vincent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 1:33 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


Deepak,

Yesterday I posted a link containing source code on how to use the iterate
tag.

http://moosejaw.org/java/struts-iterate/

I hope it helps you.

Matt



-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:25 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak


This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna

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

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

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



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

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

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

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

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



RE: Logic Iterate in Struts

2003-07-09 Thread Mike Ash

...


java code was like

List list = some_business_layer_call to return a list 

session.setAttribute("txndetails", list);

error is 

cannot create iterator for collection

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 3:16 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


It all depends on how you use the tag.
Show us how you tried to do this and what error was returned.
-Tim

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


I am having a problem with this tag as well.  My issue it that I set a
collection (List) object in the session, the list is not empty yet the
result I get is cannot create an iterator...  Every example i see says that
you should have a bean that holds the collection so the tag uses the
property attribute to retrieve the collection but I thought I could just
throw a collection object into session and use it with the tag.  What am I
missing?

-Original Message-
From: Matthew J. Vincent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 1:33 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


Deepak,

Yesterday I posted a link containing source code on how to use the iterate
tag.

http://moosejaw.org/java/struts-iterate/

I hope it helps you.

Matt



-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:25 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak


This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna

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

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

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



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

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

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

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



RE: Logic Iterate in Struts

2003-07-09 Thread Chen, Gin
It all depends on how you use the tag.
Show us how you tried to do this and what error was returned.
-Tim

-Original Message-
From: Mike Ash [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 4:07 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


I am having a problem with this tag as well.  My issue it that I set a
collection (List) object in the session, the list is not empty yet the
result I get is cannot create an iterator...  Every example i see says that
you should have a bean that holds the collection so the tag uses the
property attribute to retrieve the collection but I thought I could just
throw a collection object into session and use it with the tag.  What am I
missing?

-Original Message-
From: Matthew J. Vincent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 1:33 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


Deepak,

Yesterday I posted a link containing source code on how to use the iterate
tag.

http://moosejaw.org/java/struts-iterate/

I hope it helps you.

Matt



-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:25 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak


This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna

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

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

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



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

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

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



RE: Logic Iterate in Struts

2003-07-09 Thread Mike Ash
I am having a problem with this tag as well.  My issue it that I set a
collection (List) object in the session, the list is not empty yet the
result I get is cannot create an iterator...  Every example i see says that
you should have a bean that holds the collection so the tag uses the
property attribute to retrieve the collection but I thought I could just
throw a collection object into session and use it with the tag.  What am I
missing?

-Original Message-
From: Matthew J. Vincent [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 1:33 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


Deepak,

Yesterday I posted a link containing source code on how to use the iterate
tag.

http://moosejaw.org/java/struts-iterate/

I hope it helps you.

Matt



-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:25 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak


This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna

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

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

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



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

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



RE: Logic Iterate in Struts

2003-07-09 Thread Matthew J. Vincent
Deepak,

Yesterday I posted a link containing source code on how to use the iterate
tag.

http://moosejaw.org/java/struts-iterate/

I hope it helps you.

Matt



-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:25 PM
To: Struts Users Mailing List
Subject: RE: Logic Iterate in Struts


I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak


This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna

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

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

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



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



[OT]Re: Logic Iterate in Struts

2003-07-09 Thread Yann Cébron

> logic iterate
> was very great
> for looping collections
> with no quelm
> but now there's jstl
> and forEach can take the helm
> The Struts team
> suggests with gleam
>
> http://jakarta.apache.org/struts/userGuide/dev_logic.html
> http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
> http://www.manning.com/bayern/appendixA.pdf
>
> -Tim

now if this isn't a candidate for StrutsPoetry ;-)

http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsPoetry




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



RE: Logic Iterate in Struts

2003-07-09 Thread Yinti, Deepak
I want to iterate thru by bean and retrieve all values in JSP thru this
tag
Deepak

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Logic Iterate in Struts


That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak

 
This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender
by reply e-mail and then delete this e-mail immediately.  Thank you.
Aetna

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

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

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



RE: Logic Iterate in Struts

2003-07-09 Thread Chen, Gin
logic iterate
was very great
for looping collections
with no quelm
but now there's jstl
and forEach can take the helm
The Struts team
suggests with gleam

http://jakarta.apache.org/struts/userGuide/dev_logic.html
http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
http://www.manning.com/bayern/appendixA.pdf

-Tim

-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak

 
This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender by
reply e-mail and then delete this e-mail immediately.  Thank you.  Aetna

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

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



RE: Logic Iterate in Struts

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
That's not overly general or anything
** Note the sarcasm **

What do you want to know?


-Original Message-
From: Yinti, Deepak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:13 PM
To: Struts Users Mailing List
Subject: Logic Iterate in Struts



Can some body some body tell me about logic iterate tag
Thanks
Deepak

 
This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender by
reply e-mail and then delete this e-mail immediately.  Thank you.  Aetna

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

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



Logic Iterate in Struts

2003-07-09 Thread Yinti, Deepak

Can some body some body tell me about logic iterate tag
Thanks
Deepak

 
This e-mail may contain confidential or privileged information.  If you
think you have received this e-mail in error, please advise the sender by
reply e-mail and then delete this e-mail immediately.  Thank you.  Aetna

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



Logic Iterate

2003-06-25 Thread Delio Dirazar
Hi:
I want to edit an array of objects. I use logic:iterate , when
it display the page, all values are displayed, but when I submit the
form, it doesn't reflect the values on my bean ?

Can anybody give me an example ?


Thanks
Delio


The bean testbean have an array of object OptionBean and setter an
getter methods.

... 


  

  

  
  

  

  
  

  Save


  Reset
  Cancel

  






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



RE: Struts Logic iterate vs JSTL Code forEach

2003-06-06 Thread Karr, David
It will stay in the contrib directory, or move out to a separate
release.  It will never go into the base Struts distribution, for good
reason.  Once JSP 2.0 is commonly available, the EL notation will be
natively supported, and Struts-EL won't be needed.

> -Original Message-
> From: Derek Richardson [mailto:[EMAIL PROTECTED]
> 
> Thanks. I submitted a patch to bugzilla.
> 
> What does it mean that struts-el is still in the contrib directory? At
> what point will it migrate to struts-proper? I find it amazingly
useful
> and forward-looking and so am puzzled that it is placed in an
apparently
> peripheral position. Is this just on hold until after 1.1 final?

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



RE: Struts Logic iterate vs JSTL Code forEach

2003-06-05 Thread Derek Richardson
Thanks. I submitted a patch to bugzilla.

What does it mean that struts-el is still in the contrib directory? At what point will 
it migrate to struts-proper? I find it amazingly useful and forward-looking and so am 
puzzled that it is placed in an apparently peripheral position. Is this just on hold 
until after 1.1 final?

Derek Richardson

> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 5:41 PM
> To: Struts Users Mailing List
> Subject: RE: Struts Logic iterate vs JSTL Code forEach
> 
> 
> The "iterate" tag was originally ported because the indexed tag
> functionality wouldn't work with "c:forEach".  This has since been
> rectified, but I didn't think it would be a good idea to 
> remove it from
> the library after I released it (even though it's never been in a
> released version of Struts).
> 
> > -Original Message-
> > From: Derek Richardson [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 04, 2003 2:23 PM
> > To: Struts Users Mailing List
> > Subject: Struts Logic iterate vs JSTL Code forEach
> > 
> > The Logic taglib iterate tag was ported to struts-el. This indicates
> that
> > it has some functionality that cannot be reproduced by the JSTL
> forEach.
> > However, after reading through the documentation for these tags, I
> cannot
> > find anything that iterate can do that forEach cannot. So I 
> am clearly
> > missing the boat. Can someone help me out and explain what cases
> require
> > using iterate instead of forEach?
> > 
> > If someone will enlighten me, I'll write it up and figure out how to
> > submit a patch for the README.txt in the struts-el directory. :)
> > 
> > Thanks,
> > 
> > Derek Richardson
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: Struts Logic iterate vs JSTL Code forEach

2003-06-05 Thread Karr, David
The "iterate" tag was originally ported because the indexed tag
functionality wouldn't work with "c:forEach".  This has since been
rectified, but I didn't think it would be a good idea to remove it from
the library after I released it (even though it's never been in a
released version of Struts).

> -Original Message-
> From: Derek Richardson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 2:23 PM
> To: Struts Users Mailing List
> Subject: Struts Logic iterate vs JSTL Code forEach
> 
> The Logic taglib iterate tag was ported to struts-el. This indicates
that
> it has some functionality that cannot be reproduced by the JSTL
forEach.
> However, after reading through the documentation for these tags, I
cannot
> find anything that iterate can do that forEach cannot. So I am clearly
> missing the boat. Can someone help me out and explain what cases
require
> using iterate instead of forEach?
> 
> If someone will enlighten me, I'll write it up and figure out how to
> submit a patch for the README.txt in the struts-el directory. :)
> 
> Thanks,
> 
> Derek Richardson
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Struts Logic iterate vs JSTL Code forEach

2003-06-05 Thread Derek Richardson
The Logic taglib iterate tag was ported to struts-el. This indicates that it has some 
functionality that cannot be reproduced by the JSTL forEach. However, after reading 
through the documentation for these tags, I cannot find anything that iterate can do 
that forEach cannot. So I am clearly missing the boat. Can someone help me out and 
explain what cases require using iterate instead of forEach?

If someone will enlighten me, I'll write it up and figure out how to submit a patch 
for the README.txt in the struts-el directory. :)

Thanks,

Derek Richardson

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



RE: logic iterate with nested class (I think that's the term)

2003-03-06 Thread Steve Vanspall
Yeah, I am trying to make input tags out of them

Thanks anywa

Steve

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 10:54 AM
To: Struts Users Mailing List
Subject: Re: logic iterate with nested class (I think that's the term)


On Fri, 7 Mar 2003 10:31:08 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Ignore this one,
> 
> It seems that Struts doesn't know to go into the Hashtable entry and
> just get the value,

You can iterate through a map and display the keys and values just fine:


 - 



Or better yet use JSTL tags:


 - 



 
-- 
Rick Reumann

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



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



Re: logic iterate with nested class (I think that's the term)

2003-03-06 Thread Rick Reumann
On Fri, 7 Mar 2003 10:31:08 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Ignore this one,
> 
> It seems that Struts doesn't know to go into the Hashtable entry and
> just get the value,

You can iterate through a map and display the keys and values just fine:


 - 



Or better yet use JSTL tags:


 - 



 
-- 
Rick Reumann

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



RE: logic iterate with nested class (I think that's the term)

2003-03-06 Thread Steve Vanspall
Ignore this one,

It seems that Struts doesn't know to go into the Hashtable entry and just
get the value,

Very strange, but basically it was looking to cast the whole entry rather
than just the value.

Will have to convert it to use a list instead

STeve

-Original Message-
From: Steve Vanspall [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 10:08 AM
To: Struts User Mailing List
Subject: logic iterate with nested class (I think that's the term)


Hi there,

this  is my problem,

I hap a Map, namely a hashtable, that I want struts to iterate through,

Now the bean class of each entry in the map is
com.crm.util.TemplateBeans.IMGTemplateBean

where TemplateBeans is a class itself.

using the following tag



causes a ClassCastException, even though, I have checked and the object
class matches.

I then tried



this didn't work, I got a error stating that It was expecting a value of
class

com.crm.util.TemplateBeans.IMGTemplateBean but got one of type
java.lang.Object

If I can, I would like to keep these classes nested under
com.crm.util.TemplateBeans, just of eas of use and neatness. Is there a way
to properly reference these classes in the iterate tag??

Thaks in advance

Steve



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



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



logic iterate with nested class (I think that's the term)

2003-03-06 Thread Steve Vanspall
Hi there,

this  is my problem,

I hap a Map, namely a hashtable, that I want struts to iterate through,

Now the bean class of each entry in the map is
com.crm.util.TemplateBeans.IMGTemplateBean

where TemplateBeans is a class itself.

using the following tag



causes a ClassCastException, even though, I have checked and the object
class matches.

I then tried



this didn't work, I got a error stating that It was expecting a value of
class

com.crm.util.TemplateBeans.IMGTemplateBean but got one of type
java.lang.Object

If I can, I would like to keep these classes nested under
com.crm.util.TemplateBeans, just of eas of use and neatness. Is there a way
to properly reference these classes in the iterate tag??

Thaks in advance

Steve



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



Help using the logic iterate tag in struts

2003-01-13 Thread Mani, Jaya (J.)
Hi,

  I am new to struts and I trying to use the logic iterate tag.  The task
that I have to do is to loop through a collection and display some
properties.


 I am obtaining the collection on my jsp page itself. The collection is made
of objects.

Here is how I obtain the collection:

<%
  
 Collection uriLanguages=
UriFactory.getInstance().getUri("257").getUriLanguages().values();
  
%>

Below is how my iterate tag is defined: 




  






   


Set as Default


  
   

I have two questions regarding this.
1.Do I have to use the useBean tag to define "uriLanguage".If I don't
specify that I get the error message that uriLanguage is not defined in any
scope.
2.Am I using iterate tag correctly? After I started using the useBean tag I
no longer get exceptions, but I do not get the value for link label property
in uriLanguage class.

Thanks in advance for your help.




index of logic-iterate

2002-11-29 Thread Mohan Radhakrishnan
Hi,

The following code is JSTL. How do I do this with struts logic tags ? No
struts-el.

  

I am looping with logic-iterate. 'value' in the above code should be the
'index' of the looped over arraylist.

I am just checking for alternate rows and changing the color.

It could be something like   


"> 


Is this possible ?
Thanks,
Mohan

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




Re: Making peace between Struts logic iterate and Ed Hill's displ ay tag...

2002-11-10 Thread V. Cekvenich
I hope you think this helps, because I do not think you have a technical 
issue, just a design issue:
" have variable columns which may or may not appear "
Yes that would be a problem for any design review, not something that is 
a good design.
Like how would you unit test the bean outside of the view/JSP? Field1, 
field2, etc..?

Tech: Struts can and does work with collections, "my" formbeans 
implement collection so they can multi row update and multi row 
validate, this includes working the the logic iterate tag and html 
indexed tag. (you know where this bean implementation is)

I can't see why you would mix logic iterate w/ display tag.

Maybe it is easier to write several JSP/bean combos to do the same? 
Also, I imagine a good sql command could resolve your issue, optional 
joins, renamed columns, unions, correlated, etc. etc. Hope you have SQL 
experience, to help you with design that matches your view requirement.

.V




McLure, David wrote:
Both of these solutions are a little cleaner in terms of JSP, but my real
problem is the underlying Java code with its 30 property getter and setters
(this was the code which set off the code review alarm bells).  Ideally, I
think I need to combine something similar to the examples you two supplied
in combination with a Java array in the bean which links to an associated
array in my data object.

I was hoping to avoid the use of scriptlets altogether (which is why I
resorted to individual properties like this to begin with), but I don't see
that happening due to the apparent problems combining the display tag with
the Struts iterate tag.  This is the real problem, but life is a story full
of Workarounds.

Thanks!

Dave McLure


-Original Message-
From: edgar [mailto:edgar@;blue-moose.net]
Sent: Saturday, November 09, 2002 11:15 AM
To: 'Struts Users Mailing List'
Subject: RE: Making peace between Struts logic iterate and Ed Hill's
display tag...


Wouldn't this work.  Still ugly but if you use XML syntax might be
passable.

<%
FooBarBean fooBarBean =
(FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>

cellpadding="0" border="0" width="569" styleClass="DataTableBorder"
scope="request">

   Beautiful Looking
Spreadsheet in the Broswer Brought to you by Hideously Ugly Looking
Code
   

		title="FooBar Code" />
	<%
		for (int j = 0 ; j < 30 ; j++ ) {
			if (FooBarBean.isExistingColumn(j)) { 
String fillJ = (j < 10 ? "0" + j : j);
%>
	
property="stuff<%=fillJ%>" 
		align="right" 
		styleClass="FooBarStyle"

	
headerStyleClass="FooBarDataHeader"
		title="Stuff <%=fillJ%>"

	/>
<%
			}
		}
	%>
	
		title="FooBar Total" />
	

-Original Message-
From: Antoni Reus [mailto:antoni.reus@;wanadoo.es]
Sent: Saturday, November 09, 2002 11:19 AM
To: Struts Users Mailing List
Subject: Re: Making peace between Struts logic iterate and Ed Hill's
display tag...


I don't understant why you can't use logic:iterate tag. 

Anyway, why don't you use a "for" instead of all those "if", something like 
this ?


<%!
// Convert a int to a 2 digit String
private String int2DString(int i) {
   String number = new Integer(i).toString();
   if ( i < 10) {
  number = "0" + number;
   }
}

private String propName(int i) {
   i++; // i was zero-based
   return "stuff" + int2DString(++i);
}

private String propTitle(int i) {
   i++; // i was zero-based
   return "Stuff " + int2DString(++i);
}
%>

<%
FooBarBean FooBarBean =
  (FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>


   name="FooBarBean"
   property="fundList"
   cellspacing="1"
   cellpadding="0"
   border="0"
   width="569"
   styleClass="DataTableBorder"
   scope="request">

   
  
   Beautiful Looking Spreadsheet in the Broswer
  Brought to you by Hideously Ugly Looking Code
  
   

   

   
  property="fundCode"
  align="right"
  styleClass="FooBarStyle"
  headerStyleClass="FooBarDataHeader"
  title="FooBar Code" />

   <% for (int i = 0; i < 30 ; i++) { %>

  <% if (FooBarBean.isExistingColumn(i)) { %>

  
 property="<%=propName(i)%>"
 align="right"
 styleClass="FooBarStyle"
 headerStyleClass="FooBarDataHeader"
 title="<%=propTitle(i)%>" />

  <% } // end If %>

<% } // End For %>


  property="fundTotal"
  align="right"
  styleClass="FooBarStyle"
  headerStyleClass="FooBarDataHeader"
  title="FooBar Total" />






--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: Making peace between Struts logic iterate and Ed Hill's display tag...

2002-11-10 Thread McLure, David
Both of these solutions are a little cleaner in terms of JSP, but my real
problem is the underlying Java code with its 30 property getter and setters
(this was the code which set off the code review alarm bells).  Ideally, I
think I need to combine something similar to the examples you two supplied
in combination with a Java array in the bean which links to an associated
array in my data object.

I was hoping to avoid the use of scriptlets altogether (which is why I
resorted to individual properties like this to begin with), but I don't see
that happening due to the apparent problems combining the display tag with
the Struts iterate tag.  This is the real problem, but life is a story full
of Workarounds.

Thanks!

Dave McLure


-Original Message-
From: edgar [mailto:edgar@;blue-moose.net]
Sent: Saturday, November 09, 2002 11:15 AM
To: 'Struts Users Mailing List'
Subject: RE: Making peace between Struts logic iterate and Ed Hill's
display tag...


Wouldn't this work.  Still ugly but if you use XML syntax might be
passable.

<%
FooBarBean fooBarBean =
(FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>


   Beautiful Looking
Spreadsheet in the Broswer Brought to you by Hideously Ugly Looking
Code
   

<%
for (int j = 0 ; j < 30 ; j++ ) {
if (FooBarBean.isExistingColumn(j)) { 
String fillJ = (j < 10 ? "0" + j : j);
%>

<%
}
}
%>



-Original Message-
From: Antoni Reus [mailto:antoni.reus@;wanadoo.es]
Sent: Saturday, November 09, 2002 11:19 AM
To: Struts Users Mailing List
Subject: Re: Making peace between Struts logic iterate and Ed Hill's
display tag...


I don't understant why you can't use logic:iterate tag. 

Anyway, why don't you use a "for" instead of all those "if", something like 
this ?


<%!
// Convert a int to a 2 digit String
private String int2DString(int i) {
   String number = new Integer(i).toString();
   if ( i < 10) {
  number = "0" + number;
   }
}

private String propName(int i) {
   i++; // i was zero-based
   return "stuff" + int2DString(++i);
}

private String propTitle(int i) {
   i++; // i was zero-based
   return "Stuff " + int2DString(++i);
}
%>

<%
FooBarBean FooBarBean =
  (FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>



   
  
   Beautiful Looking Spreadsheet in the Broswer
  Brought to you by Hideously Ugly Looking Code
  
   

   

   

   <% for (int i = 0; i < 30 ; i++) { %>

  <% if (FooBarBean.isExistingColumn(i)) { %>

  

  <% } // end If %>

<% } // End For %>





--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: Making peace between Struts logic iterate and Ed Hill's display tag...

2002-11-09 Thread Antoni Reus
I don't understant why you can't use logic:iterate tag. 

Anyway, why don't you use a "for" instead of all those "if", something like 
this ?


<%!
// Convert a int to a 2 digit String
private String int2DString(int i) {
   String number = new Integer(i).toString();
   if ( i < 10) {
  number = "0" + number;
   }
}

private String propName(int i) {
   i++; // i was zero-based
   return "stuff" + int2DString(++i);
}

private String propTitle(int i) {
   i++; // i was zero-based
   return "Stuff " + int2DString(++i);
}
%>

<%
FooBarBean FooBarBean =
  (FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>



   
  
   Beautiful Looking Spreadsheet in the Broswer
  Brought to you by Hideously Ugly Looking Code
  
   

   

   

   <% for (int i = 0; i < 30 ; i++) { %>

  <% if (FooBarBean.isExistingColumn(i)) { %>

  

  <% } // end If %>

<% } // End For %>






A Dissabte 09 Novembre 2002 15:59, David McLure va escriure:
> Last month a fellow by the name of Rick Ruemann [[EMAIL PROTECTED]]
> posted a reply to an email inquiry of mine, turning me on to Ed Hill's
> marvelous display tag library (Hi Rick!).  It turns out that Ed's web
> site URL is actually http://edhill.its.uiowa.edu/display-0.8/  (implying
> that Ed might have even a newer version of the tag library now, but I
> digress...)  :
>
> From: Rick Reumann [[EMAIL PROTECTED]]
>
> >Sent: Thursday, October 10, 2002 8:02 PM
> >To: Struts Users Mailing List
> >Subject: Re: Ideas for doing a spreadsheet-styled tables using Struts
>
> tags
>
> >On Thursday, October 10, 2002, 7:55:21 PM, David wrote:
> >
> >DM> I am currently looking for ideas on ways to display potentially
> >DM> large amounts of data in a spreadsheet format using Struts.
> >
> >Check out using this display tag:
> >http://edhill.its.uiowa.edu/display/
> >
> >I couldn't live without it:) (Even will provide a link that you
> >can click on to export the display to Excel).
> >
> >Excellent tag.
> >
> >--
> >
> >Rick
> >mailto:maillist@;reumann.net
>
> Since then, with Rick's help (and Rick deserves a lot of credit for
> figuring out how to use this display tag library by the way), I have
> managed to implement the display tag in my Struts based application and
> it seems to work just fine.  The problem?  My code is ugly as sin!  It's
> so bad, that after glancing over my shoulder the other day, one of my
> best friends at work (Hi Russ!) has already warned me that it will
> undoubtedly fail the upcoming code review.  He's got a point too - it is
> Coyote Ugly Code!
>
> The reason is that neither Rick nor I have figured out a way to make Ed
> Hill's display tag live peacefully with Struts logic iterate tags.  As a
> result, I have JSP code which looks something like the following :
>
> <%
> FooBarBean FooBarBean =
> (FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
> %>
>  cellpadding="0" border="0" width="569" styleClass="DataTableBorder"
> scope="request">
> 
>    Beautiful Looking
> Spreadsheet in the Broswer Brought to you by Hideously Ugly Looking
> Code
>
>  styleClass="FooBarStyle" headerStyleClass="FooBarDataHeader"
> title="FooBar Code" />
> <% if (FooBarBean.isExistingColumn(0)) { %>
> styleClass="FooBarStyle" headerStyleClass="FooBarDataHeader"
> title="Stuff 01" />
> <% } if (FooBarBean.isExistingColumn(1)) { %>
> styleClass="FooBarStyle" headerStyleClass="FooBarDataHeader"
> title="Stuff 02" />
> <% } if (FooBarBean.isExistingColumn(2)) { %>
> styleClass="FooBarStyle" headerStyleClass="FooBarDataHeader"
> title="Stuff 03" />
>...etc., etc...
> <% } if (FooBarBean.isExistingColumn(29)) { %>
> styleClass="FooBarStyle" headerStyleClass="FooBarDataHeader"
> title="Stuff 30" />
> <% } %>
>  styleClass="FooBarStyle" headerStyleClass="FooBarDataHeader"
> title="FooBar Total" />
> 
>
> ... and Java code to support this which is simply to hideous looking to
> post in front of a family audience... (Russ happened to catch me
> desparately trying to prettify the most hideous looking class of the
> bunch!  There are some things which simply no combination of comments
> can help :-).
>
> So please, just shoot me already!  Either that

RE: Making peace between Struts logic iterate and Ed Hill's display tag...

2002-11-09 Thread edgar
Wouldn't this work.  Still ugly but if you use XML syntax might be
passable.

<%
FooBarBean fooBarBean =
(FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>


   Beautiful Looking
Spreadsheet in the Broswer Brought to you by Hideously Ugly Looking
Code
   

<%
for (int j = 0 ; j < 30 ; j++ ) {
if (FooBarBean.isExistingColumn(j)) { 
String fillJ = (j < 10 ? "0" + j : j);
%>

<%
}
}
%>




-Original Message-
From: David McLure [mailto:david@;mclures.net] 
Sent: Saturday, November 09, 2002 9:59 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]';
'[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Making peace between Struts logic iterate and Ed Hill's display
tag...


Last month a fellow by the name of Rick Ruemann [[EMAIL PROTECTED]]
posted a reply to an email inquiry of mine, turning me on to Ed Hill's
marvelous display tag library (Hi Rick!).  It turns out that Ed's web
site URL is actually http://edhill.its.uiowa.edu/display-0.8/  (implying
that Ed might have even a newer version of the tag library now, but I
digress...)  :

>From: Rick Reumann [[EMAIL PROTECTED]]
>Sent: Thursday, October 10, 2002 8:02 PM
>To: Struts Users Mailing List
>Subject: Re: Ideas for doing a spreadsheet-styled tables using Struts
tags
>
>On Thursday, October 10, 2002, 7:55:21 PM, David wrote:
>
>DM> I am currently looking for ideas on ways to display potentially 
>DM> large amounts of data in a spreadsheet format using Struts.
>
>Check out using this display tag:
>http://edhill.its.uiowa.edu/display/
>
>I couldn't live without it:) (Even will provide a link that you
>can click on to export the display to Excel).
>
>Excellent tag.
>
>--
>
>Rick
>mailto:maillist@;reumann.net

Since then, with Rick's help (and Rick deserves a lot of credit for
figuring out how to use this display tag library by the way), I have
managed to implement the display tag in my Struts based application and
it seems to work just fine.  The problem?  My code is ugly as sin!  It's
so bad, that after glancing over my shoulder the other day, one of my
best friends at work (Hi Russ!) has already warned me that it will
undoubtedly fail the upcoming code review.  He's got a point too - it is
Coyote Ugly Code!

The reason is that neither Rick nor I have figured out a way to make Ed
Hill's display tag live peacefully with Struts logic iterate tags.  As a
result, I have JSP code which looks something like the following :

<%
FooBarBean FooBarBean =
(FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>


   Beautiful Looking
Spreadsheet in the Broswer Brought to you by Hideously Ugly Looking
Code
   

<% if (FooBarBean.isExistingColumn(0)) { %>
   
<% } if (FooBarBean.isExistingColumn(1)) { %>
   
<% } if (FooBarBean.isExistingColumn(2)) { %>
   
   ...etc., etc...
<% } if (FooBarBean.isExistingColumn(29)) { %>
   
<% } %>



... and Java code to support this which is simply to hideous looking to
post in front of a family audience... (Russ happened to catch me
desparately trying to prettify the most hideous looking class of the
bunch!  There are some things which simply no combination of comments
can help :-).

So please, just shoot me already!  Either that, or help me with this
agonizing problem which is causing me to lose sleep (normally I sleep
late on Saturday mornings if I stay up late the night before).  Of
course, it doesn't help that in this case, I have variable columns which
may or may not appear (causing the need for the additional "if
(FooBarBean.isExistingColumn(x))" scriptlet code.  Even without that
problem though, it seems that I would still end up having to in line my
display columns with silly looking class properties like stuff00,
stuff01, stuff02, etc., all the way to stuff29 for each of my 30
possible data columns when I would normally write a much sexier loop
through an array (or even sexier - a collection) - all because Struts
logic:iterate tags don't seem to want to play with the display:column
tags!

We have tried asking Ed Hill about this problem, but Ed has been pretty
busy lately (either that, or it is entirely possible that our emails to
him at his email address posted on his web site are being lost in
mountains of junk mail - which is the problem I am faced with on one of
my more well known web site email accounts - making useful
correspondence with me almost impossible to that email address).  Ed,
are you still with us?

Anyway, as my code review approaches, I thought I'd try o

Making peace between Struts logic iterate and Ed Hill's display tag...

2002-11-09 Thread David McLure
Last month a fellow by the name of Rick Ruemann [[EMAIL PROTECTED]]
posted a reply to an email inquiry of mine, turning me on to Ed Hill's
marvelous display tag library (Hi Rick!).  It turns out that Ed's web
site URL is actually http://edhill.its.uiowa.edu/display-0.8/  (implying
that Ed might have even a newer version of the tag library now, but I
digress...)  :

>From: Rick Reumann [[EMAIL PROTECTED]]
>Sent: Thursday, October 10, 2002 8:02 PM
>To: Struts Users Mailing List
>Subject: Re: Ideas for doing a spreadsheet-styled tables using Struts
tags
>
>On Thursday, October 10, 2002, 7:55:21 PM, David wrote:
>
>DM> I am currently looking for ideas on ways to display potentially
>DM> large amounts of data in a spreadsheet format using Struts.
>
>Check out using this display tag:
>http://edhill.its.uiowa.edu/display/
>
>I couldn't live without it:) (Even will provide a link that you
>can click on to export the display to Excel).
>
>Excellent tag.
>
>--
>
>Rick
>mailto:maillist@;reumann.net

Since then, with Rick's help (and Rick deserves a lot of credit for
figuring out how to use this display tag library by the way), I have
managed to implement the display tag in my Struts based application and
it seems to work just fine.  The problem?  My code is ugly as sin!  It's
so bad, that after glancing over my shoulder the other day, one of my
best friends at work (Hi Russ!) has already warned me that it will
undoubtedly fail the upcoming code review.  He's got a point too - it is
Coyote Ugly Code!

The reason is that neither Rick nor I have figured out a way to make Ed
Hill's display tag live peacefully with Struts logic iterate tags.  As a
result, I have JSP code which looks something like the following :

<%
FooBarBean FooBarBean =
(FooBarBean)request.getAttribute(FooBarBean.LOOKUP_KEY);
%>


   Beautiful Looking
Spreadsheet in the Broswer Brought to you by Hideously Ugly Looking
Code
   

<% if (FooBarBean.isExistingColumn(0)) { %>
   
<% } if (FooBarBean.isExistingColumn(1)) { %>
   
<% } if (FooBarBean.isExistingColumn(2)) { %>
   
   ...etc., etc...
<% } if (FooBarBean.isExistingColumn(29)) { %>
   
<% } %>



... and Java code to support this which is simply to hideous looking to
post in front of a family audience... (Russ happened to catch me
desparately trying to prettify the most hideous looking class of the
bunch!  There are some things which simply no combination of comments
can help :-).

So please, just shoot me already!  Either that, or help me with this
agonizing problem which is causing me to lose sleep (normally I sleep
late on Saturday mornings if I stay up late the night before).  Of
course, it doesn't help that in this case, I have variable columns which
may or may not appear (causing the need for the additional "if
(FooBarBean.isExistingColumn(x))" scriptlet code.  Even without that
problem though, it seems that I would still end up having to in line my
display columns with silly looking class properties like stuff00,
stuff01, stuff02, etc., all the way to stuff29 for each of my 30
possible data columns when I would normally write a much sexier loop
through an array (or even sexier - a collection) - all because Struts
logic:iterate tags don't seem to want to play with the display:column
tags!

We have tried asking Ed Hill about this problem, but Ed has been pretty
busy lately (either that, or it is entirely possible that our emails to
him at his email address posted on his web site are being lost in
mountains of junk mail - which is the problem I am faced with on one of
my more well known web site email accounts - making useful
correspondence with me almost impossible to that email address).  Ed,
are you still with us?

Anyway, as my code review approaches, I thought I'd try one last time to
spare this otherwise extremely powerful display tag library from the
hungry jaws of the code reviewers at work.  Of course, I could just rip
out the display tag altogether and be done with it, but by doing so, I
would also sacrifice the use of the display taglib's spreadsheet (XML,
XLS, etc.) file export features (along with potentially many other nice
features).  The business group at work would not be happy with the loss
of these features.

Has anyone ever had any luck using Ed Hill's display tag library with
the Struts logic:iterate tag?  If so, then please reply to this post and
also contact me directly at my work address ([EMAIL PROTECTED]).

Thanks!

Dave McLure
Fidelity Investments
(aka [EMAIL PROTECTED])


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: logic : iterate is driving me mad

2002-09-24 Thread deepank

IT WORKED

THANKS VERY VERY VERY MUCH

Deepank

- Original Message -
From: "Jon.Ridgway" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 8:39 PM
Subject: RE: logic : iterate is driving me mad


> Hi Deepak
>
> I can't remember the exact syntax but the Struts docs on the web mention
> that you get a key and value object when you iterate over a Map. So try:
>
> 
>  
>  
>  
> 
>
> Jon Ridgway
>
>
> -Original Message-
> From: deepank [mailto:[EMAIL PROTECTED]]
> Sent: 24 September 2002 16:09
> To: Struts Users Mailing List
> Subject: logic : iterate is driving me mad
>
> jsp code snippet
>
> 
>  
>  
>  
>
> 
>
> property reviewers is TreeMap that stores beans
>
> i get an error
>
> javax.servlet.ServletException: No getter method for property emp_name of
> bean reviewer
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:471)
> at
> org.apache.jsp.ReviewTeam$jsp._jspService(ReviewTeam$jsp.java:988)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:201)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
> i have getter methods for all the properties in the bean, for example
> public void setEmp_name(String emp_name) {  this.emp_name = emp_name; }
>  public String getEmp_name() {  return this.emp_name; }
> STILL I AM GETTING THIS ERROR
> IF I DO
> 

> HELLO WORLD!
> 
> The loop works correctly, only the getter methods give error
> SOME BODY PLEASE HELP
> Deepank
>
>
>
> The contents of this email are intended only for the named addressees and
> may contain confidential and/or privileged material. If received in error
> please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
> e-mail from your system. Unauthorised review, distribution, disclosure or
> other use of this information could constitute a breach of confidence.
Your
> co-operation in this matter is greatly appreciated.
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




RE: logic : iterate is driving me mad

2002-09-24 Thread Jon.Ridgway

Hi Deepak

I can't remember the exact syntax but the Struts docs on the web mention
that you get a key and value object when you iterate over a Map. So try:


 
 
 


Jon Ridgway


-Original Message-
From: deepank [mailto:[EMAIL PROTECTED]] 
Sent: 24 September 2002 16:09
To: Struts Users Mailing List
Subject: logic : iterate is driving me mad

jsp code snippet


 
 
 
 


property reviewers is TreeMap that stores beans

i get an error 
 
javax.servlet.ServletException: No getter method for property emp_name of
bean reviewer
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:471)
at
org.apache.jsp.ReviewTeam$jsp._jspService(ReviewTeam$jsp.java:988)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
i have getter methods for all the properties in the bean, for example
public void setEmp_name(String emp_name) {  this.emp_name = emp_name; }
 public String getEmp_name() {  return this.emp_name; }
STILL I AM GETTING THIS ERROR
IF I DO 
 
HELLO WORLD!

The loop works correctly, only the getter methods give error
SOME BODY PLEASE HELP 
Deepank



The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

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




logic : iterate is driving me mad

2002-09-24 Thread deepank

jsp code snippet


 
 
 
 


property reviewers is TreeMap that stores beans

i get an error 
 
javax.servlet.ServletException: No getter method for property emp_name of bean reviewer
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.ReviewTeam$jsp._jspService(ReviewTeam$jsp.java:988)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
i have getter methods for all the properties in the bean, for example
public void setEmp_name(String emp_name) {  this.emp_name = emp_name; }
 public String getEmp_name() {  return this.emp_name; }
STILL I AM GETTING THIS ERROR
IF I DO 
  HELLO 
WORLD!

The loop works correctly, only the getter methods give error
SOME BODY PLEASE HELP 
Deepank




RE: Logic Iterate not finding my bean

2002-07-02 Thread Kamholz, Keith (corp-staff) USX

How is the bean that is being used in the iteration structured?
It may be helpful if you send some code from your bean class.

~ Keith
http://www.buffalo.edu/~kkamholz


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 9:21 AM
To: [EMAIL PROTECTED]
Subject: RE: Logic Iterate not finding my bean


This was one of the many iterations I tried


Next element is 


-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:45 AM
To: struts-user
Subject: RE: Logic Iterate not finding my bean


I don't know if this will solve your problem, but you're making a common
mistake.  In the  tag, the name attribute should be the same 
as
the id attribute in the  tag.  So use name="refnum" in 
your
.  Hope this helps.

~ Keith


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Logic Iterate not finding my bean



You mean this one:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Nope, got that in there...


-Original Message-
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean




I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not 
defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.





[EMAIL PROTECTED]
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To: [EMAIL PROTECTED]
cc:
Subject:Logic Iterate not finding my bean


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'

These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:

---
System.out.println("Name is: " + ((BasicDynaBean)
results.get(0)).get("name"));
session.setAttribute("rowset",results);
---

In my jsp I have tried a kabillion combinations for the logic iteratate
and all yield the error above:


Next element is 


Here is the simplest I tried...  I've added type, etc.. All to no avail





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






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



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

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



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

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




RE: Logic Iterate not finding my bean

2002-07-02 Thread wbchmura

This was one of the many iterations I tried


Next element is 


-Original Message-
From: kkamholz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:45 AM
To: struts-user
Subject: RE: Logic Iterate not finding my bean


I don't know if this will solve your problem, but you're making a common
mistake.  In the  tag, the name attribute should be the same 
as
the id attribute in the  tag.  So use name="refnum" in 
your
.  Hope this helps.

~ Keith


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Logic Iterate not finding my bean



You mean this one:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Nope, got that in there...


-Original Message-
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean




I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not 
defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.





[EMAIL PROTECTED]
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To: [EMAIL PROTECTED]
cc:
Subject:Logic Iterate not finding my bean


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'

These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:

---
System.out.println("Name is: " + ((BasicDynaBean)
results.get(0)).get("name"));
session.setAttribute("rowset",results);
---

In my jsp I have tried a kabillion combinations for the logic iteratate
and all yield the error above:


Next element is 


Here is the simplest I tried...  I've added type, etc.. All to no avail





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






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



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

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



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




RE: Logic Iterate not finding my bean

2002-07-02 Thread Kamholz, Keith (corp-staff) USX

I don't know if this will solve your problem, but you're making a common
mistake.  In the  tag, the name attribute should be the same as
the id attribute in the  tag.  So use name="refnum" in your
.  Hope this helps.

~ Keith


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Logic Iterate not finding my bean



You mean this one:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Nope, got that in there...


-Original Message-
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean




I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not 
defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.





[EMAIL PROTECTED]
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To: [EMAIL PROTECTED]
cc:
Subject:Logic Iterate not finding my bean


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'

These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:

---
System.out.println("Name is: " + ((BasicDynaBean)
results.get(0)).get("name"));
session.setAttribute("rowset",results);
---

In my jsp I have tried a kabillion combinations for the logic iteratate
and all yield the error above:


Next element is 


Here is the simplest I tried...  I've added type, etc.. All to no avail





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






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



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

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




Antwort: RE: Logic Iterate not finding my bean

2002-07-02 Thread Anton_Grimm


try using the iterate-id 
for your bean-name in bean:write

like i did in

###


  ...
  

  


Mit freundlichen Grüssen

A. Grimm


MAN Nutzfahrzeuge AG
Anton Grimm
Abt. IDP (SoftwareProduktionsumgebungen)
Dachauerstr.667
80995 München

Tel.:  089/1580-1054
Fax:  089/1580-911054
E-Mail: [EMAIL PROTECTED]



   
 
  wbchmura@Ensign-Bick 
 
  fordInd.com An:   
[EMAIL PROTECTED]  
  Kopie:   
 
  01.07.2002 20:35Thema:RE: Logic Iterate not 
finding my bean   
  Bitte antworten an   
 
  "Struts Users
 
  Mailing List"
 
   
 
   
 





You mean this one:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Nope, got that in there...


-Original Message-
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean




I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not
defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.





[EMAIL PROTECTED]
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To:     [EMAIL PROTECTED]
cc:
Subject:Logic Iterate not finding my bean


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'

These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:

---
System.out.println("Name is: " + ((BasicDynaBean)
results.get(0)).get("name"));
session.setAttribute("rowset",results);
---

In my jsp I have tried a kabillion combinations for the logic iteratate
and all yield the error above:


Next element is 


Here is the simplest I tried...  I've added type, etc.. All to no avail





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






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



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






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




RE: Logic Iterate not finding my bean

2002-07-01 Thread wbchmura


You mean this one:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Nope, got that in there...


-Original Message-
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean




I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not 
defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.





[EMAIL PROTECTED]
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To: [EMAIL PROTECTED]
cc:
Subject:Logic Iterate not finding my bean


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'

These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:

---
System.out.println("Name is: " + ((BasicDynaBean)
results.get(0)).get("name"));
session.setAttribute("rowset",results);
---

In my jsp I have tried a kabillion combinations for the logic iteratate
and all yield the error above:


Next element is 


Here is the simplest I tried...  I've added type, etc.. All to no avail





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






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



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




Re: Logic Iterate not finding my bean

2002-07-01 Thread Chris_Treglio



I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.





[EMAIL PROTECTED]
07/01/02 02:25 PM
Please respond to "Struts Users Mailing List"



To: [EMAIL PROTECTED]
cc:
Subject:    Logic Iterate not finding my bean


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'

These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:

---
System.out.println("Name is: " + ((BasicDynaBean)
results.get(0)).get("name"));
session.setAttribute("rowset",results);
---

In my jsp I have tried a kabillion combinations for the logic iteratate
and all yield the error above:


Next element is 


Here is the simplest I tried...  I've added type, etc.. All to no avail





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






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




Logic Iterate not finding my bean

2002-07-01 Thread wbchmura


[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find 
bean rowset in scope session' 

These are for DynaBeans incidentally... I am stuffing an array list and 
then setting it like so:

---
System.out.println("Name is: " + ((BasicDynaBean) 
results.get(0)).get("name"));
session.setAttribute("rowset",results);
---

In my jsp I have tried a kabillion combinations for the logic iteratate 
and all yield the error above:


Next element is 
 

Here is the simplest I tried...  I've added type, etc.. All to no avail





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with Logic-iterate and enumeration (2)

2002-06-06 Thread Galbreath, Mark

Or perhaps something like?

<%! int count = 0 %>

  

  

  
  <% count += 3 %>


Mark

-Original Message-
From: struts (H2Opilot) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 10:40 AM

hi,
I have a List of Numbers and I like to use 3 columns and n rows.

Is there a possible way to realise this via Logic-iteration.

Normally, it look like that every next step in the iteration there is
always another row.

Like this:




  
  

  

  
** this should be the next element of Data, but how increment the
element??  *
   
  

  




any ideas?


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with Logic-iterate and enumeration

2002-06-06 Thread Galbreath, Mark

This seems like a kludge, but I don't know of another way of doing it with
Struts tags.  Anybody else?


  

  


 
   
  
  


  
  
  


  * * * 
do for how many more groups of 3 numbers you anticipate
will only print out if data is present
  * * *



Empty  tags shouldn't bloat table space.

Mark

-Original Message-
From: struts (H2Opilot) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 10:40 AM

hi,
I have a List of Numbers and I like to use 3 columns and n rows.

Is there a possible way to realise this via Logic-iteration.

Normally, it look like that every next step in the iteration there is
always another row.

Like this:




  
  

  

  
** this should be the next element of Data, but how increment the
element??  *
   
  

  




any ideas?


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem with Logic-iterate and enumeration

2002-06-06 Thread dhay



I hate using scriptlets, but had to do so in the end for the problem - although
could have made a custom tag I guess.  Here's what I do:

  
 


   

   <%
  //insert rows where necessary
  int categoriesInRow = 3;
  if ((index.intValue() > 0 && ((index.intValue()+1)
 % categoriesInRow == 0)))
  {
   %>


   <%
  }
   %>

 
 
  

HTH,

cheers,

Dave




"struts (H2Opilot)" <[EMAIL PROTECTED]> on 06/06/2002
10:40:07 AM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>; Please respond to
  [EMAIL PROTECTED]

To:   "Struts Users Mailing List"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Problem with Logic-iterate and enumeration




hi,
I have a List of Numbers and I like to use 3 columns and n rows.

Is there a possible way to realise this via Logic-iteration.

Normally, it look like that every next step in the iteration there is
always another row.

Like this:




  
  

  

  
** this should be the next element of Data, but how increment the
element??  *
   
  

  




any ideas?


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








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




Problem with Logic-iterate and enumeration

2002-06-06 Thread struts (H2Opilot)


hi,
I have a List of Numbers and I like to use 3 columns and n rows.

Is there a possible way to realise this via Logic-iteration.

Normally, it look like that every next step in the iteration there is
always another row.

Like this:




  
  

  

  
** this should be the next element of Data, but how increment the
element??  *
   
  

  




any ideas?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: logic iterate tag

2002-03-22 Thread Ted Husted

You can nest the iterate tag if you like. 

>  scope="request"/>
> 
> <%-- this is where I'm lost. --%>


> 

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I'm having some difficulty with the iteration tag in the logic tag lib.
> It's very straight-forward when you are using your own concrete classes(w/
> getters and setters for each property), but I can't seem to figure out a way
> to get it working with utility classes.
> 
> What I'm trying to do is iterate over a Vector filled with Hashtable
> objects.  It seem pretty simple, but I can't seem to get the nested
> iteration working working with the hashtable.
> 
>  scope="request"/>
> 
> // this is where I'm lost.
> 
> 
> I'm not sure what's suppose to happen within the parent iteration tag.  In
> the docs, they use the following example to iterate over a hashtable:
> 
> 
> Next element is 
> 
> 
> Do I need to define a new hashtable bean for every iteration of the Vector?
> If so, how do I set the bean to be the object in the current iteration of
> the vector?
> 
> Does anyone have an example?
> 
> Thanks in advance.
> Eric.
> 
> **
> This message, including any attachments, contains confidential information intended 
>for a specific individual and purpose, and is protected by law.  If you are not the 
>intended recipient, please contact sender immediately by reply e-mail and destroy all 
>copies.  You are hereby notified that any disclosure, copying, or distribution of 
>this message, or the taking of any action based on it, is strictly prohibited.
> TIAA-CREF
> **
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




logic iterate tag

2002-03-20 Thread eschneider

Hi,

I'm having some difficulty with the iteration tag in the logic tag lib.
It's very straight-forward when you are using your own concrete classes(w/
getters and setters for each property), but I can't seem to figure out a way
to get it working with utility classes.

What I'm trying to do is iterate over a Vector filled with Hashtable
objects.  It seem pretty simple, but I can't seem to get the nested
iteration working working with the hashtable.



// this is where I'm lost.
 

I'm not sure what's suppose to happen within the parent iteration tag.  In
the docs, they use the following example to iterate over a hashtable:


Next element is 
 

Do I need to define a new hashtable bean for every iteration of the Vector?
If so, how do I set the bean to be the object in the current iteration of
the vector?

Does anyone have an example?

Thanks in advance.
Eric.


**
This message, including any attachments, contains confidential information intended 
for a specific individual and purpose, and is protected by law.  If you are not the 
intended recipient, please contact sender immediately by reply e-mail and destroy all 
copies.  You are hereby notified that any disclosure, copying, or distribution of this 
message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Logic-Iterate not finding scope of Bean - error ???

2001-06-11 Thread Geoffrey Van Nuffelen

Hi all,

I have the same goal of Kat Luna.. and I have the same syntax.
But for me, I think that the error come from the  tag. This tag
don't find the scope of the bean and then don't find the bean.
I really don't know what I have to do.. I don't think so that use the
standard jsp method is MVC compliant.

Please is there a solution ?
Thanks in advance,
Geoffrey...

- Original Message -
From: "Charlesworth, Chico" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 08, 2001 4:54 PM
Subject: RE: Logic-Iterate not finding scope of Bean


> you can also have two separate action classes that use the same form,
where
> you use the first action class when you first go into that page, then use
> the second when you are submitting or whatever in the form
>
> -Original Message-
> From: Luna, Kat [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 07, 2001 7:58 PM
> To: [EMAIL PROTECTED]
> Subject: Logic-Iterate not finding scope of Bean
>
>
>
>
> Hi all, me again with my afternoon question..
>
>
> I have a UserAction class that extracts a list of Users from the database
> and stores them in an ArrayList.  Success from this Action forwards to
> user.jsp which I want to display the list in table format.  I have:
>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> 
> 
> 
> 
>
> 
>
>type="com.test.User">
>
> 
> 
> 
> 
>
>   
>
> ..etc
>
> but this causes the UserAction to run again (essentially calling the
> database and building the ArrayList again). Is there a way to have this
bean
> init() when the jsp page loads and then iterate through the ArrayList
> instead of calling the Action first and then displaying the page?  And if
> so, do I need to add anything to struts-config.xml to tell the page where
to
> find/identify the UserAction bean?
>
> Thanks,
>
>
> Kat Luna
> Web Developer,
> BCE Emergis
> [EMAIL PROTECTED]
>
>
> --
> The content of this e-mail is confidential, may contain privileged
material
> and is intended solely for the recipient(s) named above. If you receive
this
> in error, please notify Software AG immediately and delete this e-mail.
>
> Software AG (UK) Limited
> Registered in England & Wales 1310740
> Registered Office: Hudson House, Hudson Way,
> Pride Park, Derby DE24 8HS




RE: Logic-Iterate not finding scope of Bean

2001-06-08 Thread Charlesworth, Chico

you can also have two separate action classes that use the same form, where
you use the first action class when you first go into that page, then use
the second when you are submitting or whatever in the form

-Original Message-
From: Luna, Kat [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 7:58 PM
To: [EMAIL PROTECTED]
Subject: Logic-Iterate not finding scope of Bean




Hi all, me again with my afternoon question.. 


I have a UserAction class that extracts a list of Users from the database
and stores them in an ArrayList.  Success from this Action forwards to
user.jsp which I want to display the list in table format.  I have:

<%@ page language="java" %> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> 
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> 
 
 
 
 

 

   

 
 
 
 

   

..etc 

but this causes the UserAction to run again (essentially calling the
database and building the ArrayList again). Is there a way to have this bean
init() when the jsp page loads and then iterate through the ArrayList
instead of calling the Action first and then displaying the page?  And if
so, do I need to add anything to struts-config.xml to tell the page where to
find/identify the UserAction bean?

Thanks, 


Kat Luna 
Web Developer, 
BCE Emergis 
[EMAIL PROTECTED] 


-- 
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.

Software AG (UK) Limited
Registered in England & Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS



Re: Logic-Iterate not finding scope of Bean

2001-06-08 Thread Jeff Trent
Title: Logic-Iterate not finding scope of Bean



I would suggest keeping a hidden property on your 
form that keeps the state that you are in (ie., 1stTimeQuery, or 
useQueryResults)...
 

  - Original Message - 
  From: 
  Luna, Kat 
  
  To: [EMAIL PROTECTED] 
  Sent: Thursday, June 07, 2001 2:57 
  PM
  Subject: Logic-Iterate not finding scope 
  of Bean
  
  Hi all, me again with my afternoon question.. 
  I have a UserAction class that extracts a list of Users from 
  the database and stores them in an ArrayList.  Success from this Action 
  forwards to user.jsp which I want to display the list in table format.  I 
  have:
  <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" 
  %> <%@ taglib uri="/WEB-INF/struts-bean.tld" 
  prefix="bean" %> 
   
     
       
       
       
       
  
     
  ..etc 
  but this causes the UserAction to run again (essentially 
  calling the database and building the ArrayList again). Is there a way to have 
  this bean init() when the jsp page loads and then iterate through the 
  ArrayList instead of calling the Action first and then displaying the 
  page?  And if so, do I need to add anything to struts-config.xml to tell 
  the page where to find/identify the UserAction bean?
  Thanks, 
  Kat Luna Web Developer, 
  BCE Emergis [EMAIL PROTECTED] 
  


Logic-Iterate not finding scope of Bean

2001-06-07 Thread Luna, Kat
Title: Logic-Iterate not finding scope of Bean






Hi all, me again with my afternoon question..



I have a UserAction class that extracts a list of Users from the database and stores them in an ArrayList.  Success from this Action forwards to user.jsp which I want to display the list in table format.  I have:

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>









  


    
    
    
    


  


..etc


but this causes the UserAction to run again (essentially calling the database and building the ArrayList again). Is there a way to have this bean init() when the jsp page loads and then iterate through the ArrayList instead of calling the Action first and then displaying the page?  And if so, do I need to add anything to struts-config.xml to tell the page where to find/identify the UserAction bean?

Thanks,



Kat Luna
Web Developer,
BCE Emergis
[EMAIL PROTECTED] 





RE: Logic-Iterate

2001-06-04 Thread Shamdasani Nimmi-ANS004

Shane 

This is how you do it:










In the above case in yourBeanObject class you will have the method getBeanList() which 
will return a list of your beans. And in the bean class eachBean) you will have a 
method getName() which will return the name variable.

Hope this helps.

-Nimmi
-Original Message-
From: Shane Warne [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 5:03 PM
To: [EMAIL PROTECTED]
Subject: Logic-Iterate


Hi,
I was trying to us the logic-iterate tag and i'm stuck
at a point. Please go thru the snippet below,


  
<%
String myName = instance.getName(mybean.getName());
System.out.println(myName);
%>


Now, how do i get one of the properties of a bean when
i'm iterating through a collection of a bean objects.
Bottom line is i would like to pass the property
getName() into a variable. Can anyone help me in
sorting this out ??

Thanks,
Shane..


=


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Logic-Iterate

2001-06-04 Thread Shane Warne

Hi,
I was trying to us the logic-iterate tag and i'm stuck
at a point. Please go thru the snippet below,


  
<%
String myName = instance.getName(mybean.getName());
System.out.println(myName);
%>


Now, how do i get one of the properties of a bean when
i'm iterating through a collection of a bean objects.
Bottom line is i would like to pass the property
getName() into a variable. Can anyone help me in
sorting this out ??

Thanks,
Shane..


=


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: Logic iterate problems => solution

2001-05-10 Thread Sylvain FAGNENT



I found the error, the logic tld was not 
imported...
the logic tag was not parsed 
 
stupid error isn't it ?? :-

  - Original Message - 
  From: 
  Sylvain FAGNENT 
  
  To: [EMAIL PROTECTED] 
  Sent: Thursday, May 10, 2001 3:41 
PM
  Subject: Re: Logic iterate problems
  
  In fact I use the full class name in the iterate 
  Tag !
  
- Original Message - 
From: 
Nanduri, Amarnath 
To: '[EMAIL PROTECTED]' 

Sent: Thursday, May 10, 2001 3:39 
PM
    Subject: RE: Logic iterate 
problems

In 
your jsp page did you do an import on client ?
 

<%@ page import = "beans.Client" %>
 


RE: Logic iterate problems

2001-05-10 Thread Deadman, Hal

Have you tried this? It should work as long as whatever is in the Vector has
a method defined like: public String getName();






Put something like this at the top of your JSP just to make sure tabTest is
in there.
<%
Object obj = session.getAttribute("tabTest");
if (obj==null)
{
System.err.println("The action wasn't called before this jsp");
}
else
{
System.err.println("tabTest is a " + obj.getClass().getName());
}
%>


> -Original Message-
> From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 10:36 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Logic iterate problems
>
>
> i'll send u some code that u can adapt for Vectors that we used quite
> effectively with Arraylists, try it out...
>
> we used like a wrapper class to put our collection object in
> as follows:
>
>
> -
> package com.didata.itax.payment.web.data;
>
> import java.util.ArrayList;
>
> /**
>  * Title:
>  * Description:
>  * Copyright:Copyright (c) 2001
>  * Company:
>  * @author
>  * @version 1.0
>  */
>
> public class EFilerList {
> private ArrayList list = null;
> private int size = 0;
>
> public int getSize(){
> return list.size();
> }
>
> public EFilerList() {
> list = new ArrayList();
> }
> public EFilerList(ArrayList newList) {
> list = newList;
> }
> public void addEFiler(EFiler efiler){
> list.add(efiler);
> }
>
> public void removeEFiler(int eFilerID){
> list.remove(eFilerID);
> list.trimToSize();
> }
> public EFiler[] getEfilers(){//the iterate tags
> property="efilers" will
> call this method!!
> EFiler[] eFilers = new EFiler[list.size()];
> eFilers = (EFiler[])list.toArray(eFilers);
> return eFilers;
> }
>
>
> public EFiler getEfiler(int eFilerID){
> EFiler eFiler = new EFiler();
> eFiler = (EFiler)list.get(eFilerID);
> return eFiler;
> }
> }
>
> in your actionform or wherever u build the vector, use the
> above class to
> wrap your Vector, then, u push this list class above as your
> session object.
> This class is juts a wrapper, so we can access the ArrayList
> or Vector in
> our jsp. Once you've built EFilerList, put all the elements
> in it that u
> need, add it to the session   session.setAttribute...etc
>
>
> the jsp for the above example looks like this
>
>name="eFilerList" scope="session" property="efilers">
> 
>   
>  property="firstName" filter="true"/>
>   
>   
>  property="initials" filter="true"/>
>   
>   
>  property="lastName" filter="true"/>
>   
>   
>  property="idNumber"/>
>   
>   
>  property="state"/>
>   
>
>   
>page="/eFilerEdit.do?action=Edit" > key="eFilerList.edit"/>/html:link>
>   
>   
>  property="state"/>
>   
>
> 
>   
>
>
> the eFiler class looks like this.
>
>
> package com.didata.itax.payment.web.data;
>
> import com.didata.itax.payment.web.actionform.*;
>
> /**
>  * Title:
>  * Description:
>  * Copyright:Copyright (c) 2001
>  * Company:
>  * @author
>  * @version 1.0
>  */
>
> public class EFiler implements java.io.Serializable {
>
> String firstName = null;
> String initials = null;
> String lastName = null;
> String idNumber = null;
> Boolean state = new Boolean(false);
>
> public EFiler() {
>
> }
>
> public EFiler(EFilerActionForm eFilerForm) {
> firstName = eFilerForm.getFirstName();
> 

  1   2   >