Re: logic:iterate and bean:write not showing when jstl c:out does

2005-10-28 Thread Laurie Harper
in adding the Form like so: request.getSession().setAttribute(myForm, myForm); The JSP which acts as the view for the action can display attributes from the form if I refer to them using JSTL tags, but if I refer to the same attributes through struts tags, e.g. logic:iterate id

logic:iterate and bean:write not showing when jstl c:out does

2005-10-27 Thread Stephen Souness
in adding the Form like so: request.getSession().setAttribute(myForm, myForm); The JSP which acts as the view for the action can display attributes from the form if I refer to them using JSTL tags, but if I refer to the same attributes through struts tags, e.g. logic:iterate id

Re: How to write logic:iterate for the Collection of HashMap.

2005-08-19 Thread Jurn Ho
Hi Amol, please see http://struts.apache.org/userGuide/struts-logic.html especially the section on maps. logic:iterate id=element name=myhashtable Next element is bean:write name=element property=value/ with key bean:write name=element property=key/ /logic:iterate Jurn At 10:06 PM 18/08/2005

How to write logic:iterate for the Collection of HashMap.

2005-08-18 Thread Amol Yadwadkar
Hello List, I need to display the results stored in the Hashmap. How can I achieve it by using logic:iterate I know the way to do it for List type data. Can anyone help me in this ? Thankx n regds, Amol

Re: accessing variables using logic:iterate

2005-08-17 Thread Stéphane Zuckerman
Dave wrote : As a followup, you may want to consider switching to JSTL for straight-forward tasks such as this: where functionality is duplicated between the Struts tags and JSTL it's generally recommended to go the JSTL route. It's a trivial switch to make, and can be done mechanically in

[OT] Re: accessing variables using logic:iterate

2005-08-17 Thread Dave Newton
Stéphane Zuckerman wrote: What I really dislike with struts tags is that attributes don't always mean the same thing from tag to tag, which is disturbing. I'm mainly thinking of the name and property, and .*Name attributes too. Ah, I'm glad to hear I'm not the only one that is wogged by

accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Hi, Currently I have a action class which does session.setAttribute(recurringTaskSummary,v_recurringTaskSummary), where v_recurringTaskSummary is a vector of type SpRecurringTaskSummary which has certain variables such as EmployeeName, EmployeeRef etc. I am using logic:iterate as follows

Re: accessing variables using logic:iterate

2005-08-16 Thread Stéphane Zuckerman
Hi Jay, session.setAttribute(recurringTaskSummary,v_recurringTaskSummary), SpRecurringTaskSummary [...] has certain variables such as EmployeeName, EmployeeRef etc. I am using logic:iterate as follows: logic:iterate id = rtSummary name=recurringTaskSummary bean:write name

Re: accessing variables using logic:iterate

2005-08-16 Thread Dave Newton
Stéphane Zuckerman wrote: I am using logic:iterate as follows: logic:iterate id = rtSummary name=recurringTaskSummary bean:write name=rtSummary/ /logic:iterate The output is name of objects. However I want to somehow access the variables employeename, employeeref etc. How do I do

Re: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary bean:write name=rtSummary property=employeeName/ /logic:iterate it says not getter for employeeName in bean rtsummary. 'recurringTaskSummary' is a vector and not a bean. I tried using the attribute type

Re: accessing variables using logic:iterate

2005-08-16 Thread Dave Newton
Jay Sheth wrote: HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary bean:write name=rtSummary property=employeeName/ /logic:iterate it says not getter for employeeName in bean rtsummary. 'recurringTaskSummary' is a vector and not a bean. I tried using the attribute

Re: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Thanks a lot. Got it. As you said, the naming conventions were followed, but I made a typo in the property attribute. Sorry for the trouble. Jay On 8/16/05, Dave Newton [EMAIL PROTECTED] wrote: Jay Sheth wrote: HI, When i do : logic:iterate id=rtSummary name=recurringTaskSummary

RE: logic:iterate tag and form beans

2005-08-02 Thread Johnson, Kaerstin
in the array will wind up being a table row. -Original Message- From: Brian Kremmin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 11:02 AM To: user@struts.apache.org Subject: logic:iterate tag and form beans Hello Everyone, This is my first post. I've been watching

