Re: logic:iterate

2009-09-03 Thread Rusty Wright
http://struts.apache.org/2.1.6/docs/ognl-basics.html senderj wrote: If I have a text input in my jsp named scoreNdays, I know I should declare my variable scoreNdays in the struts formbean with getter and setter like getScoreNdays(). Then it will work with the jsp. Now I have an iternation in

Re: logic:iterate

2009-09-03 Thread Rusty Wright
Oops, sorry; I didn't realize this was a struts 1 question. Rusty Wright wrote: http://struts.apache.org/2.1.6/docs/ognl-basics.html senderj wrote: If I have a text input in my jsp named scoreNdays, I know I should declare my variable scoreNdays in the struts formbean with getter and

Re: logic:iterate issue

2009-03-11 Thread Paweł Wielgus
Hi Joe, You can try to output authorId, without property set on, maybe these objects are empty inside. Also, did You imported logic tags into jsp? Best greetings, Pawel Wielgus. 2009/3/10, Russo, Joe rus...@cadmus.com: The following bean:write code outputs:

RE: logic:iterate issue

2009-03-11 Thread Russo, Joe
/logic:iterate logic:present -Original Message- From: Pawel Wielgus [mailto:poulw...@gmail.com] Sent: Wednesday, March 11, 2009 6:46 AM To: Struts Users Mailing List Subject: Re: logic:iterate issue Hi Joe, You can try to output authorId, without property set on, maybe these objects

RE: logic:iterate issue

2009-03-10 Thread Russo, Joe
The following bean:write code outputs: [com.cadmus.rpm.domain.custom.authorsc...@d08faa] bean:write name=summaryArchiveForm property=allAdditionalAuthors/ I am using a (allAdditionalAuthors) ArrayList to store AuthorsCDTO. Should I be using another collection type? Not sure why this is not working

Re: logic:iterate not populating the values on submit

2008-12-24 Thread Yayo
I think it's wrong... you don't need an iterated in order to set a single simple value. With a setter and getter pair for the property is just enough. You should be expecting an String with the given value from the user input. The again I may be wrong... ^^ Happy new year!

Re: logic:iterate - editable table

2008-01-16 Thread Randy Burgess
I would check out the LazyActionForm for this which was added to Struts 1.2.6 and upwards in classic Struts. http://www.niallp.pwp.blueyonder.co.uk/lazyactionform.html Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Oliver Thoms [EMAIL PROTECTED] Reply-To:

Re: logic:iterate question

2007-11-26 Thread Ingo Villnow
The class Book must have the getter-function getTitle() Minghui Yu schrieb: in Action: ... SetBook books=bdao.findAllBooks(); request.setAttribute(books, books); ... In JSP: logic:present name=books All Books:br/br/ logic:iterate id=book name=books bean:write

Re: logic:iterate question

2007-11-25 Thread Fitzwilliam . Aaron
u sure the collection 'books' is not empty? On 11/26/07, Minghui Yu [EMAIL PROTECTED] wrote: in Action: ... SetBook books=bdao.findAllBooks(); request.setAttribute(books, books); ... In JSP: logic:present name=books All Books:br/br/ logic:iterate id=book name=books

Re: logic:iterate question

2007-11-25 Thread Minghui Yu
I tried code below, still the same error: logic:present name=books logic:notEmpty name=books logic:iterate id=book name=books indexId=cnt Next element is bean:write name=book property=title/ /logic:iterate /logic:notEmpty logic:empty name=books Database search does not

Re: logic:iterate question

2007-11-25 Thread Minghui Yu
I made this change , still does not work bean:define id=abook value=book/bean:define Next element is bean:write name=abook property=title/ Error: No getter method for property: title of bean: abook I do have getTitle method for Book object On Nov 25, 2007 7:33 PM, Fitzwilliam. Aaron

Re: logic:iterate - Question

2007-08-09 Thread Leon Rosenberg
you seems to have problems with logging configuration. apparently your weblogic server isn't properly configured which log to use with commons-logging adaptor. On 8/9/07, Mad Shop [EMAIL PROTECTED] wrote: I have following scenario. I have getExSummary() method in exForm which returns a

