logic:iterate

2004-03-16 Thread Daniel
How can I make to print 3 coluns for line with iterate, the modulos is a ArrayList populate with myBean (atributes:modulo_nome,modulo_path) objects , the problem is divide it in 3 coluns for line.Here my source code : logic:iterate id=listModulos name=modulos indexId=index % int line

Re: logic:iterate

2004-03-16 Thread as as
Daniel, A litle bit more info on what the columns are holding... becuase can you make them rows...then logic:iterate is easy to use... -Sam. Daniel [EMAIL PROTECTED] wrote: How can I make to print 3 coluns for line with iterate, the modulos is a ArrayList populate with myBean

Re: please help, using logic:iterate and html:form

2004-03-16 Thread as as
decided to explain detailedly and completely of what I did and hope you nice buddies can help me find the problem goal: I want to submit an array of Fonbean(java class file listed below) to an action strategy: I decide to use html:form and logic:iterate to do this 1.what I have in my

Re: logic:iterate

2004-03-16 Thread Daniel
%int rest=3;% logic:iterate id=listModulos name=modulos indexId=index % int line = index.intValue() % 3; % %=linha% logic:equal name=%=line% value=%=rest% Printed br /logic:equal

please help, using logic:iterate and html:form

2004-03-15 Thread Mu Mike
buddies can help me find the problem goal: I want to submit an array of Fonbean(java class file listed below) to an action strategy: I decide to use html:form and logic:iterate to do this 1.what I have in my configruation xml form-beans form-bean name=testBeanForm type

logic:iterate with 2 class harnessed by one Object

2004-03-03 Thread javapop
Hi I made a select in Hibernate, which comes back me a Collection of two classes, own Hibernate set up like this for each item of Collection an Array of Objects to harness the relationship of these classes, now, I wanted to know as I make the logic: iterate of this Structure? Object[2]

calculating sum inside logic:iterate

2004-03-02 Thread Marco Mistroni
Hi all, I have a colletion of items that have a method called price. I was wandering if I could calculate the total of all prices via struts Tags rather than using java code... Anyone has any ideas? Thanx in advance and regards marco

Re: calculating sum inside logic:iterate

2004-03-02 Thread Mark Lowe
Depends how you've done things. If your items are nested in a form (indexed/mapped proerties) you could have a total that is calculated there. Thus no need to do it in an action or a jsp. On 2 Mar 2004, at 17:18, Marco Mistroni wrote: Hi all, I have a colletion of items that have a

Re: calculating sum inside logic:iterate

2004-03-02 Thread Nick Wesselman
Technically this seems to be a business method, logic that would be better handled in your model code. So for example you have a ShoppingCart class which has a getItems() method to get your collection of items and a getTotal() method to add their prices. Not the answer you're looking for I

Re: calculating sum inside logic:iterate

2004-03-02 Thread Mark Lowe
I see what you're saying. But at the same time, if you wanted to develop a shopping cart that you could plug onto any model. Then IMO calculating in a web tier bean say an action form isn't the most evil thing in the world. I agree entirely that the total should be calculated in the model,

Re: (Fwd) row counts in logic:iterate...

2004-02-26 Thread Niall Pemberton
Because ctr is an Integer object - not a int primitive. Niall - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 26, 2004 5:13 PM Subject: (Fwd) row counts in logic:iterate... Sorry, my mailer messed up the last one, so here again

row counts in logic:iterate...

2004-02-26 Thread [EMAIL PROTECTED]
colorparam0100,0100,0100/paramnewbie question: I have a jsp which displays several rows with a logic:iterate, also using the indexId-tag. colorparam7F00,,7F00/paramFontFamilyparamCourier New/paramlogic:iteratecolorparam,,/param colorparam,7F00,

Re: (Fwd) row counts in logic:iterate...

2004-02-26 Thread Geeta Ramani
Rinke: Your ctr seems to be an *Integer* object and you are using it as an int. So simply say: ctr.intValue() + 1 and you should be ok. Geeta [EMAIL PROTECTED] wrote: Then why do i get this error? operator + cannot be applied to java.lang.Integer, int [javac] out.print( ctr + 1 ); Rinke