RE: logic:iterate tag and form beans

2005-08-02 Thread BHansard
= (EmployeeForm) form; //getEmployeesFromDatabase should return a collection of EmployeeBeans empForm.setEmployees(getEmployeesFromDatabase()); return mapping.findForward(display); } JSP: table trthName/th thDept/th html:form action=xyz method=post logic:iterate id=emp

Re: logic:iterate tag and form beans

2005-08-02 Thread Dave Newton
Brian Kremmin wrote: I'm planning to use an ArrayList to store the data and use the logic:iterate tag to expose the elements of the list... however, I'm unsure of the proper structure of all these data objects. I think I'm using struts 1.1 if that makes a difference. 1) I'd tend towards

Re: logic:iterate tag and form beans

2005-08-02 Thread Laurie Harper
Brian Kremmin wrote: I want to get some table data from a database and output it in table form on a webpage. I'm planning to use an ArrayList to store the data and use the logic:iterate tag to expose the elements of the list... however, I'm unsure of the proper structure of all these data

logic:iterate - question

2005-07-30 Thread peceka
hi, I've got: ArrayList offices array of office objects. On jsp page i'm showing this array using logic:iterate. But i would like to show just only some objects of this array list, which meet some condition. It is possible? Best Regards, p

AW: logic:iterate - question

2005-07-30 Thread Leon Rosenberg
Sure logic:iterate name=foo type=OfficeObject id=ob logic:equal name=ob property=aProperty value=your_condition_value html render object /logic::equal /logic:iterate -Ursprüngliche Nachricht- Von: peceka [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 30. Juli 2005 20:39

RE: Not getting submitted values from textarea in logic:iterate

2005-07-21 Thread Neil Aggarwal
://newsletter.JAMMConsulting.com -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 10:41 AM To: 'Struts Users Mailing List' Subject: Not getting submitted values from textarea in logic:iterate Hello: I have a DynaForm with some beans stored

Re: Not getting submitted values from textarea in logic:iterate

2005-07-21 Thread Laurie Harper
' on the 'feature' bean defined by the enclosing logic:iterate/. That's not what you want. If you look at the request when you submit the form I think you'll find that the values from the text areas are submitted through a request parameter named 'text'. Try this instead: html:textarea property=features

RE: Not getting submitted values from textarea in logic:iterate

2005-07-21 Thread Neil Aggarwal
Laurie: I need to get the value of the text field from the feature bean, not just the feature bean itself. So, I had the change your code to: logic:iterate name=admin.editClubForm property=features id=feature indexId=i html:textarea property=features[${i}].text value=${feature.text} rows=3

Not getting submitted values from textarea in logic:iterate

2005-07-20 Thread Neil Aggarwal
, the EditClubInit action forwards to user to the page to display the form. Here is the JSP code that shows the data: logic:iterate name=admin.editClubForm property=features id=feature br html:textarea name=feature property=text indexed=true rows=3 cols=75/ /logic:iterate

Issue with logic:iterate

2005-07-12 Thread sadineni
Hi All, Is there any way to break loop of logic:iterate loop based on a condition ? Thanks in advance, Anil.

RE: Issue with logic:iterate

2005-07-12 Thread Raj Tilak
% break; % From: sadineni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: user@struts.apache.org Subject: Issue with logic:iterate Date: Tue, 12 Jul 2005 20:30:42 +0530 Hi All, Is there any way to break loop of logic:iterate loop based on a condition

Problem accessing elements of Collection inside logic:iterate

2005-06-27 Thread Riemann Robert \(Platinion\)
logic:iterate id=InterfacesOverviewData name=InterfacesOverviewForm property=interfacesItems type=de.Platinion.rr.QuestGen.P200038_26.Presentation.form.InterfacesInputFo rm tr

Problem accessing elements of Collection inside logic:iterate (II)

2005-06-27 Thread Riemann Robert \(Platinion\)
for the data items themselves and a form bean with a Collection (ArrayList) with the list of all such data items. Here is the relevant JSP code ... logic:present name=InterfacesOverviewForm logic:notEmpty name=InterfacesOverviewForm property=interfacesItems table logic:iterate id

Re: Problem accessing elements of Collection inside logic:iterate (II)

2005-06-27 Thread Laurie Harper
logic:iterate id=InterfacesOverviewData name=InterfacesOverviewForm property=interfacesItems type=Presentation.form.InterfacesInputForm tr td !-- put a property of the interfaces item in table cell -- html:text name

logic:lessThan inside logic:iterate

2005-06-16 Thread Fredrik Boström
Dear list, I've been fighting this problem for some time now, and can't come up with a solution. Please advice. In my jsp page I'm iterating an array of Category objects which resides in the request scope. This is done with the logic:iterate tag like this: logic:iterate id=categories name

Re: problem with indexed property and logic:iterate

2005-06-14 Thread Nitesh
as an array for editing form.set ( users, users.toArray ( new UserBean[0] ) ); In editUsers.jsp logic:iterate id=users name=EditUsersForm property=users html:text name=users property=name indexed=true /logic:iterate In the produced HTML: input type=text name=users[0].name

RE: Problem with logic:iterate Tag

2005-06-09 Thread Deepak Srivatava
:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 6:57 PM To: user@struts.apache.org Subject: Problem with logic:iterate Tag I am populating following simple List in action class and putting that in form class. private List getSystemTableList(ConfWizardBean confwizbean, HttpSession

Problem with logic:iterate Tag

2005-06-08 Thread Deepak Srivatava
); } return outerList; } relevant JSP code is as follows %-- Iterate through the system list --% bean:define id=systemList name=MyForm property=systemTableList/ logic:present name=systemList logic:notEmpty name=systemList logic:iterate id

