Re: how get index value at logic:iterate

2006-12-12 Thread Po Po
Ok, it's working. Thanks, Popo --- Nikhil Walvekar [EMAIL PROTECTED] wrote: try onchange='%= onchangeGrade( + indexId.intValue() + ); %' Regards, Nikhil On 12/12/06, Po Po [EMAIL PROTECTED] wrote: Hello, I've a collection and i iterate using logic:iterate, inside

FW: logic:iterate tag populating a table not in a form does not rerender on page refresh. (Struts 1.1)

2006-12-01 Thread Ben Flynn
Hey guys; I have a really annoying problem that I've killed far too much time on- I was hoping someone might have some additional insight. I created a page that uses a logic:iterate to populate a table with an ArrayList of Beans. This works beautifully on first view, but subsequent page views

Re: Console error message for a working logic:iterate tag

2006-11-14 Thread Bradley Wagner
Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano Yes, for some reason, when I change the scope of the action mapping to session the message in the console goes away. I don't understand at all. Why it the JSP function correctly in both

RE: Problem while using logic:iterate

2006-11-13 Thread Sunita Ramchandra Shukla
Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel Here name attribute should be what you have set the key in request and specify the location of your class in type w.r.t web application. Rest is fine. It should work. -Original Message- From: santas [mailto

RE: Problem while using logic:iterate

2006-11-13 Thread santas
HI i tried what u said but stil the same error is shown to me i have set the list with key users then i first check logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type=com.user.uservo tr td bean:write name=listvo property=firstname/ /td

Re: Problem while using logic:iterate

2006-11-13 Thread Nuwan Chandrasoma
try to use the scope attribute of the iterator tag and see, eg: logic:iterate id=listvo name=users type=com.user.uservo scope=request logic:iterate id=listvo name=users type=com.user.uservo scope=session Thanks, Nuwan. - Original Message - From: santas [EMAIL PROTECTED

Re: Problem while using logic:iterate

2006-11-13 Thread Eider Iturbe
check logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type= com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any

RE: Problem while using logic:iterate

2006-11-13 Thread Sunita Ramchandra Shukla
To: user@struts.apache.org Subject: RE: Problem while using logic:iterate HI i tried what u said but stil the same error is shown to me i have set the list with key users then i first check logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type

Re: Problem while using logic:iterate

2006-11-13 Thread Puneet Lakhina
ArrayList(); //populate list something like uservoList.add(new Uservo()); request.setAttribute(listvo,uservoList); Thats it. Im all set to use an ArrayList i set in request scope. logic:iterate id=uservo name=listvo !--Some Processing-- /logic:iterate Regards, -- Eider On 11/13/06, santas [EMAIL

Re: Problem while using logic:iterate

2006-11-13 Thread Eider Iturbe
ArrayList(); //populate list something like uservoList.add(new Uservo()); request.setAttribute(listvo,uservoList); Thats it. Im all set to use an ArrayList i set in request scope. logic:iterate id=uservo name=listvo !--Some Processing-- /logic:iterate Regards, -- Eider On 11/13/06, santas

RE: Problem while using logic:iterate

2006-11-13 Thread Sunita Ramchandra Shukla
.getContactNumber()); a1.add(m1);// add it to arraylist. } 3. return the arraylist to action class. 4. set it to request Attribute. 5. on jsp page use logic:iterate to fetch it. 6. AtLast debug if any

Re: Problem while using logic:iterate

2006-11-13 Thread Martin Gainty
Subject: RE: Problem while using logic:iterate Debug your code. Make sure that your listvo should exist. Use scriplet and use println to verify the object status using in logic iterate. The problem lies with code written in action class. -Original Message- From: santas [mailto:[EMAIL

RE: Problem while using logic:iterate

2006-11-13 Thread santas
, November 13, 2006 5:33 PM To: user@struts.apache.org Subject: RE: Problem while using logic:iterate HI i tried what u said but stil the same error is shown to me i have set the list with key users then i first check logic:present name=users table tr th/th th/th /tr

Re: Problem while using logic:iterate

2006-11-13 Thread santas
Thank You All for your great support,help and valueable time finally it is working now, today i learned a lot from you all about logic:iterate tag Thank You once again Puneet Lakhina wrote: On 11/13/06, Eider Iturbe [EMAIL PROTECTED] wrote: Hi, You mustn´t add an ArrayList in request

Console error message for a working logic:iterate tag

2006-11-13 Thread Bradley Wagner
I'm not too worried about this because it seems to be working, but here goes. I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has the following section in it. ul logic:iterate name=accountInformationForm property=accounts id=accountSummaryView li

RE: Console error message for a working logic:iterate tag

2006-11-13 Thread Mano Chinthaka Dasanayaka
14, 2006 5:06 AM To: user@struts.apache.org Subject: Console error message for a working logic:iterate tag I'm not too worried about this because it seems to be working, but here goes. I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has the following section in it. ul

Re: Console error message for a working logic:iterate tag

2006-11-13 Thread Bradley Wagner
Hi Brad, Double check your Struts-config whether u have set the scope=session for this action. And also try using simple Bean writes before using html:link For link creations... Regards, Mano The struts config file uses scope=request for this action. I tried adding a bean:write before

Re: Console error message for a working logic:iterate tag

2006-11-13 Thread Bradley Wagner
Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: Console error message for a working logic:iterate tag

2006-11-13 Thread Mano Chinthaka Dasanayaka
logic:iterate tag Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL

RE: Console error message for a working logic:iterate tag

2006-11-13 Thread Mano Chinthaka Dasanayaka
error message for a working logic:iterate tag Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 10:11 AM To: Struts Users Mailing List Subject

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Pankaj Gupta
, Jim (RBoS ITDS Dublin) [EMAIL PROTECTED] wrote: Hi, I've discovered the answer, although it may not be the most elegant. Rather than having one form, have one form per row. This is achieved by placing the html:form tags inside the logic:iterate ones, then the html:hidden

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Chris Pratt
per row. This is achieved by placing the html:form tags inside the logic:iterate ones, then the html:hidden tag will contain the correct value when the button is pressed. Thanks Regards, Jim

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-11-07 Thread Pankaj Gupta
List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them What do you get when you try it? (*Chris*) On 11/7/06, Pankaj Gupta [EMAIL PROTECTED] wrote: I am

Re: Issue: using logic:iterate to display rows and html:button to dis tinguish one of them

2006-11-07 Thread WongTseng
to replace the hidden elements,and only one delete button is enough. 2006/10/26, Gallagher, Jim (RBoS ITDS Dublin) [EMAIL PROTECTED]: Hi Apologies if this is a simple issue, but it's driving me insane. In my web app (using Struts 1.1 on Java 1.4 Websphere) I have a jsp that is using logic:iterate

Issue: using logic:iterate to display rows and html:button to dis tinguish one of them

2006-10-26 Thread Gallagher, Jim (RBoS ITDS Dublin)
Hi Apologies if this is a simple issue, but it's driving me insane. In my web app (using Struts 1.1 on Java 1.4 Websphere) I have a jsp that is using logic:iterate to display a sequence of records. On each row I have a Delete button, which should cause the object that row represents

R: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Marcello Savino
ITDS Dublin) [mailto:[EMAIL PROTECTED] Inviato: giovedì 26 ottobre 2006 12.02 A: 'user@struts.apache.org' Oggetto: Issue: using logic:iterate to display rows and html:button to distinguish one of them Hi Apologies if this is a simple issue, but it's driving me insane. In my web app (using

R: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Marcello Savino
originale- Da: Gallagher, Jim (RBoS ITDS Dublin) [mailto:[EMAIL PROTECTED] Inviato: giovedì 26 ottobre 2006 12.02 A: 'user@struts.apache.org' Oggetto: Issue: using logic:iterate to display rows and html:button to distinguish one of them Hi Apologies if this is a simple issue, but it's driving me

RE: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Gallagher, Jim (RBoS ITDS Dublin)
Mailing List Subject: R: Issue: using logic:iterate to display rows and html:button to distinguish one of them *** WARNING : This message originates from the Internet *** Sorry i forgot something in my code c:url value=/delete.do var=urldel c:param name=idToDeletebean:write name=index property

RE: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Gallagher, Jim (RBoS ITDS Dublin)
Hi, I've discovered the answer, although it may not be the most elegant. Rather than having one form, have one form per row. This is achieved by placing the html:form tags inside the logic:iterate ones, then the html:hidden tag will contain the correct value when the button

Re: Issue: using logic:iterate to display rows and html:button to distinguish one of them

2006-10-26 Thread Chris Pratt
not be the most elegant. Rather than having one form, have one form per row. This is achieved by placing the html:form tags inside the logic:iterate ones, then the html:hidden tag will contain the correct value when the button is pressed. Thanks

Re: iterating of collection of HashMapsusing logic:iterate

2006-10-13 Thread Puneet Lakhina
On 10/13/06, Vinod Kumar [EMAIL PROTECTED] wrote: Hi All, I have hashmap with key/value but the value in this hashmap is another hashmap. How can I iterate over all the values using logic:iterate. HashMap h1 = new HashMap(); String id=1; HashMap h2 = new HashMap(); h2.put(id,123); h2.put

RE: iterating of collection of HashMapsusing logic:iterate

2006-10-13 Thread Bruno Melloni
I think you need nested:iterate instead of logic:iterate in the inner tag. But please correct me if I'm wrong. -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 1:58 PM To: Struts Users Mailing List Subject: Re: iterating of collection

Re: iterating of collection of HashMapsusing logic:iterate

2006-10-13 Thread Vinod Kumar
logic:iterate. HashMap h1 = new HashMap(); String id=1; HashMap h2 = new HashMap(); h2.put(id,123); h2.put(key1,456); h2.put(key2,789); then I make entry to h1 like h1.put(id,h2) and so on...more entries added to h1. Now I want to iterate thru all the values of h1

iterating of collection of HashMapsusing logic:iterate

2006-10-12 Thread Vinod Kumar
Hi All, I have hashmap with key/value but the value in this hashmap is another hashmap. How can I iterate over all the values using logic:iterate. HashMap h1 = new HashMap(); String id=1; HashMap h2 = new HashMap(); h2.put(id,123); h2.put(key1,456); h2.put(key2,789); then I make entry to h1

RE: iterating of collection of HashMapsusing logic:iterate

2006-10-12 Thread Pradyumna kumar, Jena \(J.\)
or in the inner iterate have both name set to entry and property to value From: Vinod Kumar [mailto:[EMAIL PROTECTED] Sent: Fri 10/13/2006 6:29 AM To: user@struts.apache.org Subject: iterating of collection of HashMapsusing logic:iterate Hi All, I have hashmap

RE: iterating of collection of HashMapsusing logic:iterate

2006-10-12 Thread Vinod Kumar
Thanks Pradyumna !! I am able to make it work as suggested by you. Thanks Vinod --- Pradyumna kumar, Jena (J.) [EMAIL PROTECTED] wrote: try somethin like this logic:iterate id=currentEntry collection=h1 % Map cuurentMap=((Map.Entry )currentEntry).getvalue

iterating Vector of HashMap using Logic:iterate

2006-09-21 Thread Venkata Phani Kumar
logic:iterate Regards Venkata Phanikumar. G

R: iterating Vector of HashMap using Logic:iterate

2006-09-21 Thread Marcello Savino
: iterating Vector of HashMap using Logic:iterate Hi, I have a VectorHashMap. Each HashMap holds two elements as key 'field1' and 'filed2'. Now in jsp page i have to iterate over above vector and have to construt one combo box as below select name= option value=field1field2/option /select could any

Re: iterating Vector of HashMap using Logic:iterate

2006-09-21 Thread Chris Pratt
/select could any body help how to display as above using logic:iterate Regards Venkata Phanikumar. G

[help] html-el:select in logic:iterate loop

2006-09-11 Thread Garner Shawn
I have a html-el:select in a logic loop and the values are not being retained after submtitting the form and returning with a validation action error. The html-el:text fields values are being retained and they are in the exact same object. logic:iterate id=address type=mypackage.AddressVO name

Re: [help] html-el:select in logic:iterate loop

2006-09-11 Thread Garner Shawn
, Garner Shawn [EMAIL PROTECTED] wrote: I have a html-el:select in a logic loop and the values are not being retained after submtitting the form and returning with a validation action error. The html-el:text fields values are being retained and they are in the exact same object. logic:iterate id

Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Florian Barth
contains. At the moment I can online write out the elements using this code-snippet: logic:iterate name=FormBean property=stringList id=str bean:write name=str / /logig:iterate Just putting in html:text name=str property=fooBar doesn't work, because the str-String-Object doesn't have getter or setter

Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Dave Newton
Florian Barth wrote: Looks very nice, but the textfield accesses the getter and setter of the LabelValueBean that is returned from the StrinBean. My Bean just returns the the String-object that has actually no getter and setter for it's value. Let me get this straight: you're iterating over

Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Florian Barth
The list of strings is actually part of an ActionForm. On load of display I kinda like to decompose the list to a bunch of text-fields, that are recomposed to a list of string on submit c:forEach items=${listOstrings} var=s input type=text name=${s} /c:forEach I'll try this, maybe the

Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Florian Barth
I tried to do it with your piece of code, but that didn't quite work I think one solution would be to write a StringWrapper with a String-Value and the according getter/setter (e.g. getVal, setVal) and fill the list with this StringWrappers instead of Strings, so html:text

Problem with logic:iterate and List of Strings

2006-06-13 Thread Florian Barth
: logic:iterate name=FormBean property=stringList id=str bean:write name=str / /logig:iterate Just putting in html:text name=str property=fooBar doesn't work, because the str-String-Object doesn't have getter or setter for it's value, so I didn't find an substitute for fooBar that works. I pretty sure

Re: Problem with logic:iterate and List of Strings

2006-06-13 Thread Rahul Akolkar
out the elements using this code-snippet: logic:iterate name=FormBean property=stringList id=str bean:write name=str / /logig:iterate Just putting in html:text name=str property=fooBar doesn't work, because the str-String-Object doesn't have getter or setter for it's value, so I didn't find

html:text inside logic:iterate ....

2006-06-04 Thread Li
user's input. My current solution is: logic:iterate id=itemInList1' name=AppBean property=List1 indexId=index html:text name=AppBean property='%= List2[ + index + ] %'/ /logic:iterate But it seems not working properly, List2[index] is NULL Any suggestions?

Logic:Iterate HashMap

2006-06-02 Thread Marco Mistroni
Hi all, I m having a problem with logic:iterate I have a Map that contains{String, MyDTO} In my jsp I m writing following code; logic:iterate name=%= MyMap % id=stock tr tdbean:write name=stock property=key//td tdbean:write name

Re: Logic:Iterate HashMap

2006-06-02 Thread Monkeyden
PROTECTED] wrote: Hi all, I m having a problem with logic:iterate I have a Map that contains{String, MyDTO} In my jsp I m writing following code; logic:iterate name=%= MyMap % id=stock tr tdbean:write name=stock property=key//td tdbean:write name

Re: Basic Logic:iterate question

2006-05-11 Thread siva sajja
Logic iterate can be used only over a collection of elements. Check whether the property userRoles in the bean returned by LookUpConstants.SESSION_OBJECT is a collection. Also the property names used in bean:write(role) is different from the property name used in logic:iterate(userRoles) which I

RE: Basic Logic:iterate question

2006-05-11 Thread nageshkumar.siddu
Hi, If you are using logic equal , you should also use logic not equal. Regards, Nagesh -Original Message- From: siva sajja [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:08 PM To: Struts Users Mailing List Subject: Re: Basic Logic:iterate question Logic iterate can be used

Basic Logic:iterate question

2006-05-10 Thread josh t
: logic:iterate id=role name=%=LookupConstants.SESSION_OBJECT% property=userRoles scope=session logic:equal name=role property=SUPER a href=test.do class=BodyLinkbtest/b/abr / /logic:equal

RE: Basic Logic:iterate question

2006-05-10 Thread Patil, Sheetal
@struts.apache.org Subject: Basic Logic:iterate question Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals SUPER include a href. So this is what I have

RE: Basic Logic:iterate question

2006-05-10 Thread josh t
Thanks. Does anyone know where I can get some good reference material on Struts Tags? Patil, Sheetal [EMAIL PROTECTED] wrote: Hi there As my best knowledge your And supports for either int or boolean -Original Message- From: josh t [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11,

re: Basic Logic:iterate question

2006-05-10 Thread Kyle Wu
why not use logic:match tag instead? josh t [EMAIL PROTECTED] wrote: Greetings everyone: Objective: Retrieve an object from the session that contains a Collection of String for userRoles. Iterate through userRoles, and if one of the roles equals SUPER include a href. So this

RE: Basic Logic:iterate question

2006-05-10 Thread David Evans
This may help: http://struts.apache.org/struts-action/struts-taglib/index.html You may also want to consider using the jstl tags. i think the struts logic tags may be depreciated in favor of jstl. the jstl tags to solve your problem are c:forEach and c:if and the documentation is here:

Re: logic:empty and logic:iterate

2006-04-18 Thread Antonio Petrelli
Naveen Sharma ha scritto: Hi ! Can someone Please help me with the logic:empty. I am not able to implement it Be less dumb please... the more you write, the better we can help - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: logic:empty and logic:iterate

2006-04-18 Thread Neil Meyer
: logic:empty and logic:iterate Hi ! Can someone Please help me with the logic:empty. I am not able to implement it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: logic:empty and logic:iterate

2006-04-18 Thread Ahmed Hashim
Naveen, http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#logic:empty -- Ahmed Hashim www.egjug.org www.egjug.org\hashimblog On 4/18/06, Naveen Sharma [EMAIL PROTECTED] wrote: Hi ! Can someone Please help me with the logic:empty. I am not able to implement it -- In

RE: logic:empty and logic:iterate

2006-04-18 Thread Moreno Herranz, Jose Luis
/2006 11:56 Para: user@struts.apache.org Asunto: logic:empty and logic:iterate Hi ! Can someone Please help me with the logic:empty. I am not able to implement it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: logic:empty and logic:iterate

2006-04-18 Thread Leon Rosenberg
!datosPersona.getReferencia().trim().equals()){ % td../td % else{% td../td }% De: Naveen Sharma [mailto:[EMAIL PROTECTED] Enviado el: mar 18/04/2006 11:56 Para: user@struts.apache.org Asunto: logic:empty and logic:iterate Hi ! Can

logic:iterate offset and length dinamicaly

2006-03-22 Thread Yariel Ramos Moreno
How can I set the offset and length properties of the logic:iterate struts tag dinamicaly? I mean, maybe getting the values from the session or a bean... Regards, Yariel.

Re: logic:iterate offset and length dinamicaly

2006-03-22 Thread Michael Jouravlev
=com.acme.Subscription ... /logic-el:iterate I have session-scoped ActionForm and store parameters in it. Michael On 3/22/06, Yariel Ramos Moreno [EMAIL PROTECTED] wrote: How can I set the offset and length properties of the logic:iterate struts tag dinamicaly? I mean, maybe getting the values from

AW: ActionForm with ArrayList and logic:iterate .... confusing problem ...

2006-03-08 Thread Hans-Peter Petek
Users Mailing List Betreff: Re: ActionForm with ArrayList and logic:iterate confusing problem ... Hans, You're using request scope for your form. When Struts processes the submitted form, it will create a new instance of your ActionForm. The question now is, is the new instance ready to deal

Re: ActionForm with ArrayList and logic:iterate .... confusing problem ...

2006-03-06 Thread Hubert Rabago
Hans, You're using request scope for your form. When Struts processes the submitted form, it will create a new instance of your ActionForm. The question now is, is the new instance ready to deal with setting values on your ArrayList field? Struts will not instantiate that list for you, it

AW: AW: logic:iterate

2006-02-24 Thread Hans-Peter Petek
]: java.lang.NullPointerException In this example, logic:iterate id=right name=authRightForm property=objectNames right and objectName must be the same, or not? objectNames is the ArrayList (or Array) of my right-objects, but with which property is id mapping? because i get in the request the names

Re: AW: logic:iterate

2006-02-24 Thread Kjersti Berg
]: java.lang.NullPointerException In this example, logic:iterate id=right name=authRightForm property=objectNames right and objectName must be the same, or not? objectNames is the ArrayList (or Array) of my right-objects, but with which property is id mapping? because i get in the request the names right[xx

Fwd: AW: AW: logic:iterate

2006-02-24 Thread Brian Holzer
**DISCLAIMER** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this

logic:iterate

2006-02-23 Thread Hans-Peter Petek
is the problem again, maybe someone knows a good doc or has an idea ...? I have modified the iteration from logic:iterate id=right ... to logic:iterate id=rightlist_ary ... because that's my array I want to have filled, but after submitting the form I get ... [BeanUtils.populate

Fwd: logic:iterate

2006-02-23 Thread Brian Holzer
**DISCLAIMER** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this

RE: logic:iterate

2006-02-23 Thread Robert Alexandersson
: Fwd: logic:iterate Hey Hans, I think you might want to use the nested tags for what you are trying to do. Depending on the version of struts you are using, the nested taglib could be included with the Struts distribution. Here is a link to some tutorials etc. on the nested tags http

AW: logic:iterate

2006-02-23 Thread Hans-Peter Petek
it? thanks in advance Hans _ Von: Brian Holzer [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 23. Februar 2006 15:15 An: struts-user@jakarta.apache.org Betreff: Fwd: logic:iterate Hey Hans, I think you might want to use the nested tags for what you are trying to do. Depending

Fwd: AW: logic:iterate

2006-02-23 Thread Brian Holzer
**DISCLAIMER** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this

struts logic:iterate ---- c:forEach of JSTL

2006-01-03 Thread fea jabi
.Items} tr td html:multibox name=Form1 property=selectedItems bean:write name=item property=value/ /html:multibox bean:write name=item property=label/ /td /tr /c:forEach /table It works fine with the logic:iterate tag. Only when trying to use JSTL

RE: struts logic:iterate ---- c:forEach of JSTL

2006-01-03 Thread George.Dinwiddie
Have you tried using c:out instead of bean:write? -Original Message- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 11:37 AM To: user@struts.apache.org Subject: struts logic:iterate c:forEach of JSTL In struts config file I have it as form-bean

Re: Problems with logic:iterate

2005-11-29 Thread Danny Lee
Next time check documentation for this kind of questions. logic:iterate name=adminFormBean property=anulFarms id=oneFarm b Farm Number ${oneFarm.number} Name is - ${oneFarm.name}/b br /logic:iterate Cheers, Danny Eider Iturbe schrieb: I don't know how to implement in jsp the code

html:select and logic:iterate

2005-11-28 Thread Stanislav
=hmUserPrijenosList logic:iterate id=hmUserPrijenos name=hmUserPrijenosList html:option value=bean:write name='hmUserPrijenos' property='user-podatak-2-0'/bean:write name='hmUserPrijenos' property='user-podatak-1-0'//html:option /logic:iterate /logic:present /html:select /td When I'm hiting submit button

RE: [Maybe Spam] html:select and logic:iterate

2005-11-28 Thread Kanuri, Chand
2005 10:20 To: user@struts.apache.org Subject: [Maybe Spam] html:select and logic:iterate I have problem with this part of code: td class=Podaci align=right html:select property=vrstaKredita styleClass=Podaci html:option value=/html:option html:option value

RE: [Maybe Spam] html:select and logic:iterate

2005-11-28 Thread Stanislav
remove logic present. it works. by the way how can you get that list(hmUserPrijenosList) back in action from the request.i have that problem. is there any way to get that in the action class. cheers. After removing logic present everything is still the same :-( answer to your

RE: [Maybe Spam] html:select and logic:iterate

2005-11-28 Thread Kanuri, Chand
] html:select and logic:iterate remove logic present. it works. by the way how can you get that list(hmUserPrijenosList) back in action from the request.i have that problem. is there any way to get that in the action class. cheers. After removing logic present everything is still the same

RE: [Maybe Spam] html:select and logic:iterate

2005-11-28 Thread Stanislav
- Original Message Follows - how can you get it from the session in the action class(not in the jsp). as http wrappers return only strings or string arrays. first i make one big class like: import java.io.Serializable; public class User implements Serializable {

RE: html:select and logic:iterate

2005-11-28 Thread Stanislav
logic:iterate id=hmUserPrijenos name=hmUserPrijenosList bean:define id=xyz name=hmUserPrijenos property=user-podatak-2-0/ html:option value=xyzbean:write name='hmUserPrijenos' property='user-podatak-1-0'//html:option /logic:iterate /logic:present /html:select /td If I do this, than i get several

RE: html:select and logic:iterate

2005-11-28 Thread Stanislav
I hope this will surely work for you. If not please send me the error what u r getting. so i can figure it out what's happening really... td class=Podaci align=right html:select property=vrstaKredita styleClass=Podaci html:option

Problems with logic:iterate

2005-11-28 Thread Eider Iturbe
Hi, I've defined in a formBean called adminFormBean this: private List anulFarms = new ArrayList(); public void setAnulFarms(int key, long anulFarm) { this.anulFarms.add((long) anulFarm); } public long getAnulFarms(int key) { return (Long)anulFarms.get(key); }

Re: Problems with logic:iterate

2005-11-28 Thread Michael Jouravlev
On 11/28/05, Eider Iturbe [EMAIL PROTECTED] wrote: Hi, I've defined in a formBean called adminFormBean this: private List anulFarms = new ArrayList(); public void setAnulFarms(int key, long anulFarm) { this.anulFarms.add((long) anulFarm); } public long

Re: Problems with logic:iterate

2005-11-28 Thread Eider Iturbe
I don't know how to implement in jsp the code logic:iterate id=... to read all the values of the arraylist, Eider - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Collection and logic:iterate

2005-11-24 Thread Per Jørgen Walstrøm
hello, is the following true? 1) if I do a logic:iterate over a Collection when viewing the items in the Collection, I can use e.g. a HashSet 2) if I do a logic:iterate over a Collection and I want to be able to also update the items, I need to use an indexable Collection, e.g. an ArrayList

Re: Collection and logic:iterate

2005-11-24 Thread Laurie Harper
Per Jørgen Walstrøm wrote: hello, is the following true? 1) if I do a logic:iterate over a Collection when viewing the items in the Collection, I can use e.g. a HashSet 2) if I do a logic:iterate over a Collection and I want to be able to also update the items, I need to use an indexable

Re: ArrayList, Arrays and logic:iterate/

2005-11-18 Thread Jon Wynacht
Thanks! I went with my original setup and things are working well. A bit more coding than I wanted but that's OK ;-) On Nov 17, 2005, at 5:36 PM, Michael Jouravlev wrote: On 11/17/05, Jon Wynacht [EMAIL PROTECTED] wrote: Hi, I have a question that might have already been answered but I

Re: ArrayList, Arrays and logic:iterate/

2005-11-17 Thread Laurie Harper
Jon Wynacht wrote: ... You see, when I iterate through the ArrayList, I do something like this: logic:iterate id=event name=AddEventGroup property=events html:text name=AddEventGroup property=eventDuration value=bean:write name='event' property='aDuration'/ .. /logic For starters

Re: ArrayList, Arrays and logic:iterate/

2005-11-17 Thread Michael Jouravlev
On 11/17/05, Jon Wynacht [EMAIL PROTECTED] wrote: Hi, I have a question that might have already been answered but I wasn't sure how to search for the answer, etc. so I'll ask it and take the abuse, if given ;-) I have a form which is set up to have N number of line items. Initially,

logic:iterate REVERSE?

2005-11-07 Thread arnaud gonzales
Hello, I'm searching the manner to do a reverse iteration, any idea ? Thanks in advance -- Cordialement, Arnaud Gonzales.

logic:iterate and html:radio

2005-11-02 Thread Bijay Sahoo
of check boxes. I can use logic:iterate to iterate over the questions but how to group these multiple choices for each question into one group of radio button, what i dont understand is how to generate the group names dynamically !! ?? Any suggestion will be appreciated. Thanks in advance. Bijay

Re: logic:iterate and html:radio

2005-11-02 Thread Raghu Kanchustambham
.. for each question i have 3 multiple choice. Now, i have to group these multiple choices for each question into one group of check boxes. I can use logic:iterate to iterate over the questions but how to group these multiple choices for each question into one group of radio button, what i dont

Re: Problem with logic:iterate (and nested:iterate) and indexed form items - Help required

2005-10-30 Thread Mike Manley
Murray, Many thanks - I had totally missed indexId. This makes it so easy! Mike Murray Collingwood wrote: Hi Mike Thats easy. Outer loop needs to specify the indexId parameter as in: logic:iterate name=applicationForm property=familymembers id=familymmber type=application.FamilyMember

Re: Problem with logic:iterate (and nested:iterate) and indexed form items - Help required

2005-10-29 Thread Mike Manley
Thanks for that - but I think I've not explained my problem properly. The problem is that the bean containing the data is NOT the one in the inner loop but the bean iterated through in the outer loop: logic:iterate name=applicationForm property=familymembers id=familymmber type

Re: Problem with logic:iterate (and nested:iterate) and indexed form items - Help required

2005-10-29 Thread Murray Collingwood
Hi Mike Thats easy. Outer loop needs to specify the indexId parameter as in: logic:iterate name=applicationForm property=familymembers id=familymmber type=application.FamilyMember indexId=memberIndex Then you can use whatever inner loop (or loops) you want. logic:iterate something else

Problem with logic:iterate (and nested:iterate) and indexed form items - Help required

2005-10-28 Thread Mike Manley
Hi, I have a problem trying to create a multi row edit form which has to be able to dynamically decide which columns should be displayed for edit. My jsp uses the code below. logic:iterate name=applicationForm property=familymembers id=familymembers tr logic:iterate

Re: Problem with logic:iterate (and nested:iterate) and indexed form items - Help required

2005-10-28 Thread Murray Collingwood
documentation. So, outer loop should be: logic:iterate name=applicationForm property=familymembers id=familymember type=controller.form.FamilyMemberForm Then we can add the inner loop in a similar manner, referencing the 'familymember' defined in the outerloop: logic:iterate name=familymember

<    1   2   3   4   >