RE: (Fwd) row counts in logic:iterate...

2004-02-26 Thread Jarnot Voytek Contr AU/SC
materiari? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 11:13 AM To: [EMAIL PROTECTED] Subject: (Fwd) row counts in logic:iterate... Sorry, my mailer messed up the last one, so here again... newbie question: I have a jsp

Re: (Fwd) row counts in logic:iterate...

2004-02-26 Thread Michael McGrady
2/26/2004, you wrote: Sorry, my mailer messed up the last one, so here again... newbie question: I have a jsp which displays several rows with a logic:iterate, also using the indexId-tag. logic:iterate name=dateForm property=raw id=foo indexId=ctr I'd like to display row numbers in my table

RE: row counts in logic:iterate...

2004-02-26 Thread Robert Taylor
First: Please do not send HTML emails to the list. Now to address your question: JSTL makes this easy. c:forEach var=item items=${form.items} varStatus=status tr tdc:out value=${status.count}//td tdc:out value=${item.someValue}//td /tr /c:forEach Using Struts tags: logic:iterate id=item name

Re: (Fwd) row counts in logic:iterate...

2004-02-26 Thread Michael McGrady
question: I have a jsp which displays several rows with a logic:iterate, also using the indexId-tag. logic:iterate name=dateForm property=raw id=foo indexId=ctr I'd like to display row numbers in my table. But the ctr-variable is 0- based, and I would like to present 1 as the first number to my users

RE: row counts in logic:iterate...

2004-02-26 Thread Paul, R. Chip
PROTECTED] Subject: RE: row counts in logic:iterate... First: Please do not send HTML emails to the list. Now to address your question: JSTL makes this easy. c:forEach var=item items=${form.items} varStatus=status tr tdc:out value=${status.count}//td tdc:out value=${item.someValue}//td /tr

RE: row counts in logic:iterate...