Message resource exception caused by bean:write inside logic:iterate

2005-06-06 Thread redford
Hey all, I get an exception and cannot find any explanation or solution. An OverviewBody.jsp page intends to list all data items from a database. It therefore cretaes an appropriate table, the table body is implemented using a logic:iterate tag, the single table columns/cells are supposed to get

RE: logic:iterate multiple collections

2005-05-24 Thread Pushkala_Iyer
InnerKey22: Value22 I'm trying to nest two logic:iterate tags to print out the keys in the outer map and the values in the inner Map. What I'm trying to do is something like this: logic:iterate id=myOuterMap name=myForm property=myOuterMap tr tdbean:write name=myOuterMap property=key

Re: logic:iterate multiple collections

2005-05-24 Thread Wendy Smoak
From: [EMAIL PROTECTED] The data structure I use is a HashMap, whose values are other HashMaps. I'm trying to nest two logic:iterate tags to print out the keys in the outer map and the values in the inner Map. c:forEach var=outerMapEntry items=${outerMap} c:out value=${outerMapEntry.key

RE: logic:iterate multiple collections

2005-05-24 Thread Pushkala_Iyer
] Sent: Tuesday, May 24, 2005 11:02 AM To: Struts Users Mailing List Subject: Re: logic:iterate multiple collections From: [EMAIL PROTECTED] The data structure I use is a HashMap, whose values are other HashMaps. I'm trying to nest two logic:iterate tags to print out the keys in the outer map

Re: logic:iterate multiple collections

2005-05-24 Thread Jeff Beal
See http://struts.apache.org/faqs/struts-el.html. It includes a list of Struts tags whose functionality is covered by the JSTL. On 5/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks! That worked, and is also much easier to understand. This is probably a newbie question: How / when

logic:iterate multiple collections

2005-05-23 Thread Titus Barik
Hi all, Let's say I have two collections, A, and B. Is there a way to iterate over multiple collections with something like logic:iterate? i.e logic:iterate ${rowA.name} ${rowB.value} /logic:iterate -- Titus Barik ([EMAIL PROTECTED]) http://www.barik.net

Re: logic:iterate multiple collections

2005-05-23 Thread Wendy Smoak
From: Titus Barik [EMAIL PROTECTED] Let's say I have two collections, A, and B. Is there a way to iterate over multiple collections with something like logic:iterate? If you know they're the same size and in the same order, (should be the case with List,) how about iterating over one

logic:iterate and LazyValidatorForm