Re: logic:iterate - Question

2007-08-09 Thread Mad Shop
Thanks Leon, We are using log4j for logging. Existing project is working fine and I added the following block for new requirement. when I remove bean:write tags then it won't give any error!!! Leon Rosenberg [EMAIL PROTECTED] wrote: you seems to have problems with logging

Re: logic:iterate - problem

2007-07-10 Thread Yoge
Try following tag... html:textarea ... rows='%= ((YourObject)pageContext.getAttribute(object)).getRows()%' / On 7/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello! I've got a problem to get a value within a logic:iterate construction (foo is an ArrayList Object): logic:iterate

Re: logic:iterate - problem

2007-07-10 Thread Chad S. Lauritsen
Another way to do it (with a little bit less java) is: logic:iterate name=foo id=object bean:define id=rows name=object property=rows / html:textarea ... rows='%=rows%' / /logic:iterate [EMAIL PROTECTED] wrote: Hello! I've got a problem to get a value within a logic:iterate construction

Re: logic:iterate - problem

2007-07-10 Thread Andreas Hartmann
Hello Chad, hello Yoge, thanks for your hints! meanwhile, I could find a third solution: logic:iterate name=foo id=object type=my.url.classname html:textarea ... rows=%= object.getRows() % / /logic:iterate Another solution should be to use EL: html:textarea ... rows=${object.rows}/

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Olivier THIERRY
You have an indexId attribute on the logic:iterate tag. This indexId attribute sets the name of a JSP scope variable that will contain the index in the loop. Then you can test the value of this variable with the logic:equal. Olivier 2007/4/27, piloupy GOTTAPIL [EMAIL PROTECTED]: Hi, What I

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread piloupy GOTTAPIL
Thanks for the answer, but how I can get the collection's length ? I try to avoid any use of scriptlet if possible. piloupy On 4/27/07, Olivier THIERRY [EMAIL PROTECTED] wrote: You have an indexId attribute on the logic:iterate tag. This indexId attribute sets the name of a JSP scope variable

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Olivier THIERRY
Use bean:size tag to have the collection's length ;) 2007/4/27, piloupy GOTTAPIL [EMAIL PROTECTED]: Thanks for the answer, but how I can get the collection's length ? I try to avoid any use of scriptlet if possible. piloupy On 4/27/07, Olivier THIERRY [EMAIL PROTECTED] wrote: You have an

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Martin Gainty
the original message without making a copy. Thank you. - Original Message - From: Olivier THIERRY [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 27, 2007 9:25 AM Subject: Re: logic:iterate how to test the 1st and last iteration ? Use bean:size

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Martin Gainty
or email and destroy the original message without making a copy. Thank you. - Original Message - From: Martin Gainty [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 27, 2007 9:43 AM Subject: Re: logic:iterate how to test the 1st and last iteration

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread piloupy GOTTAPIL
To Olivier : Here's what I've done : ### CODE : begin ### bean:size id=colSize name=myCollection/ logic:iterate id=e indexId=eid name=myCollection logic:equal name=eid value=colSize bean:write name=e property=name /, /logic:equal logic:notEqual name=eid value=colSize bean:write

RE: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Rod Bollinger
reference ${myOutput} anywhere you like. HTH, -Rod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of piloupy GOTTAPIL Sent: Friday, April 27, 2007 10:14 To: Struts Users Mailing List; Martin Gainty Subject: Re: logic:iterate how to test the 1st and last iteration

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Olivier THIERRY
De rien lol For what I know, the logic:equal tag can only compare with a constant value. So you have to use a scriptlet :( Try this : logic:equal name=eid value=%=colSize% Olivier 2007/4/27, piloupy GOTTAPIL [EMAIL PROTECTED]: To Olivier : Here's what I've done : ### CODE : begin ###

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Laxmikant
Hi Try to use following code, might be helpful logic:iterate id=e name=myCollection indexId=index bean:write name=e property=name /${index}, /logic:iterate Laxmikant piloupy GOTTAPIL wrote: Hi, What I want to do is quite simple. I'd like to know how to test in a logic:iterate

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Affan Qureshi
piloupy GOTTAPIL wrote: Hi, What I want to do is quite simple. I'd like to know how to test in a logic:iterate when I'm at the first or last iteration. My present problem is to parse a collection of String and display the results like this : ### CODE : begin ### value1,

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Laurie Harper
Affan Qureshi wrote: piloupy GOTTAPIL wrote: Hi, What I want to do is quite simple. I'd like to know how to test in a logic:iterate when I'm at the first or last iteration. My present problem is to parse a collection of String and display the results like this : ### CODE : begin ### value1,

Re: logic:iterate how to test the 1st and last iteration ?

2007-04-27 Thread Tim B
piloupy GOTTAPIL [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, What I want to do is quite simple. I'd like to know how to test in a logic:iterate when I'm at the first or last iteration. My present problem is to parse a collection of String and display the results like this

Re: logic:iterate tag!

2007-03-10 Thread Laurie Harper
bean:write name=afffiles property=fileName/ /logic:iterate - Original Message From: Laurie Harper [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, March 8, 2007 5:11:20 PM Subject: Re: logic:iterate tag! Swaminathan Subramanian wrote: All, I am working on application

Re: logic:iterate tag!

2007-03-09 Thread Swaminathan Subramanian
=AFFFiles bean:write name=afffiles property=fileName/ /logic:iterate - Original Message From: Laurie Harper [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, March 8, 2007 5:11:20 PM Subject: Re: logic:iterate tag! Swaminathan Subramanian wrote: All, I am working

Re: logic:iterate tag!

2007-03-09 Thread Dave Newton
--- Swaminathan Subramanian wrote: ArrayList alAFFFile = new ArrayList(); alFile.add(objAFFFiles[i]); session.setAttribute(AFFFiles, alAFFFile); Is the alFile.add a typo? d. Finding fabulous fares is

Re: logic:iterate tag!

2007-03-09 Thread Swaminathan Subramanian
I am sorry! It is a typo. - Original Message From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, March 9, 2007 2:34:26 PM Subject: Re: logic:iterate tag! --- Swaminathan Subramanian wrote: ArrayList alAFFFile = new ArrayList

Re: logic:iterate tag!

2007-03-08 Thread Laurie Harper
Swaminathan Subramanian wrote: All, I am working on application using Struts 1.0. I am trying to display an ArrayList of complex objects using the logic:iterate tag. Here's some more details - FileObj fileName fileSize fileType

RE: logic:iterate for arraylist of beans

2006-12-13 Thread mano dasanayake
Hi, As I understood what you have to do is, Iterate through your list and add checkboxes as folllwing... logic:iterate id=Emp type=... html:checkbox property=prop1 value=true onclick=submitForm(editaction.do?id=bean:write name=Emp property=ID/) / bean:write name=Emp property=name/

Re: logic:iterate for arraylist of beans

2006-12-13 Thread Kranti Parisa
Hi Mano, In the code you have written logic:iterate id=Emp type=... Emp should be the name of the ArrayList right? and in logic:iterate type is there? i hope you mean to say collection= .. and i need to submit the form after selecting what ever checkboxes that i need to delete and then click

RE: logic:iterate for arraylist of beans

2006-12-13 Thread mano dasanayake
: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 3:06 PM To: Struts Users Mailing List Subject: Re: logic:iterate for arraylist of beans Hi Mano, In the code you have written logic:iterate id=Emp type=... Emp should be the name of the ArrayList right? and in logic:iterate

Re: logic:iterate for arraylist of beans

2006-12-13 Thread Kranti Parisa
requirement specifically? Regards, Mano -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 3:06 PM To: Struts Users Mailing List Subject: Re: logic:iterate for arraylist of beans Hi Mano, In the code you have written logic:iterate id

RE: logic:iterate for arraylist of beans

2006-12-13 Thread Anil Kumar T
. -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 3:23 PM To: Struts Users Mailing List Subject: Re: logic:iterate for arraylist of beans Dear Mano, I need to display the employees from the emp table emp table is having following columns 1) empid 2

Re: logic:iterate for arraylist of beans

2006-12-13 Thread Kranti Parisa
- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 3:23 PM To: Struts Users Mailing List Subject: Re: logic:iterate for arraylist of beans Dear Mano, I need to display the employees from the emp table emp table is having following columns 1) empid 2) fname 3) lname

Re: logic:iterate for arraylist of beans

2006-12-13 Thread Kranti Parisa
. But if you get a better solution do let the group know Thanks regards, Anil. -Original Message- From: Kranti Parisa [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 3:23 PM To: Struts Users Mailing List Subject: Re: logic:iterate for arraylist of beans Dear Mano, I

Re: Logic:Iterate HashMap

2006-06-02 Thread Monkeyden
Use the name and property attributes in your iterate tag, where name is the name of your DTO and property is the name of the Map within the DTO. You can have a look at the docs here: http://struts.apache.org/struts-doc-1.2.7/userGuide/struts-logic.html On 6/2/06, Marco Mistroni [EMAIL

Re: logic:iterate offset and length dinamicaly

2006-03-22 Thread Michael Jouravlev
Using Struts-EL in JSP 1.2 container or JSTL expressions in JSP 2.0 container seems to be the simplest solution to me. logic-el:iterate id=subscription collection=${SubscriptionForm.subscriptions} offset=${SubscriptionForm.offset} length=${SubscriptionForm.pagesize}

RE: logic:iterate

2006-02-23 Thread Robert Alexandersson
I think there is an even easier solution. Code below... Java (the Array) import java.util.ArrayList; import org.apache.commons.beanutils.LazyDynaBean; public class MyLazyArray extends ArrayList { private Class persistentClass; public MyLazyArray(){

Re: logic:iterate and html:radio

2005-11-02 Thread Raghu Kanchustambham
Try the indexed=true property. I think that should do the trick. On 11/3/05, Bijay Sahoo [EMAIL PROTECTED] wrote: Hi All, I am new to struts,and have a problem and want some suggestion,my problem is : I get some questions from database (Dont know how many) may be 10,11,20... anything..

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

2005-10-28 Thread Laurie Harper
If the page is loading without errors but not rendering those tags, the most likely cause is missing taglib directives. Check the HTML source that gets generated to see if the tags are coming through as written in the JSP; if so, that's almost certainly what's wrong. L. Stephen Souness

RE: logic:iterate tag and form beans

2005-08-02 Thread Johnson, Kaerstin
Ok, If I am understanding the question correctly, you should be populating your array list in your bean with a objects of whatever represents a table row (such as an employee object), this object should have the attributes (name, id, address) you would like to render in the columns. Each object

RE: logic:iterate tag and form beans

2005-08-02 Thread BHansard
Example: DataBean: public class EmployeeBean(){ private String name = null; Private String dept = null; ... Getters and setters } FormBean: public class EmployeeForm extends ActionForm{ private Collection employees = new ArrayList(); ... Getters and

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

RE: logic:iterate multiple collections

2005-05-24 Thread Pushkala_Iyer
this in the way that only the values are seen. Does anyone have any pointers? Thanks, PS -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 6:42 PM To: Struts Users Mailing List Subject: Re: logic:iterate multiple collections From: Titus Barik [EMAIL PROTECTED

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

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

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 with

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 for

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

Re: logic:iterate problem...

2005-04-21 Thread Erik Weber
I think your List reference is probably null. Also, have you looked at html:options and html:optionsCollection? Erik Lucas Bern wrote: 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

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
Hmm I didn't even notice that. However, this is the section of code that throws that Exception (from 1.2.4 src): /** * Construct an iterator for the specified collection, and begin * looping through the body once per element. * * @exception JspException if a JSP exception has

Re: logic:iterate problem...

2005-04-21 Thread Jeff Beal
From http://struts.apache.org/userGuide/struts-logic.html#iterate: collection: A runtime expression that evaluates to a collection %=Globales.AreaPersonal.MODULOS_KEY% probably evaluates to a String. What you need is name='%=Globales.AreaPersonal.MODULOS_KEY%' On 4/21/05, Lucas Bern [EMAIL

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

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 on

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
Also, the items attribute should be enclosed in ${} as: c:forEach items=${formName.collectionProperty} var=item varStatus=s c:if test=${s.index = offset and s.index offset + length} var=displayable html:text property=collectionProperty value=${item} / /c:if

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

RE: logic:iterate fails on (large) collection

2004-07-13 Thread Matthias Wessendorf
only a quick hint. did you look into displaytags ? --http://displaytag.sourceforge.net/ i usem them for iterating. since they create HTML as well hope it helps (abit...) -Original Message- From: Trygve Hardersen [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 2:25 PM To:

Re: logic:iterate fails on (large) collection

2004-07-13 Thread Michael McGrady
At 05:24 AM 7/13/2004, you wrote: This is the page code: %@ include file=/common/taglibs.jsp% As you can see, this is not enough info. You might want to substitute escape characters for the html? - To unsubscribe, e-mail:

Re: logic:iterate fails on (large) collection

2004-07-13 Thread Bill Siggelkow
It is not the size of the collection you are having the problem with but more likely it is data-related. Make sure you view the source that gets generated -- that will usually clue you into the offending data. Hmm -- I noticed that you are using HTML comments !-- -- around some of your

Re: logic:iterate fails on (large) collection

2004-07-13 Thread Bill Siggelkow
Oops -- my bad -- the JSP comments are balanced %-- --% Bill Siggelkow wrote: It is not the size of the collection you are having the problem with but more likely it is data-related. Make sure you view the source that gets generated -- that will usually clue you into the offending data. Hmm --

RE: Logic:Iterate Problem

2004-06-23 Thread Robert Taylor
Assuming you have a scoped Collection named pageRecords: Struts tags: logic:iterate id=myID name=pageRecords td bean:write name=myID property=id / /td /logic:iterate JSTL: c:forEach var=user items=${pageRecords} c:out value=${user.id}/ /c:forEach robert -Original Message- From:

RE: Logic:iterate property

2004-06-10 Thread Satish Kataria
You can do it through bean:define or jsp:usebean custom tags Thanks, Satish -Original Message- From: Srilatha Ravuri [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 7:33 PM To: [EMAIL PROTECTED] Subject: Logic:iterate property Hi all, I have a question about the

Re: Logic:iterate

2004-06-09 Thread Lucas Gonzalez
Logic:iteratelogic:iterate id=navigationPage name=navigationBar indexId=index property=pages bean : write name=navigationPage property=title / /logic:iteratenbsp; - Original Message - From: Naresh Sharma To: Struts Users Mailing List Sent: Tuesday, June 08, 2004 1:39 PM

Re: logic:iterate beans and el

2004-06-09 Thread Rick Reumann
pls wrote: found out that in tomcat 4.1, el can ONLY be used inside of the jstl tags. downloading tomcat 5 right now.. Not sure what you mean by the above, but there are struts-el tags as well, which work with Tomcat4.x. -- Rick

Re: Logic:iterate property

2004-06-09 Thread Bill Siggelkow
Srilatha, By placing the 'list' in the session you can access it by name ... the Struts tags search the JSP scopes (page-request-session-application) if the scope is not explicitly specified ... the following link for the 'bean' taglib has a lot of info about how the 'name' and 'property'

Re: Logic:iterate

2004-06-08 Thread Bill Siggelkow
I am doing this from memory but I think it is right ... Let' suppose that the HashMap is exposed on the bean by the method Map getFooMap() {...} then you can use on your JSP: logic:iterate id=entry name=bean property=fooMap Key:bean:write name=entry property=key/br / Value:bean:write name=entry

Re: logic:iterate beans and el

2004-06-07 Thread pls
found out that in tomcat 4.1, el can ONLY be used inside of the jstl tags. downloading tomcat 5 right now.. pls [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 'bean1' is a bean created by logic:iterate and contains 'myHashMap'. I am trying to access the 'key' property of the bean so

RE: logic:iterate /

2004-05-04 Thread balu raman
Thanks Mark. I guess I have too many (out of date) books on Struts, 4 of them.Now, onto JSTL Regards, balu On Tue, 2004-05-04 at 00:14, Mark Mandel wrote: Balu - Use the JSTL c:forEach / tag - it's a faster and better tag. Generally use the JSTL tags over the Struts tags where

RE: logic:iterate /

2004-05-03 Thread Mark Mandel
Balu - Use the JSTL c:forEach / tag - it's a faster and better tag. Generally use the JSTL tags over the Struts tags where applicable. Regards, Mark -Original Message- From: balu raman [mailto:[EMAIL PROTECTED] Sent: Tuesday, 4 May 2004 5:56 AM To: Struts Users Mailing List Subject:

Re: logic:iterate over a collection of non-simple objects, how to fill them after submit

2004-04-21 Thread Lachdanan
Did I forget the ??? in the subject line so that no one answers? Lachdanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: logic:iterate over a collection of non-simple objects, how to fill them after submit

2004-04-21 Thread Daniel Henrique Alves Lima
What *exactly* is your question ? Is only the subject of your e-mail ? Lachdanan wrote: Did I forget the ??? in the subject line so that no one answers? Lachdanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: logic:iterate over a collection of non-simple objects, how to fill them after submit

2004-04-21 Thread Lachdanan
:-) No :-) plz look at my first message (first msg in this thread). When writing the second message I was a little bit frustrated that no one had answered yet! Thx in advance Lachdanan Daniel Henrique Alves Lima [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] What *exactly* is

Re: logic:iterate over a collection of non-simple objects, how to fill them after submit

2004-04-21 Thread Niall Pemberton
If your form is session scoped then the collection of beans will exist when your form is submitted back. For request scope, which I presume you are using, then you will need to generate your collection of beans. Theres been quite a bit of discussion on this list about how to do this - with a

RE: logic:iterate indexId=idx how to send idx with html:linktag

2004-04-19 Thread Janarthan Sathiamurthy
Hi, Use idx.intValue() Regards, Janarthan S -Original Message- From: ganesh g [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:26 PM To: [EMAIL PROTECTED] Subject: logic:iterate indexId=idx how to send idx with html:linktag Hi sir, Here is a problem with: logic:iterate

RE: logic:iterate indexId=idx how to send idx with html:linktag

2004-04-19 Thread ganesh g
Hi sir, Here is a problem with: logic:iterate id=audioList property=mtJobsList name=mtActionForm indexId=idx html:link href=/MTProd/mtFileView.do bean:write name=audioList property=filename//html:link /logic:iterate i want to send indexId=idx which is in iterate tag. with html:link tag as a

Re: logic:iterate indexId=idxhow to send idx in html:link

2004-04-19 Thread Nathan Maves
The html:link tag allows for one parameter to be set with it. Look at the api.. If you need to append more then one parameter then you will have to use jstl. Nathan On Apr 19, 2004, at 4:49 AM, ganesh g wrote: Hi sir, Here is a problem with: logic:iterate id=audioList property=mtJobsList

Re: logic:iterate indexId=idxhow to send idx in html:link

2004-04-19 Thread Bill Siggelkow
paramId - the name of the request parameter paramName - the name of the bean or object to get the parameter value from -- get the value for name unless paramProperty is specified paramProperty - the property to pull from the object specified in paramName So if you wanted the request param name

RE: Logic:iterate with html:text indexed properties

2004-04-15 Thread Takhar, Sandeep
You can manually create the property or use nested beans. sandeep -Original Message- From: Scherger, Derek [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 5:33 PM To: '[EMAIL PROTECTED]' Subject: Logic:iterate with html:text indexed properties I'm having a bit of a problem

RE: Logic:iterate with html:text indexed properties

2004-04-15 Thread Takhar, Sandeep
Mailing List' Subject: RE: Logic:iterate with html:text indexed properties I don't follow you... I am using nested beans and they aren't getting values set on them. The path being used in the call to BeanUtils.populate doesn't have the required prefix and this is because I'm using the property