2004-02-26 Thread Robert Taylor
Dohhh! You are correct. I mistyped :) robert -Original Message- From: Paul, R. Chip [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:11 PM To: 'Struts Users Mailing List' Subject: RE: row counts in logic:iterate... Shouldn't that be %= index.intValue() + 1

(Fwd) row counts in logic:iterate...

2004-02-26 Thread [EMAIL PROTECTED]
Sorry, my mailer messed up the last one, so here again... newbie question: I have a jsp which displays several rows with a logic:iterate, also using the indexId-tag. logic:iterate name=dateForm property=raw id=foo indexId=ctr I'd like to display row numbers in my table. But the ctr

Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread Niall Pemberton
Inside the logic:iterate the beans returned by your getRaw() method should be exposed with the name you specify in the iterate's 'id' attribute. So something along the lines of. logic:iterate name=dateForm property=raw id=foo indexId=ctr tr tdbean:write name=ctr //td

Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread [EMAIL PROTECTED]
, but it will work I guess: just put everything, all different fields, in one long array, in stead of working with the array[0].fieldname option. rinke On 25 Feb 2004, at 10:00, Niall Pemberton wrote: Inside the logic:iterate the beans returned by your getRaw() method should be exposed

Re: error no getter method defined while inside logic:iterate

2004-02-25 Thread Niall Pemberton
(,,,); - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 1:11 PM Subject: Re: error no getter method defined while inside logic:iterate Hi Niall, List thanks for you answer. I tried out you suggestion (literary

error no getter method defined while inside logic:iterate

2004-02-24 Thread [EMAIL PROTECTED]
/ where dateform is the name of my action form, and rawRecord is the array in which the RawRecord beans reside. However, as soon as I put this inside a logic:iterate loop, all goes wrong: I get the following error: No getter for property time of bean org.apache.struts.taglib.html.BEAN

logic:iterate, checkboxes, and arrays of selected values...

2004-02-24 Thread MichaelBoucher
of information from each row before I can delete it. My kludge is to have the value of the checkboxes be the indexId of the logic:iterate. Each row has two hidden input fields, with the two required key values. Something like this: logic:iterate id=item name=listForm property=txnList type =Transaction

RE: logic:iterate, checkboxes, and arrays of selected values...

2004-02-24 Thread Michael D. Norman
/ 913-390-6951 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 8:51 AM To: [EMAIL PROTECTED] Subject: logic:iterate, checkboxes, and arrays of selected values... Hi folks, I have a problem which I have

Re: logic:iterate, checkboxes, and arrays of selected values...

2004-02-24 Thread Lynn Guy
pieces of information from each row before I can delete it. My kludge is to have the value of the checkboxes be the indexId of the logic:iterate. Each row has two hidden input fields, with the two required key values. Something like this: =Transaction indexId=counter [input] name=selectedTxns

Logic:iterate Exception

2004-02-20 Thread Randy Dillon
I have logic that looks like this: % int n = 0; String strCat = ( (String[]) parms.get(cboCategory) )[n]; out.println(strCat + strCat + strCat); % logic:iterate id=cat indexId=i name=parms property=cboCategory logic:greaterThan value=0 name=i, /logic:greaterThan

RE: Logic:iterate Exception

2004-02-20 Thread Randy Dillon
12:48 PM :- To: 'Struts Users Mailing List' :- Subject: Logic:iterate Exception :- :- :- I have logic that looks like this: :- :- % int n = 0; :-String strCat = ( (String[]) parms.get(cboCategory) )[n]; :-out.println(strCat + strCat + strCat); :- % :- logic:iterate id=cat indexId=i

using logic:iterate

2004-02-19 Thread Chaminda Fernando
I am trying to use logic:iterator tag as follows.Try to give dynamic values for offset and length attributes. logic:iterate id =emp name=EmpList offset=index length=length EmpList,index and length values are set properly in session . But this throws following exception

easy question... logic:iterate

2004-02-19 Thread struts
I have the following code: logic:iterate id=users name=userInfo bean:write name=users property=userName/ /logic:iterate How can i get the first record ? Something like bean:define name=userInfo[0] property=userName/ but thats not working, any idea ? Thanks

nested logic:iterate with logic:equal

2004-02-19 Thread Ciaran Hanley
Can anybody help me with this problem? I have two arraylists of beans in my session, I am trying to iterate through them and when an element in one bean equals an element in the second bean print it out logic:iterate id=ElementOne name=currentElementOneValues logic:iterate id=ElementTwo

RE: easy question... logic:iterate

2004-02-19 Thread Slattery, Tim - BLS
I have the following code: logic:iterate id=users name=userInfo bean:write name=users property=userName/ /logic:iterate How can i get the first record ? JSTL makes this easy: c:out value=${userInfo[0].userName} / Or, to write out only the first one while iterating the loop

Re: using logic:iterate

2004-02-19 Thread Janarthan Sathiamurthy
Try This - logic:iterate id =emp name=EmpList offset=%= indexVar % length=%= lengthVar % Regards, Janarthan S Chaminda Fernando [EMAIL PROTECTED] wrote: I am trying to use EmpList,index and length values are set properly in session . But this throws following exception

logic:iterate question

2004-02-06 Thread Turner Benjamin
hello, i have a question about the logic:iterate tag. My tag iterates over an ArrayList which contains an amount of beans. However, in the last iteration i want to perform some special action. My current code looks something like this: logic:iterate id=foo name=bar scope=session indexId=index

AW: logic:iterate question

2004-02-06 Thread Otto, Frank
Hello Ben, you can do this in this way: logic:iterate id=foo name=bar scope=session indexId=index ... logic:equal value=%=bar.length-1% name=index ... /logic:equal /logic:iterate Regards, Frank -Ursprüngliche Nachricht- Von: Turner Benjamin [mailto:[EMAIL

AW: logic:iterate question

2004-02-06 Thread Otto, Frank
Sorry, I mean: foo.length-1 instead bar.length-1 -Ursprüngliche Nachricht- Von: Otto, Frank [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. Februar 2004 10:41 An: 'Struts Users Mailing List' Betreff: AW: logic:iterate question Hello Ben, you can do this in this way: logic:iterate id

RE: logic:iterate question

2004-02-06 Thread Turner Benjamin
hi otto, that solution didnt work - it wouldn't recognise bar as a variable in the %= %. this solution does work for me: bean:size id=size name=articles scope=session / ... logic:iterate id=article name=articles scope=session indexId=index ... logic:equal value=%= String.valueOf

RE: logic:iterate question

2004-02-06 Thread Slattery, Tim - BLS
i have a question about the logic:iterate tag. My tag iterates over an ArrayList which contains an amount of beans. However, in the last iteration i want to perform some special action. My current code looks something like this: logic:iterate id=foo name=bar scope=session indexId=index

Re: logic:iterate question

2004-02-06 Thread James Mitchell
: logic:iterate question i have a question about the logic:iterate tag. My tag iterates over an ArrayList which contains an amount of beans. However, in the last iteration i want to perform some special action. My current code looks something like this: logic:iterate id=foo name=bar scope

RE: logic:iterate question

2004-02-06 Thread Slattery, Tim - BLS
shouldn't that be? c:if test=${stat.last} Yes, it sure should. And the first line should be: c:forEach items=${foo.bar} var=bar varStat=stat So the whole thing should look like this: c:forEach items=${foo.bar} var=bar varStat=stat c:if test=${stat.last} do what needs to be

logic:iterate question

2004-02-06 Thread Dragos Madalin Popa
Hi, How can I iterate over a collection which depends of a request parameter? Thank You a lot, Dragos

RE: logic:iterate question

2004-02-06 Thread Wendy Smoak
From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED] How can I iterate over a collection which depends of a request parameter? JSTL and/or Struts-EL can probably help, but I'm not quite sure what your question is. Can you give an example? -- Wendy Smoak Application Systems Analyst, Sr. ASU

RE: logic:iterate question

2004-02-06 Thread Dragos Madalin Popa
logic:iterate id=model name=models property=modelList tr tdbean:write name=model property=name //td tdbean:write name=model property=description //td /tr /logic:iterate From: Dragos Madalin Popa [mailto:[EMAIL PROTECTED] How can I iterate over a collection which depends of a request

RE: logic:iterate question

2004-02-06 Thread Wendy Smoak
of the http request.. logic:iterate id=model name=models property=modelList tr tdbean:write name=model property=name //td tdbean:write name=model property=description //td /tr /logic:iterate I don't think you can pass parameters in JSTL, at least not yet. But you could, in your

RE: logic:iterate question

2004-02-06 Thread Kris Schneider
a request parameter to the modelList function;something like this: public Collection getModelList(String requestString){}, where requestString is a parameter of the http request.. logic:iterate id=model name=models property=modelList tr tdbean:write name=model property=name //td

RE: logic:iterate question

2004-02-06 Thread Kris Schneider
to the modelList function;something like this: public Collection getModelList(String requestString){}, where requestString is a parameter of the http request.. logic:iterate id=model name=models property=modelList tr tdbean:write name=model property=name //td

RE: logic:iterate question

2004-02-06 Thread Michael McGrady
I don't think you can pass parameters in JSTL, at least not yet. But you could, in your action, call getModelList passing the String you got from the request, and then when you forward to the JSP, iterate over that Collection. I am not sure what you meant, Wendy, but, in case you meant that you

logic:iterate ... logic:equal question?

2004-02-02 Thread Derek Colley
property=country labelProperty=description / /html:select font color=redhtml:errors property=country //font /td /tr tr tdCity/td td html:select property=city html:option value=Select a city.../html:option logic:iterate id=City name=CityList property

Re: logic:iterate ... logic:equal question?

2004-02-02 Thread Jiin-Her Lu
/ /html:select font color=redhtml:errors property=country //font /td /tr tr tdCity/td td html:select property=city html:option value=Select a city.../html:option logic:iterate id=City name=CityList property=list type=City

Re: logic:iterate ... logic:equal question? SELECTED ATTRIBUTE

2004-02-02 Thread Jino Morgan
html:select property=city html:option value=Select a city.../html:option logic:iterate id=City name=CityList property=list type=City --- -- logic:equal name=City property=country value

RE: logic:iterate ... logic:equal question? SELECTED ATTRIBUTE

2004-02-02 Thread Derek Colley
Struts does this for you if the value of the SELECT parameter equals the OPTION... Derek -Original Message- From: Jino Morgan [mailto:[EMAIL PROTECTED] Sent: 02 February 2004 17:48 To: Struts Users Mailing List Subject: Re: logic:iterate ... logic:equal question? SELECTED

Re: logic:iterate ... logic:equal question? SELECTED ATTRIBUTE

2004-02-02 Thread Jiin-Her Lu
html:select property=city html:option value=Select a city.../html:option logic:iterate id=City name=CityList property=list type=City --- -- logic:equal name=City property=country value

Regarding : logic:iterate

2004-01-28 Thread Ramachandran
Hi All, Can any one please tell me, how to assign a values to a string using logic:iterate Example:logic:iterate id=maxreqiddetail name=maxreqiddetails /logic:iterate In this iterator, i am having values in the name 'maxreqiddetails as primary_skill

Re: Regarding : logic:iterate

2004-01-28 Thread Raman Garg
Hello, I hope following will resolve your problem: logic:iterate id=maxreqiddetail name=maxreqiddetails % String s=maxreqiddetail.getPrimary_skill(); % /logic:iterate I haven't tested it but i think it will work. Thanks, -- Raman - Original Message - From: Ramachandran [EMAIL

Re: Regarding : logic:iterate

2004-01-28 Thread Nicolas De Loof
Use this : logic:iterate id=maxreqiddetail name=maxreqiddetails bean:define id=s name=maxreqiddetail property=primary_skill/ ... /logic:iterate They're is a JSTL way to do this too, but I don't use it so cannot tell you how. Nico. - Original Message - From: Ramachandran

RE: Regarding : logic:iterate

2004-01-28 Thread Ramachandran
Subject: Re: Regarding : logic:iterate Use this : logic:iterate id=maxreqiddetail name=maxreqiddetails bean:define id=s name=maxreqiddetail property=primary_skill/ ... /logic:iterate They're is a JSTL way to do this too, but I don't use it so cannot tell you how. Nico. - Original

logic:iterate not updating. Need help

2004-01-28 Thread Deepak Mundada
Dear Friends, (B (BI am facing problem in the updating of ActionForm properties from the struts (Bbased jsp page particularly logic:iterate tag. (B (B (B (BWhile initial display the values of my Taisho object is getting displayed (Bproperly using logic:iterate but when I change those

Logic:iterate and logic:equalquestion

2004-01-26 Thread Marco Mistroni
contained in the hashmap logic:iterate id=element name=batchTaskForm property=tasks tr class=workscreen td align=right class=workscreen // Here I got myObject , and its property 'type' bean:write name=element property=value.type/ /td td align=left class=workscreen

Re: Logic:iterate and logic:equalquestion

2004-01-26 Thread Nicolas De Loof
a value of true I want to display button A, while if it is false I want to display button B. For testing purposes I am now displaying some text... I tried with following loop, but seems that is not working properly // Loop thru all the objects contained in the hashmap logic:iterate id

html:radio in logic:iterate

2004-01-19 Thread Russell Healy
Hello Is there an example somewhere of how to correctly use html:radio/ inside logic:iterate/ in Struts 1.1? If not, does anyone know how to use it? What are the following attributes used for: idName value property The tag library docs are very short and hard to understand. This is my code

Logic:iterate and html:text problem

2004-01-19 Thread Anna Yates
I have multiple text boxes that I display on my page. Basically, I must show n rows (2 text boxes per row). I have no problem displaying them, but I am unclear on how to get the data back in a concise manner. To display, I use logic:iterate (see below): logic:iterate name=custAcctForm id

RE: Logic:iterate and html:text problem

2004-01-19 Thread Andrew Hill
: http://www.keyboardmonkey.com/next/index.jsp hth Andrew -Original Message- From: Anna Yates [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 January 2004 12:21 To: [EMAIL PROTECTED] Subject: Logic:iterate and html:text problem I have multiple text boxes that I display on my page. Basically

RE: Logic:iterate and html:text problem

2004-01-19 Thread Shishir K. Singh
Well, a) I have not used logic:iterate for these purpose, hence won't be able to help you out much there. I use the JSTL tags and try to keep away from the struts tag as much as possible. b) I would use ArrayList instead of Vectors. What I would do if I were you would be something like

Re: setting link inside logic:iterate

2004-01-17 Thread Mark Lowe
logic:iterate id=link name=userView property=menuList html:link page=%= link.getAction() % bean:write name=link property=label / /html:link /logic:iterate or c:forEach var=link value=${userView.menuList} a href=c:url value=${link.action

setting link inside logic:iterate

2004-01-16 Thread Bryce Fischer
*/ String getAction(); /** * Returns the label for the given menu item. * * @return */ String getLabel(); } Now, this is what I'd like to do in my jsp (it obviously doesn't work..). logic:iterate id=link name=userView.menuList

logic:iterate problem

2004-01-12 Thread Tim
I'm using the logic:iterate tag in my jsp with the following code: theForm is a dynamic actionform, value(thelist) is a vector containing the values to be printed. I've checked the Action class, and all values of the form are properly filled and not null. logic:iterate id=item name=theForm

Re: struts help using logic:iterate

2004-01-06 Thread ngonqua
Hien, Thank you for replying to my message. I will try this way. Since I'm new on Struts, I thought there would be some other tag other than logic:iterate tag to do the trick. Btw, I'm running weblogic 7.0 sp4. Do you know if it supports JSTL? If you make your Item class returns an Error

struts help using logic:iterate

2004-01-05 Thread ngonqua
I'm very new to struts so please be kindly. I have two Arraylist call itemList and errorCodeList. The itemList contains list of Item object. The item object has a property calls errorCode which returns an error code in int (1-50). I want to display the error description associates to that

Re: struts help using logic:iterate

2004-01-05 Thread Hien Q Nguyen
}/BR Error Desc: c:out value=${item.error.errorString}/BR /c:forEach Using logic:iterate tag: logic:iterate id=item name=itemList Item Id= bean:write name=item property=id/BR bean:define id=error name=item property=error/ Error Code: bean:write name=error property

bean:write AND logic:iterate

2003-12-27 Thread Oliver Thiel
Hi @ll; In my Form I define an Array, which contains some message resource keys. I'm able to print out the values, but what I want to archive is that it prints out the value from the application resource properties and also I wanted to use an logic:iterate to print them out, so it should

bean:write AND logic:iterate

2003-12-27 Thread Oliver Thiel
Hi, In my Form I define an Array, which contains some message resource keys. I'm able to print out the values, but what I want to archive is that it prints out the value from the application resource properties and also I wanted to use an logic:iterate to print them out, so it should

logic:iterate problem (not loading complete jsp)

2003-12-24 Thread shahfazal
applications; } ... [/code] the following is the code i wrote on the jsp to access this collection and iterate thru the value objects logic:iterate id=appList name=incompleteFolderForm property=applications tr tdbean:write name=appList property=firstName//td tdbean:write name=appList

capture the output of a logic:iterate and place it in the URI of an html:link forward

2003-12-23 Thread Mike R. Phelan
Hi folks, I'm trying to add a parameter to a hyperlink, but I don't have direct access to the value I want to use in the parameter. I don't have direct access because the value is held within an ArrayList object, and only referenced with a logic:iterate call in a JSP page. I have thoroughly

Re: capture the output of a logic:iterate and place it in the URI of an html:link forward

2003-12-23 Thread Kris Schneider
How 'bout adding it as a request parameter instead of appending it? TABLE logic:iterate id=concur name=concur !-- concur contains the ArrayList -- TR TDhtml:link forward=concurrence paramId=projectName paramName=concur paramProperty

Re: capture the output of a logic:iterate and place it in the URI of an html:link forward

2003-12-23 Thread James Mitchell
=java.util.HashMap/ TABLE logic:iterate id=concur name=concurs !-- concur contains the ArrayList -- !-- this value get overwritten with each iteration -- c:set target=${mapOfKeyValues} property=someKey value=${concur.someProperty}/ TR TD html:link forward=concurrence name

logic:iterate question

2003-12-19 Thread struts
I have logic:iterate id=testers name=testerInfo . /logic:iterate I only have one item in the testerInfo collection. Why can't i do bean:define id=testers name=testerInfo/ Or how can i put it to the first item? Thanks !

Re: logic:iterate question

2003-12-19 Thread hernux
, December 19, 2003 6:51 AM Subject: logic:iterate question I have logic:iterate id=testers name=testerInfo . /logic:iterate I only have one item in the testerInfo collection. Why can't i do bean:define id=testers name=testerInfo/ Or how can i put it to the first item? Thanks

Question dynamic value for a logic:iterate

2003-12-18 Thread struts
How can i have a dynamic value ? eg: logic:equal name=element property=weightType value= should be something like logic:equal name=element property=weightType value=bean:write name=operator property=operatorWeightType/ but that is not working. Any Idea ? Thanks

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
Subject: Question dynamic value for a logic:iterate How can i have a dynamic value ? eg: logic:equal name=element property=weightType value= should be something like logic:equal name=element property=weightType value=bean:write name=operator property=operatorWeightType

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread struts
[EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:12 AM Subject: Re: Question dynamic value for a logic:iterate use this : bean:define id=foo name=operator property=operatorWeightType/ logic:equal name=element property=weightType value=%= foo

Re: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:25 AM Subject: Re: Question dynamic value for a logic:iterate Got the following error. symbol : method setValue (java.lang.Object) location: class org.apache.struts.taglib.logic.EqualTag

logic:iterate inside a logic:iterate ??

2003-12-18 Thread gentyjp
Hi I'am a Struts newbie, sorry if it is a classic question. My question is about logic:iterate I have a vector of documents. In my application a document is a vector of LabelValueBean. I wish to write both the label and the value. I wish to write all my documents so I iterate

RE: logic:iterate inside a logic:iterate ??

2003-12-18 Thread Robert Taylor
logic:iterate id=document name=formName property=documents logic:iterate id=lv name=document property=labelValueBeans bean:write name=lv property=label/ bean:write name=lv property=value/ /logic:iterate /logic:iterate You should probably use JSTL for this. c:forEach var=document items

Re: logic:iterate inside a logic:iterate ??

2003-12-18 Thread Jan Vervecken
try something similar to this (of course all the Java code to construct the lists should be in (or called by) a Struts Action class, so focus on the use of the logic:iterate tag) --8loop.jsp-- %@ page import=java.util.* % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib

html:select tag or logic:iterate

2003-12-15 Thread Marco Mistroni
MyObject names, (wity MyObject.id as value) I have tried to embed the html:select inside a logic:iterate, but my editor (websphere studio)complaints for following code html:select property=defaultContainerType multiple=no logic:iterate collection=%= (Collection)session.getAttribute

Re: html:select tag or logic:iterate

2003-12-15 Thread Firat TIRYAKI
:00 PM Subject: html:select tag or logic:iterate Hi all, I am quite new to struts tag library and I need an advice. In the HttpSession I have an object of type Collection, which stores a list of MyObject. MyOBject has two properties, description and id. Out of this Collection of MyObject I

RES: html:select tag or logic:iterate

2003-12-15 Thread Tiago Henrique Costa Rodrigues Alves
Inside the struts-exercise-taglib.war that comes with struts 1.1 you will find a pratical example to solve your problem... You should not do a logic:iterate inside html:select, insteat of logic:iterate use the option:optionsCollection and pass your collection to it... look the jsp example

logic:iterate and Map

2003-12-02 Thread mohan
Hi All i am doing the following logic:iterate id=aciterator name=rsiappForm property=appCoursesMap tr td width=15%div align=center html:radio property=appCourse(%=aciterator.key%).level value=regular / /div/td td width=15%div align=center

Re: logic:iterate and Map

2003-12-02 Thread Joe Germuska
%) Joe On Dec 2, 2003, at 3:34 PM, [EMAIL PROTECTED] wrote: Hi All i am doing the following logic:iterate id=aciterator name=rsiappForm property=appCoursesMap tr td width=15%div align=center html:radio property=appCourse(%=aciterator.key%).level value=regular

Re: logic:iterate and Map

2003-12-02 Thread mohan
or aciterator.getKey()? appCourse(%=aciterator.key%).level/bean:define and then later %= foo %) Joe On Dec 2, 2003, at 3:34 PM, [EMAIL PROTECTED] wrote: Hi All i am doing the following logic:iterate id=aciterator name=rsiappForm property=appCoursesMap tr td width=15%div

saving values thro logic:iterate to a list

2003-12-01 Thread mohan
Hi All, I have a loop this way logic:iterate id=xSome name=KEY_USER property=appCourses html:text name=xSome property=courseName / html:text name=xSome property=level / /logic:iterate I am iterating thro a list called getAppCourses. Suppose i change these values will the list also get

RE: saving values thro logic:iterate to a list

2003-12-01 Thread Witt, Mike (OH35)
If the type is String[], you will get an array of values. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 01, 2003 2:40 PM To: [EMAIL PROTECTED] Subject: saving values thro logic:iterate to a list Hi All, I have a loop this way logic:iterate

Re: logic:iterate help

2003-11-25 Thread mohan
Hi Guys The reason i am using the logic:iterate is not to populate the select box but to create the select box for the number times the length of the testScoresVector and store the option selected in the select box in each of the testScoresVector element. --Mohan Hi All I have a Vector called

Re: logic:iterate help

2003-11-25 Thread mohan
Hi All I have tried this logic:iterate id=tsv collection=testScoresVector testScoresVector is a vector stored as a session Attribute as request.getSession().setAttribute(testScoresVector, testScoresVector) Please let me know what the problem is --Mohan Hi Guys The reason i am using

Struts, EJBs, and logic:iterate problems

2003-11-25 Thread Steven Nakhla
be referenced from my JSP. In my JSP, I have the following to iterate over the list and display the entries: logic:iterate id=vlist name=vendorList bean:write name=vlist property=name / ul logic:iterate id=plist name=vlist property=products libean:write name=plist property=title //li /logic:iterate

Re: Struts, EJBs, and logic:iterate problems

2003-11-25 Thread guo yingshou
perform a findAll() to return a Collection of ProductVendors, and then call request.setAttribute(vendorList, vendors); so it can be referenced from my JSP. In my JSP, I have the following to iterate over the list and display the entries: logic:iterate id=vlist name=vendorList bean:write

logic:iterate help

2003-11-24 Thread mohan
Hi All I have a Vector called as testScoresVector (Vector of testScores Objects) stored in the session I am trying this logic:iterate id=tsv name=testScoresVector html:select property=tsv.testName html:option value=SAT-1SAT-1/html:option html:option value=SAT-2SAT-2

Re: logic:iterate help

2003-11-24 Thread Mike Duffy
this logic:iterate id=tsv name=testScoresVector html:select property=tsv.testName html:option value=SAT-1SAT-1/html:option html:option value=SAT-2SAT-2/html:option : : /html:select /logic:iterate The idea is to add the selected value

Re: logic:iterate help

2003-11-24 Thread Gurpreet Dhanoa
hi MOhan Error is coming coz your syntax is not upto the mark. Try with the following logic:iterate id=tsv name=testScoresVector html:select property=testName html:collection name=tsv labelproperty=any property name of the Vector/ /html:select /logic:iterate Cheers gary

  1   2   3   4   5   6   7   8   9   >