2005-05-18 Thread Durham David R Jr Ctr 805 CSPTS/SCE
I'm trying to iterate over a String[] in a LazyValidatorForm using: logic:iterate name=myForm property=first ... But I get the following error: Unable to find a value for first in object of class org.apache.struts.validator.LazyValidatorForm using operator . So, does

RE: logic:iterate and LazyValidatorForm

2005-05-18 Thread Durham David R Jr Ctr 805 CSPTS/SCE
So, does the logic:iterate tag work with DynaBeans? From the source code, it uses BeanUtils.getProperty(), which works with DynaBeans. Any ideas? Thanks. Please disregard this post. The problem was actually later on when I attempted to access the DynaBean via JSTL, which doesn't work

Re: logic:iterate and LazyValidatorForm

2005-05-18 Thread Wendy Smoak
From: Durham David R Jr Ctr 805 CSPTS/SCE [EMAIL PROTECTED] The problem was actually later on when I attempted to access the DynaBean via JSTL, which doesn't work for obvious reasons. LazyValidatorForm has a 'getMap' method, so you _can_ use it with JSTL. I use LazyDynaBean, which has the

Dynamically generating parameterized links using logic:iterate

2005-04-27 Thread Randall Svancara
and tags, I am struggling. logic:iterate id=result name=ParcelSearchForm property=results html:link page=/somepage.do name=result scope=page paramId=parcel bean:write name=result property=parcel//html:linkbr / /logic:iterate I am not sure what I need to use in order to grab the parcel value from the form

Re: Dynamically generating parameterized links using logic:iterate

2005-04-27 Thread Michael Jouravlev
I guess, it would something like this: logic:iterate id=result name=ParcelSearchForm property=results type=com.acme.ParcelObj html:link page=/somepage.do paramId=param1 paramName=result paramProperty=parcel bean:write name=result property=parcel/ /html:link

RE: Dynamically generating parameterized links using logic:iterate

2005-04-27 Thread Randall Svancara
Thanks, That worked. I need to read the documentation!!! -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 12:21 PM To: Struts Users Mailing List Subject: Re: Dynamically generating parameterized links using logic:iterate I guess

Re: problem with logic:iterate

2005-04-22 Thread Janarthan Sathiamurthy
Hi, U can do - logic:iterate collection=%= vec% id=vecRow indexId=index logic:equal ... //do some thing /logic:equal /logic:iterate --- Kade Jeevan Kumar [EMAIL PROTECTED] wrote: Hi i have for(int i=0; i vec.size(); i++) { if(i=5

logic:iterate problem...

2005-04-21 Thread Lucas Bern
Hi all... I get this exception trying to render options with logic iterate tag... javax.servlet.jsp.JspException: Cannot create iterator for this collection My action just get a List form a Srevice layer and store it in session scope under Globales.AreaPersonal.MODULOS_KEY. logic:iterate id

Re: logic:iterate problem...

2005-04-21 Thread Erik Weber
action just get a List form a Srevice layer and store it in session scope under Globales.AreaPersonal.MODULOS_KEY. logic:iterate id=modulo collection='%=Globales.AreaPersonal.MODULOS_KEY%' option value='%=((Contenible)modulo).getId()%' %=((Contenible)modulo).getNombre()+ - + ((Contenible)modulo

Re: logic:iterate problem...

2005-04-21 Thread Lucas Bern
I would like to get a null pointer exception or a can not set bean to null when my list is null... I use to solve this kind of problem with html:options and html:optionsCollection but what i have to do in this page is very complex for this tags... thanks for your answer Erik Lucas Erik

Re: logic:iterate problem...

2005-04-21 Thread Erik Weber
to iterate over string. How about this: logic:iterate id=modulo collection='%=(List) session.getAttribute(Globales.AreaPersonal.MODULOS_KEY)%' Michael. On 4/21/05, Lucas Bern [EMAIL PROTECTED] wrote: Hi all... I get this exception trying to render options with logic iterate tag

Re: logic:iterate problem...

2005-04-21 Thread Jeff Beal
PROTECTED] wrote: My action just get a List form a Srevice layer and store it in session scope under Globales.AreaPersonal.MODULOS_KEY. logic:iterate id=modulo collection='%=Globales.AreaPersonal.MODULOS_KEY

Re: logic:iterate problem...

2005-04-21 Thread Lucas Bern
Great! it works fine... thanks Jeff and Erik. Lucas Jeff Beal [EMAIL PROTECTED] wrote: From http://struts.apache.org/userGuide/struts-logic.html#iterate: collection: A runtime expression that evaluates to a collection probably evaluates to a String. What you need is name='' On 4/21/05, Lucas

problem with logic:iterate

2005-04-21 Thread Kade Jeevan Kumar
Hi i have for(int i=0; i vec.size(); i++) { if(i=5) { // do some thing } } how can i use the same code in logice:iterate Help me out with example. -Thnx in Advance Jeevan

logic:iterate, with offset and length parameters, lose data

2005-04-20 Thread Oscar
Hi, I am using a logic:iterate tag throw a Collection. This collection is a property of my ActionForm. I set also an offset and length. So, shown elements work fine, but not shown elements are just null. I would not like to lose data of the not shown elements of the collection. I dont know how

RE: logic:iterate, with offset and length parameters, lose data

2005-04-20 Thread Abdullah Jibaly
Suggestions: 1- Use c:forEach instead of logic:iterate 2- Use a seperate property in your form to store the viewable/changeable stuff, for example if you have a collection of strings, you can have an array of strings be your viewable/editable property. This will cut down

RE: logic:iterate, with offset and length parameters, lose data

2005-04-20 Thread Abdullah Jibaly
that html:input is a mistake, it should be html:text -Original Message- From: Oscar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 5:23 AM To: user@struts.apache.org Subject: logic:iterate, with offset and length parameters, lose data Hi, I am using a logic:iterate tag throw

RE: logic:iterate, with offset and length parameters, lose data

2005-04-20 Thread Abdullah Jibaly
c:if test=${not displayable}html:hidden property=collectionProperty value=${item} //c:if /c:forEach -Original Message- From: Oscar [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 5:23 AM To: user@struts.apache.org Subject: logic:iterate, with offset and length parameters, lose

logic:iterate and field indices

2005-04-06 Thread Andre Bonhote
some attributes with values for later use. One of the attributes for example is holding a String[]. Now, in the jsp, I have this: logic:iterate id=element name=showFacilitiesArray bean:write name=element /br / /logic:iterate This works fine so far, but because I'd like to put

AW: logic:iterate and field indices

2005-04-06 Thread Leon Rosenberg
indexId will do http://struts.apache.org/userGuide/struts-logic.html#iterate select name=... logic:iterate id=element name=showFacilitiesArray indexId=index option value=bean:write name=index/bean:write name=element//option /logic:iterate /select You may also want to look at html:options

AW: logic:iterate and field indices

2005-04-06 Thread Leon Rosenberg
indexId will do http://struts.apache.org/userGuide/struts-logic.html#iterate select name=... logic:iterate id=element name=showFacilitiesArray indexId=index option value=bean:write name=index/bean:write name=element//option /logic:iterate /select You may also want to look at html:options

Re: AW: logic:iterate and field indices

2005-04-06 Thread Andre Bonhote
Hi Leon Leon Rosenberg wrote: indexId will do http://struts.apache.org/userGuide/struts-logic.html#iterate Been there, but somehow didn't get what it was about ... closer now. select name=... logic:iterate id=element name=showFacilitiesArray indexId=index option value=bean:write name=index

Re: I look for an example of LOGIC:ITERATE that iterates over an ARRAY

2005-03-29 Thread Jan-Jaap Endenburg - Vera
Thank you Günther, for your help: Now it works fine! Jan-Jaap Günther Wieser wrote: i think the example in the docs shows you almost everything: logic:iterate id=element name=myhashtable Next element is bean:write name=element property=value/ /logic:iterate all you need to do is drop

logic:iterate Question

2005-03-23 Thread Mike Darretta
Folks, Thanks in advance for answering this urgent question. I know it's basic, but I'm stumped...your help is appreciated. I am trying to update data displayed via a logic:iterate tag with nested logic:equal tags: logic:iterate id=bean name=assetReportForm property=report.entries

nested arraylist on nested logic:iterate help

2005-03-17 Thread Richard Reyes
Hello Guys, Please help. I need to access an arraylist property inside the arraylist that I have just iterated over. I got this code . logic:iterate name=%= Konstants.SESSION_USER_KEY % property

problem with logic:iterate

2005-03-02 Thread Jonathan M Z
); pageContext.setAttribute(bar,v,PageContext.PAGE_SCOPE); then trying to iterate over bar logic:iterate id=element name=bar bean:write name=element/ /logic:iterate __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100

Re: problem with logic:iterate

2005-03-02 Thread Eric Lemle
I think this is what you are looking for logic:iterate name=myVector id=myProject indexId=i bean:define id=mydescription name=myProject property=description / bean:write name=mydescription/ /logic:iterate -Eric [EMAIL PROTECTED] 3/2/2005 12:09:49 PM hi folks, I am trying to iterate

Re: Resolved problem with logic:iterate

2005-03-02 Thread Jonathan M Z
created bean of name bar. Vector v=new Vector(); Project p1=new Project(); p1.setName(project1); p1.setDescription(des); pageContext.setAttribute(bar,v,PageContext.PAGE_SCOPE); then trying to iterate over bar logic:iterate id=element name=bar bean:write name=element/ /logic:iterate

Re: problem with logic:iterate

2005-03-02 Thread Jonathan M Z
thanks I am running into a related problem with radio buttons: logic:iterate id=element name=bar html:radio idName=element value=name property=pName /html:radio /logic:iterate when rendered it says: [ServletException in:/calc/ProjectManagerMain.jsp] Cannot find

Re: problem with logic:iterate

2005-03-02 Thread Eric Lemle
Is bar in the session? [EMAIL PROTECTED] 3/2/2005 12:45:03 PM thanks I am running into a related problem with radio buttons: logic:iterate id=element name=bar html:radio idName=element value=name property=pName /html:radio /logic:iterate when rendered it says

Re: problem with logic:iterate

2005-03-02 Thread Jonathan M Z
thanks I am running into a related problem with radio buttons: logic:iterate id=element name=bar html:radio idName=element value=name property=pName /html:radio /logic:iterate when rendered it says: [ServletException in:/calc/ProjectManagerMain.jsp

Pass logic:iterate bean into tile problem?

2005-02-02 Thread Jason Long
I have been trying to do the following in my layout with out success. tiles:importAttribute/ html:xhtml/ logic:iterate id=shipment name=pipePurchaseOrderForm property=pipePurchaseOrderValue.shipments indexId=row tiles:insert attribute=shipment/ /logic:iterate

Pass logic:iterate bean into tile problem?

2005-02-02 Thread Jason Long
I have been trying to do the following in my layout with out success. tiles:importAttribute/ html:xhtml/ logic:iterate id=shipment name=pipePurchaseOrderForm property=pipePurchaseOrderValue.shipments indexId=row tiles:insert attribute=shipment/ /logic:iterate

Re: Pass logic:iterate bean into tile problem?

2005-02-02 Thread Kishore Senji
tiles:insert attribute=shipment/ Are you trying to pass shipment object (which comes from the logic:iterate) to the tile page (through insert) ? If so try, tiles:insert definition=abc put name=shipment value=%=shipment%/ /tiles:insert

Re: error with logic:iterate on dynabeans

2005-01-11 Thread Olasoji Ajayi
@struts.apache.org Sent: Tuesday, January 04, 2005 9:18 AM Subject: error with logic:iterate on dynabeans i get the following error when i run a web application to display the contents of a table. HTTP Status 500 - type

error with logic:iterate on dynabeans

2005-01-04 Thread Olasoji Ajayi
. Apache Tomcat/5.0.19 below is the code i want to use to display the content of a database table. the rowSet attribute is a RowSetDynaClass containing the result of the query. bean:define id=cols name=rowSet property=dynaProperties/ table border=2 tr logic:iterate id=col

Re: How to use logic:iterate with DynaValidatorForm

2004-12-24 Thread Robert Taylor
Struts has built in support for DynaBeans. logic:iterate id=account name=editBUForm property=account ... /logic:iterate /robert --- [EMAIL PROTECTED] wrote: - struts-config.xml form-beans form-bean name=editBUForm type=org.apache.struts.validator.DynaValidatorForm

Problem with logic:iterate and HashMap

2004-12-23 Thread Peter Neu
Hello all, I have a problem with the logic:iterate tag. I need to iterate over a HashMap which stores wrapper objects(which include the actual data). A wrapper class has for example one attribute velocity. As far as I know the only way to access such a HashMap is this method: logic:iterate id

Re: Problem with logic:iterate and HashMap

2004-12-23 Thread Sunny
logic:iterate id=element name=hashMap indexId=index bean:define id = vObj name=element property=value / bean:write name = vObj property = velocity / /logic:iterate Peter Neu wrote: Hello all, I have a problem with the logic:iterate tag. I need to iterate over a HashMap which stores wrapper

How to use logic:iterate with DynaValidatorForm

2004-12-20 Thread dangmp
(); } df.set(account, account); - jsp page logic:iterate id=account name=editBUForm.map.Account tr td align=center style=border-left:1px #8FA8CC solid bean:write name=account property=accCode scope=page/ /td td style=border-left:1px #8FA8CC

Re: Help : creating dynamic styleId inside Logic:iterate

2004-11-29 Thread Aidas Semezys
a solution to create dynamic styleId ... ? % int itrator=0; % logic:iterate id=iType property=investorTypeList name=sharePatternBean html:text name=iType styleId=sp% = itrator % property=sharesPer readonly=true / %itrator++;% /logic:iterate Regards, Sachin Hegde, Software Developer

Re: Help : creating dynamic styleId inside Logic:iterate

2004-11-29 Thread Derek Broughton
On Monday 29 November 2004 14:27, Aidas Semezys wrote: It is not allowed to have just part of attribute value as JSP expression. Here is the correct solution: html:text name=iType styleId=%=sp + iterator% property=sharesPer/ Thanks! That solved a problem I was about to ask ... -- derek

Help : creating dynamic styleId inside Logic:iterate

2004-11-28 Thread sachin
simply ' styleId=sp% = itrator % ' for all the fields . can someone provide a solution to create dynamic styleId ... ? % int itrator=0; % logic:iterate id=iType property=investorTypeList name=sharePatternBean html:text name=iType styleId=sp% = itrator % property=sharesPer readonly=true / %itrator

Problem with logic:iterate with DynaValidatorForm in Struts1.1

2004-11-21 Thread selva raj
Hi, I am unable to iterate an ArrayList while using struts1.1 with DynaValidatorForm. Has any one tried it? I am getting the following error in WSAD 5.1... [04/11/17 14:31:41:915 IST] 54f64cef WebGroup E SRVE0026E: [Servlet Error]-[Cannot find bean ProductLines in any scope]:

Tooltip with logic:iterate tag

2004-11-10 Thread Heligon Sandra
Hi, I have a table in my application that I display through the logic:iterate Struts tag, One of the column contents a long text, I would like to add a 'Tooltip' in order to view the whole text, is it possible ? Thanks a lot in advance

RE: html:text in logic:iterate

2004-11-04 Thread Girish Kumar K. P.
Hi, What I understood was like this: You have a logic:iterate tag Inside that you have the text field tag. Corresponding to the Logic:iterate you must be having a for loop inside the form population method in your action. There you will be populating the value from the said bean (in the bean

RE: html:text in logic:iterate

2004-11-04 Thread Sebastian Ho
have a logic:iterate tag Inside that you have the text field tag. Corresponding to the Logic:iterate you must be having a for loop inside the form population method in your action. There you will be populating the value from the said bean (in the bean you will be having list I suppose, from

how do I count array in logic:iterate

2004-11-03 Thread Peng, Meimin
Hi, I've an array list called fruits. And, I want to count the number of fruit. How can I do it to write out the number? logic:iterate id=fruit name=fruits indexId=index %=index% /logic:iterate Thanks. --MM CONFIDENTIALITY NOTICE: The information in this e-mail

Re: how do I count array in logic:iterate

2004-11-03 Thread Bill Siggelkow
bean:size id=numFruits name=fruits/ Number of fruits: bean:write name=numFruits/ -Bill Siggelkow Peng, Meimin wrote: Hi, I've an array list called fruits. And, I want to count the number of fruit. How can I do it to write out the number? logic:iterate id=fruit name=fruits indexId=index

RE: how do I count array in logic:iterate

2004-11-03 Thread Peng, Meimin
I miss this tag. Thanks. --MM -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: Wednesday, November 03, 2004 3:45 PM To: [EMAIL PROTECTED] Subject: Re: how do I count array in logic:iterate bean:size id=numFruits name=fruits/ Number of fruits

html:text in logic:iterate

2004-11-03 Thread Sebastian Ho
this? Thanks Sebastian Ho - logic:iterate id=mymobilephaseloadings name=mobilephaseloadings scope=session tr bgcolor=#CC html:form action=EditLCMSMSGradientStepByIdentifier.do td

RE: html:text in logic:iterate

2004-11-03 Thread Girish Kumar K. P.
U shouldn't give the value attribute there. The value would be read from the form Regards, Girish -Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:18 PM To: Struts Users Mailing List Subject: html:text in logic:iterate Hi I have

RE: html:text in logic:iterate

2004-11-03 Thread Sebastian Ho
-Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:18 PM To: Struts Users Mailing List Subject: html:text in logic:iterate Hi I have a iterate tag which contains a text box. I wish to display value in the textbox. But this line

RE: html:text in logic:iterate

2004-11-03 Thread Girish Kumar K. P.
attribute. It will work -Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:34 PM To: Struts Users Mailing List Subject: RE: html:text in logic:iterate The user is actually editing some data that is already saved. So I need the data to be displayed

RE: html:text in logic:iterate

2004-11-03 Thread Sebastian Ho
=percentage/ So, poipulate the form bean at the action . That's it Dopn't give the value attribute. It will work -Original Message- From: Sebastian Ho [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 12:34 PM To: Struts Users Mailing List Subject: RE: html:text in logic:iterate

Re: html:text in logic:iterate

2004-11-03 Thread Erik Weber
=bean:write name=mymobilephaseloadings property=percentage// Anyone knoww how to get around this? Thanks Sebastian Ho - logic:iterate id=mymobilephaseloadings name=mobilephaseloadings scope=session tr bgcolor=#CC

Nesting html:selec with logic:iterate in a strut application

2004-10-18 Thread Au-Yeung, Stella H
; } My UpdateEmployees.jsp: jsp:useBean id=listOfEmployees type=java.util.Collection scope=session/ logic:iterate id=emp name=listOfEmployees type=com.myCompany.EmployeeDTO tr tdhtml:text property=name//td tdhtml:text property=age//td td html:select name=emp property=department

Re: logic:iterate and table display

2004-10-17 Thread Rick Reumann
Erik Weber wrote the following on 10/16/2004 10:28 PM: but I think there's not much the Struts tags do that the JSTL tags can't do. Agreed, except the html form and netsted tags are nice and handy. Other than those I try and use JSTL (although I'm also using logic:present tag since it provides

RE: logic:iterate and table display

2004-10-16 Thread Vijay Vishvas Dharap
List Subject: Re: logic:iterate and table display Vijay Vishvas Dharap wrote the following on 10/15/2004 9:41 PM: Hi all, I have following scenario.. I have FormBean which has getter and setter for my VO object In VO I have a list of another VO. Now on this form I want to display

Re: logic:iterate and table display

2004-10-16 Thread Erik Weber
16, 2004 7:57 PM To: Struts Users Mailing List Subject: Re: logic:iterate and table display Vijay Vishvas Dharap wrote the following on 10/15/2004 9:41 PM: Hi all, I have following scenario.. I have FormBean which has getter and setter for my VO object In VO I have a list of another VO. Now

logic:iterate and table display

2004-10-15 Thread Vijay Vishvas Dharap
Hi all, I have following scenario.. I have FormBean which has getter and setter for my VO object In VO I have a list of another VO. Now on this form I want to display the contents of the list using logic.iterate tags. I will make matter simpler saying... aFormBean has aVO which as list of

Nested logic:iterate tags

2004-10-12 Thread Claus M. Christiansen
logic:iterate name=subQuestions id=question indexId=subQuestion bean:write name=question property=text / logic:match name=question value=SingleChoice logic:iterate name=question property=possibleChoices id=option type=dk.procore.model.Option

<    1   2   3   4   >