RE: How to pass parameters to s:component inside s:iterator?

2019-10-06 Thread Yasser Zamani
? Regards. >-Original Message- >From: albert kao >Sent: Saturday, October 5, 2019 7:26 PM >To: Struts Users Mailing List >Subject: How to pass parameters to s:component inside s:iterator? > >How to pass parameters to s:component inside s:iterator? >e.g. These simpil

How to pass parameters to s:component inside s:iterator?

2019-10-05 Thread albert kao
How to pass parameters to s:component inside s:iterator? e.g. These simpilied codes pass the parameter "John" to items.jsp. However, the browser displays an empty string. items.jsp: />

Re: How to use s:iterator s:include s:param

2019-02-17 Thread Yasser Zamani
Hi Albert, I found following at [1]. "Note: Any additional params supplied to the included page are not accessible within the rendered page through the tag since no valuestack will be created. You can, however, access them in a servlet via the HttpServletRequest object or from a JSP page via a s

How to use s:iterator s:include s:param

2019-02-16 Thread albert kao
This display properly: I refactor to the following two files, which display nothing. I have other codes in items.jsp which confirms that items.jsp is being used in showitems.jsp. Please help. Thanks. items.jsp: showitems.jsp:

Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-19 Thread Antonios Gkogkakis
Hi John, You have to use var instead of id in the s:iterator tag. Antonios On 19 November 2013 07:06, Lukasz Lenart wrote: > Have you tried to use tag? > > 2013/11/19 john lee : > > > > > > from the following output, > >we can tell sell_price=3

Re: Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread Lukasz Lenart
Have you tried to use tag? 2013/11/19 john lee : > > > from the following output, >we can tell sell_price=36.97, display_price=1 > > why >none of test statement works ? > > > please advise, thanks in advance > > john > > > > Class Part { > float sell_price; >

Struts 2, session, s:iterator s:if not working, please help (this is revised)

2013-11-18 Thread john lee
from the following output,    we can tell sell_price=36.97, display_price=1 why    none of test statement works ? please advise, thanks in advance john   Class Part { float sell_price;     int display_price;     ./*..get set here */ Act

Re: class has set member, how s:iterator to access it?

2013-07-02 Thread Lukasz Lenart
2013/7/3 john lee : > I use Lucas's suggestion, but still can not get value out > > please advise how to get list member of an class from stack. > > thanks in advance > > john > > > > The problem can be with the name of property, try to rename it to xrefTypeCo

Re: class has set member, how s:iterator to access it?

2013-07-02 Thread CRANFORD, CHRIS
Subject: Re: class has set member, how s:iterator to access it? I use Lucas's suggestion, but still can not get value out please advise how to get list member of an class from stack. thanks in advance john                                     From:

Re: class has set member, how s:iterator to access it?

2013-07-02 Thread john lee
15 PM Subject: class has set member, how s:iterator to access it? i have an the following 2 class Part is just parts itself Partxref is the accesary(component) of part.     class Part {                     String  manufacture;                     String  pid;                     private Set part

Re: class has set member, how s:iterator to access it?

2013-06-30 Thread Lukasz Lenart
2013/6/29 john lee : > but, i try to access partxref {component(subset) } of parts, failed. > > > > > > >value="#partxref.xref_type_code"/> > > >

class has set member, how s:iterator to access it?

2013-06-28 Thread john lee
i have an the following 2 class Part is just parts itself Partxref is the accesary(component) of part.     class Part {                     String  manufacture;                     String  pid;                     private Set partxrefs=new HashSet();                     /* set, get .here */  

how to acess sublist of list from s:iterator

2013-06-28 Thread john lee
i have an the following 2 class Part is just parts itself Partxref is the accesary(component) of part.     class Part {                     String  manufacture;                     String  pid;                     private Set partxrefs=new HashSet();                     /* set, get .here */

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-24 Thread Omar Ngarigari
: s:checkbox inside s:iterator in struts2.3.1.2 2012/9/24 Omar Ngarigari : > Hello, > > I changed my JSP page as per the documentation recommendation: > > > > > > And works ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-24 Thread Omar Ngarigari
"setAge" failed for object From: Lukasz Lenart To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, September 24, 2012 12:50 AM Subject: Re: s:checkbox inside s:iterator in struts2.3.1.2 2012/9/24 Omar Ngarigari : > Hello, > > Please

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-24 Thread Lukasz Lenart
2012/9/24 Omar Ngarigari : > Hello, > > I changed my JSP page as per the documentation recommendation: > > > > > > And works ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-un

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-24 Thread Omar Ngarigari
Hello, I changed my JSP page as per the documentation recommendation:   From: Lukasz Lenart To: Struts Users Mailing List ; Omar Ngarigari Sent: Monday, September 24, 2012 12:50 AM Subject: Re: s:checkbox inside s:iterator in struts2.3.1.2 2012/9/24

Re: s:checkbox inside s:iterator in struts2.3.1.2

2012-09-23 Thread Lukasz Lenart
2012/9/24 Omar Ngarigari : > Hello, > > Please help, I am having problem that I cannot figure out how to solve it. > The problem is as follow: > > 1. JSP page: > > > > > > > 2. Action Class > public class ExampleAction extends ActionSupport { > private List myList = new ArrayList(); > private

s:checkbox inside s:iterator in struts2.3.1.2

2012-09-23 Thread Omar Ngarigari
Hello, Please help, I am having problem that I cannot figure out how to solve it. The problem is as follow: 1. JSP page: 2. Action Class public class ExampleAction extends ActionSupport { private List myList = new ArrayList(); private List stringList = new ArrayList(); private int age; get

Re: s:iterator status doubt

2010-04-12 Thread Dale Newfield
Burton Rhodes wrote: fieldValue="%{notificationID}" onclick="%{'javascript:markNotification('+#stat.index+');'}"/> -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h.

Re: s:iterator status doubt

2010-04-12 Thread Burton Rhodes
Does %{#stat.index} not work? On 4/12/10, lucas owen wrote: > Hi Struts users: > > I'm wondering if it would be possible to pass status.index attribute of > s:iterator to a javascript function. > Something like this: > > > > > >

s:iterator status doubt

2010-04-12 Thread lucas owen
Hi Struts users: I'm wondering if it would be possible to pass status.index attribute of s:iterator to a javascript function. Something like this: Thanks in advance!

Re: s:iterator did not return result?

2010-01-19 Thread Emi Lu
I have a problem of running the example: http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html JSP is: Title Genre true">oddeven"> View sources, only see: Title Genre Codes under itera

s:iterator did not return result?

2010-01-19 Thread Emi Lu
Good morning, I have a problem of running the example: http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html JSP is: Title Genre true">oddeven"> View sources, only see: Title Genre Codes u

Re: s:iterator ¿begin -> end?

2009-11-04 Thread Musachy Barroso
> > Am 04.02.2009 16:04, schrieb Ignacio de Córdoba: >> >> Hi there, >> I've checked struts2 docs and this forum and have found no inside syntax >> for >> s:iterator tag to do: >> >> >> Examples in docs just show how to count from 1 to 5

Re: s:iterator ¿begin -> end?

2009-11-04 Thread Volker Karlmeier
With 2.1.8, you can use ... But it still has a bug: see http://issues.apache.org/struts/browse/WW-3314 Regards Volker Am 04.02.2009 16:04, schrieb Ignacio de Córdoba: Hi there, I've checked struts2 docs and this forum and have found no inside syntax for s:iterator tag to do: Exa

Re: s:checkbox inside a s:iterator and values in a Integer[]

2009-07-12 Thread Ignacio de Córdoba
Thanks a lot for reply. It works OK that way. I had to make a getter for the Category objects as a List and maintain the setter for the categoryId Integer array. It would be great if s:checkbox could also check when to pre-check the checkbox in the same way as s:checkboxlist does (I think I used s

Re: s:checkbox inside a s:iterator and values in a Integer[]

2009-07-12 Thread Musachy Barroso
you need to specify the "value" attribute, which is the one that will make it checked or not, for example, assume "possibleValues" is the list of possible values, and "selectedValues" is the list of currently selected values, and both lists contain objects that have an int "id" field (same type of

s:checkbox inside a s:iterator and values in a Integer[]

2009-07-12 Thread Ignacio de Córdoba
Hello, I've browsed nabble, google, ... but can't find a simple example on how to do something very simple. I need to iterate through, let's say, a picture category list, showing each category as a s:checkbox. The picture belongs to some of these categories (and user can changed that, or course,

Re: s:iterator and form submission

2009-05-07 Thread Dave Newton
Rene Gielen wrote: http://struts.apache.org/2.1.6/docs/tabular-inputs.html In addition (it's on my infinite list of things I have no time for) AFAIK if there are multiple parameters with the same name and a collection property (like a List) they'll be marshalled into the list automagically w

Re: s:iterator and form submission

2009-05-07 Thread Rene Gielen
http://struts.apache.org/2.1.6/docs/tabular-inputs.html cm132005 schrieb: When the Edit is submitted, the aId passed in is actually a String of comma separated aIds of all aVOs. The requirement is such that I need to use the same for

s:iterator and form submission

2009-05-07 Thread cm132005
When the Edit is submitted, the aId passed in is actually a String of comma separated aIds of all aVOs. The requirement is such that I need to use the same form instead of having a s:form tag within the iterator. How to submit the correc

Re: how to achieve this with s:iterator tag

2009-04-25 Thread Wes Wannemacher
On Saturday 25 April 2009 10:20:43 am Bhaarat Sharma wrote: > is there no way to overcome this drawback? > > do i have to change the way I am getting my results from the DB to suit the > iterator tags drawback in this case? You call it a drawback, I call it a feature... I don't know if I'd want to

Re: how to achieve this with s:iterator tag

2009-04-25 Thread Bhaarat Sharma
is there no way to overcome this drawback? do i have to change the way I am getting my results from the DB to suit the iterator tags drawback in this case? On Fri, Apr 24, 2009 at 5:25 PM, Bhaarat Sharma wrote: > I have the following code in jsp scriplet > <% > ArrayList statist

how to achieve this with s:iterator tag

2009-04-24 Thread Bhaarat Sharma
I have the following code in jsp scriplet <% ArrayList statisticsList = something.getStatistics(); Iterator itr1 = statisticsList.iterator(); while (itr1.hasNext()) { dvo3_a = (VerificationVO) itr1.next();

S:Iterator break out of it according to a condition

2009-03-12 Thread Ransika de Silva
Hello all, I have a list to iterate and according to a certain logic I want the iteration to stop and break out of the iteration. Similar to the break in java inside a loop. Any idea how I can achieve this? Regards, Ransika

How to manage s:radio or s:select in s:iterator (Struts2)

2009-03-06 Thread Degoutin Jean-Philippe
My problem is as follow : I iterate over a map of objects and theses objects contains a property that I want to expose in a s:radio. Like this : I got a map "myMap" with 2 properties : - P1, the unique identifier of the object (P1 is also the key value of the map)

How to manage s:radio or s:select in s:iterator (Struts2)

2009-03-06 Thread Degoutin Jean-Philippe
My problem is as follow : I iterate over a map of objects and theses objects contains a property that I want to expose in a s:radio. Like this : I got a map "myMap" with 2 properties : - P1, the unique identifier of the object (P1 is also the key value of the map)

Re: about s:iterator

2009-02-21 Thread Hardik Shah
>>>> // Can Edit Flag >>>> rs.getString("canDeleteFlag"), >>>> // Can Delete Flag >>>>new Integer(rs.getInt("iformNo")),

Re: about s:iterator

2009-02-20 Thread Hardik Shah
yap you right newton.dave wrote: > > > > Maybe try [0][n]? > > But yuck... That's a horribly brittle way to write code. At *least* use > a map so you don't have to rely on positioning :/ Consider using an > actual object, as well, thus eliminating the bulk of this question. > > Dave >

Re: about s:iterator

2009-02-20 Thread Dave Newton
quot;), //filename rs.getDate("ModifyOn"), //file last modified on rs.getString("UserDefineVersionId") }; nodeInfo.addElement(rec

Re: about s:iterator

2009-02-20 Thread Sébastien Domergue
//file last modified on rs.getString("UserDefineVersionId") }; nodeInfo.addElement(record); how can i get particular field at jsp side in s:iterator somthing like that but i can not please help me

Re: about s:iterator

2009-02-20 Thread Hardik Shah
gt; rs.getString("Filename"), >> //filename >> rs.getDate("ModifyOn"), >>

Re: about s:iterator

2009-02-20 Thread Sébastien Domergue
rs.getDate("ModifyOn"), //file last modified on rs.getString("UserDefineVersionId") }; nodeInfo.addElement(reco

about s:iterator

2009-02-20 Thread Hardik Shah
ilename"), //filename rs.getDate("ModifyOn"), //file last modified on rs.getString("UserDefineVersionId") };

Re: s:iterator ¿begin -> end?

2009-02-05 Thread Greg Lindholm
Great! Thanks a lot for this, it was needed. Musachy Barroso wrote: > > Ok, here is the Jira ticket: > > https://issues.apache.org/struts/browse/WW-2984 > > I committed the changes to the iterator tag, here is how it works: New > attributes "begin", "end" and "step" were added. They can be us

Re: s:iterator ¿begin -> end?

2009-02-05 Thread Musachy Barroso
an object in the page scope and >> use EL where. Painful for something that should be straightforward. >> >> Well... sorry for the long text. Please don't take me wrong. Just love >> struts2 and would love to forget about old technnologies. I wish I had time >>

Re: s:iterator ¿begin -> end?

2009-02-05 Thread Dave Newton
Martin Gainty wrote: Where is the upside down question-mark key??? ˙ɔɐɯ ǝɥʇ uo ¿-ʇɟıɥs-ʇdo ǝɥʇ s,ʇı Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.o

Re: s:iterator ¿begin -> end?

2009-02-05 Thread Musachy Barroso
would love to forget about old technnologies. I wish I had time > and knowledge to help on all this. Now I just can't. > > > newton.dave wrote: >> >> Ignacio de Córdoba wrote: >>> Hi there, >>> I've checked struts2 docs and this forum and have fo

Re: s:iterator ¿begin -> end?

2009-02-05 Thread Ignacio de Córdoba
We have it standard in spanish keyboards close to the downside up one :-) Wes Wannemacher wrote: > > On Wednesday 04 February 2009 23:05:06 Martin Gainty wrote: >> Dave and Crew >> >> Where is the upside down question-mark key??? >> > > It's ALT-F4 > > :) > > -Wes > > -- > > Wes Wannemach

Re: s:iterator ¿begin -> end?

2009-02-04 Thread Wes Wannemacher
On Wednesday 04 February 2009 23:05:06 Martin Gainty wrote: > Dave and Crew > > Where is the upside down question-mark key??? > It's ALT-F4 :) -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/

RE: s:iterator ¿begin -> end?

2009-02-04 Thread Martin Gainty
Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Wed, 4 Feb 2009 21:28:03 -0500 > From: newton.d...@yahoo.com > To: user@struts.apache.org > Subject: Re: s:ite

Re: s:iterator ¿begin -> end?

2009-02-04 Thread Ignacio de Córdoba
nd knowledge to help on all this. Now I just can't. newton.dave wrote: > > Ignacio de Córdoba wrote: >> Hi there, >> I've checked struts2 docs and this forum and have found no inside syntax >> for >> s:iterator tag to do: >> >> >> Examples i

Re: s:iterator ¿begin -> end?

2009-02-04 Thread Dave Newton
Ignacio de Córdoba wrote: Hi there, I've checked struts2 docs and this forum and have found no inside syntax for s:iterator tag to do: Examples in docs just show how to count from 1 to 5 ¿? I'd like to avoid counting and using indexed property to access an iterator. The last examp

s:iterator ¿begin -> end?

2009-02-04 Thread Ignacio de Córdoba
Hi there, I've checked struts2 docs and this forum and have found no inside syntax for s:iterator tag to do: Examples in docs just show how to count from 1 to 5 ¿? I'd like to avoid counting and using indexed property to access an iterator. The last example in docs doesnt seem to

Re: Check if object in list (s:iterator additional constraint)

2008-08-05 Thread Gabriel Belingueres
Did you tested with 'not in' instead of '!'? 2008/8/5 netslow <[EMAIL PROTECTED]>: > > People, I'm really confused. I'm still haven't found any solution. > Any ideas? > > > netslow wrote: >> >> I hello experts. I'm quite new in struts2, and I have a question. >> I have an action ShowReports which

Re: Check if object in list (s:iterator additional constraint)

2008-08-05 Thread netslow
People, I'm really confused. I'm still haven't found any solution. Any ideas? netslow wrote: > > I hello experts. I'm quite new in struts2, and I have a question. > I have an action ShowReports which returns two lists of reports: reports > and badReports. > I would like to show these reports bu

Check if object in list (s:iterator additional constraint)

2008-07-29 Thread netslow
I hello experts. I'm quite new in struts2, and I have a question. I have an action ShowReports which returns two lists of reports: reports and badReports. I would like to show these reports bud I need also check if current report belongs to badReports list, and if it does notify user about it. Wha

RE: [S2] s:iterator tag - var or id

2008-07-09 Thread Timothy Wonil Lee
Ah.. I see. Thank you. Timothy Wonil Lee Java Developer http://timundergod.blogspot.com/ -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 July 2008 4:58 PM To: Struts Users Mailing List Subject: Re: [S2] s:iterator tag - var or id Unfortunately those

RE: Re: [S2] s:iterator tag - var or id

2008-07-09 Thread [EMAIL PROTECTED]
ure what > the technical reason that prevents the documentation being versioned > like the rest of the code, maybe one of the committers can explain. > (*Chris*) > On Tue, Jul 8, 2008 at 11:53 PM, Timothy Wonil Lee > <[EMAIL PROTECTED]> wrote: >> Hi all, >> >&g

Re: [S2] s:iterator tag - var or id

2008-07-08 Thread Chris Pratt
f the code, maybe one of the committers can explain. (*Chris*) On Tue, Jul 8, 2008 at 11:53 PM, Timothy Wonil Lee <[EMAIL PROTECTED]> wrote: > Hi all, > > I was trying to use s:iterator tag, and when I looked at the documentation > on http://struts.apache.org/2.0.11.2/docs/

[S2] s:iterator tag - var or id

2008-07-08 Thread Timothy Wonil Lee
Hi all, I was trying to use s:iterator tag, and when I looked at the documentation on http://struts.apache.org/2.0.11.2/docs/iterator.html it says, attribute (parameter) 'id' is deprecated and 'var' should be used. So I did: However, my IDE complained about the attribute &

Re: Struts2 CheckBox tag inside an s:iterator

2008-03-04 Thread Skip Hollowell
, and one I too am currently struggling with. Skip Hollowell Mano Dasanayaka-2 wrote: Hi All, I have a jsp where we list down some dynamic checkboxes. for this we use s:checkbox tag inside a s:iterator , name="fullMarket" fieldValue="${entry.packageId}"

Struts2 CheckBox tag inside an s:iterator

2008-03-04 Thread Mano Dasanayaka
Hi All, I have a jsp where we list down some dynamic checkboxes. for this we use s:checkbox tag inside a s:iterator , in my action class I have a string[] named fullMarket and all the required getters and setters are provided there. Everything happens successfully, when we submit

RE: 3 columns s:iterator

2007-12-24 Thread Al Sutton
book in good ol' fashioned print form :). -Original Message- From: Rodrigo Pereira [mailto:[EMAIL PROTECTED] Sent: 24 December 2007 02:18 To: Struts Users Mailing List Subject: 3 columns s:iterator Hi, is there a simple nice way of displaying a list of objects in a 3 coluns table? Is there any

Re: 3 columns s:iterator

2007-12-23 Thread Ray
Rodrigo Pereira 写道: Hi, is there a simple nice way of displaying a list of objects in a 3 coluns table? Is there any attribute I can use on s:iterator? Right now I can only print one at a row or all in one row

3 columns s:iterator

2007-12-23 Thread Rodrigo Pereira
Hi, is there a simple nice way of displaying a list of objects in a 3 coluns table? Is there any attribute I can use on s:iterator? Right now I can only print one at a row or all in one row

Re: 'root' is not allowed as status in s:iterator?

2007-09-15 Thread Alex Funk
Dave Newton wrote: --- Alex Funk <[EMAIL PROTECTED]> wrote: Is this a bug or a feature? "root" may refer to the root of the OGNL stack, but I can't verify that at the moment. You could probably test that theory, though. Thanks for the reply, Dave. Yes, returns the value stack. But I wonder

Re: 'root' is not allowed as status in s:iterator?

2007-09-14 Thread Dave Newton
--- Alex Funk <[EMAIL PROTECTED]> wrote: > Is this a bug or a feature? "root" may refer to the root of the OGNL stack, but I can't verify that at the moment. You could probably test that theory, though. d. - To unsubscribe, e-m

'root' is not allowed as status in s:iterator?

2007-09-14 Thread Alex Funk
Hi, after some debugging I found that I can't use any identifier starting with 'root' as status in s:iterator. The following code in my jsp: --- #stat.index = #root.index = #rootAtTheBeginOfI

Re: s:iterator tag

2007-08-10 Thread Marcos Mendonça
I managed to make it work by acessing the ArrayList.iterator() method. That is, I had to create another class member of the type Iterator, create getters and setters for it, and the use that member in the .jsp. On 8/9/07, Marcos Mendonça <[EMAIL PROTECTED]> wrote: > Yes, I did. ArrayList has somet

Re: s:iterator tag

2007-08-09 Thread Marcos Mendonça
Yes, I did. ArrayList has something in it. I managed to print it's size and log the file name, the one I'd like to print with the JSP. On 8/9/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Marcos Mendonça wrote: > > I have an action that generates an ArrayList of the > > files in a given direct

Re: s:iterator tag

2007-08-09 Thread Dave Newton
--- Marcos Mendonça wrote: > I have an action that generates an ArrayList of the > files in a given directory. Do you know that it's generating a list with any files in it (determine via logging for the most complete information or put something else in the loop as a quick sanity check)? d.

s:iterator tag

2007-08-09 Thread Marcos Mendonça
Hello I'm going crazy trying to use the s:iterator tag. I have an action that generates an ArrayList of the files in a given directory. In my JSP I'd like to show this files as a list. Here's my action's code: File dir = new File(props.getProperty("files.saveDir&q

[S2] Is s:iterator tag allowed inside s:url tag?

2007-07-30 Thread Srinivas.N.
I'm trying to generate a URL dynamically from a map of name, value pairs using the s:url & s:iterator tags. The code I tried looks like the following: Struts2 seems to totally ignore the iterator tag inside the url tag and none of the params in the map are added to th

RE: nested s:iterator

2007-06-20 Thread Dave Newton
--- "Hartrich, James CTR USTRANSCOM J6" wrote: > Quick follow up to correct myself. This works: > Yeah, that ;) d. Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay

Re: nested s:iterator

2007-06-20 Thread Dave Newton
--- "Hartrich, James CTR USTRANSCOM J6" wrote: > I'd probably try something like #row[#columnName] (or maybe #row[(#columnName)] to force OGNL to eval again); I'm doing something similar but I don't have the example in front of me at the moment. d. ___

RE: nested s:iterator

2007-06-20 Thread Hartrich, James CTR USTRANSCOM J6
20, 2007 9:17 AM To: Struts Users Mailing List Subject: nested s:iterator How would one iterate a bean's collection "row" values by key of bean's collection "columnName"? Here's what I have on the jsp: Neith

nested s:iterator

2007-06-20 Thread Hartrich, James CTR USTRANSCOM J6
How would one iterate a bean's collection "row" values by key of bean's collection "columnName"? Here's what I have on the jsp: Neither s:property shows any values. Can anyone throw me a bone here? James --

ValueStack - retrieve parent object inside s:iterator

2007-05-16 Thread Michał Letyński
Hi. The code: On this rendered page i had a tag which format and display properties of this object. I retrieve those fields,properties in this way: stack.findValue("field") where stack is a ValueStack object. So i had an access to all fields of this object, but i want get the object not

Re: Weird s:iterator behavior

2007-03-31 Thread Dave Newton
--- new2you <[EMAIL PROTECTED]> wrote: > Is there ANYTHING I could be doing wrong that causes > this behavior? Always hearing "S2 is thread-safe"... (1) Once you're accessing non-local data, like something from the application or session contexts, it's no longer "autmagically" thread-safe, becaus

Weird s:iterator behavior

2007-03-31 Thread new2you
Hi! I've got quite the strange problem, in particular with the "iterator"-tag Outline: I'm having a arraylist of objects in the session; accessing this list via the iterator-tag; within the iterator, accessing some attributes of the objects; the following happens: Sometimes, the list is not itera

Tag s:iterator is throwing ConcurrentModificationException

2007-03-27 Thread Felipe Rodrigues
When I try iterate using tag I get a ConcurrentModificationException. The flow of my application is: I insert an user and I notify a topic to list all the users. It is in a memory stored List. Does any one got this error or even know how to fix that? Here is my code.

Re: [s2] how to make s:iterator work

2007-01-16 Thread walidito
Now i understand better what struts 2 was doin, thanks ! Laurie Harper wrote: > > Making the getListOfBooks() method public is the way to go; then you can > remove the setAttribute() stuff from your execute() method. Struts will > make any public getter on your action available directly. > >

Re: [s2] how to make s:iterator work

2007-01-16 Thread Laurie Harper
Making the getListOfBooks() method public is the way to go; then you can remove the setAttribute() stuff from your execute() method. Struts will make any public getter on your action available directly. L. walidito wrote: Hi thanks a lot, what you said about the private method is right. I don

RE: [s2] how to make s:iterator work

2007-01-16 Thread Dave Newton
From: cilquirm [mailto:[EMAIL PROTECTED] > the problem for you is that since listOfBooks is not in the valuestack > directly, you would have to reference it via the request object, like > so If your Action has a publicly-visible getListOfBooks method: <%-- etc. --%> Setting listOfBooks v

Re: [s2] how to make s:iterator work

2007-01-16 Thread walidito
Hi thanks a lot, what you said about the private method is right. I don't know if it is the best solution, but it works well when I changed the method to public, so thanks. However, I' gonna try your last solution to see. regards, cilquirm wrote: > > > scratch my original comment ( though the

Re: [s2] how to make s:iterator work

2007-01-16 Thread cilquirm
scratch my original comment ( though the part regarding using the jstl is still valid. ) the problem for you is that since listOfBooks is not in the valuestack directly, you would have to reference it via the request object, like so ... walidito wrote: > > Hi everybody. > I have a problem

Re: [s2] how to make s:iterator work

2007-01-16 Thread cilquirm
I don't know particularly about the s:iterator, but since you said you're using JSP, you can access the model via the jstl tags just as easily : ${book.author} though, looking at your code again, I suspect it's because your getter is class private. It would have to

[s2] how to make s:iterator work

2007-01-16 Thread walidito
Hi everybody. I have a problem with displaying a list of objects that I extract from a hibernate database. I' searching for the simpler and the better way to do it please. I have two issues : I am not sure about how to send it to the jsp. For the moment I am trying this one from my action : priv

Re: [S2] s:iterator and s:checkboxlist inside (using 2.0.2 trunk)

2006-12-22 Thread Dariusz Wojtas
I have found a solution after lots of experiments. I am still not sure what caused the problems (I tried tons of variants in the JSP) but finally it started to work. No changes in the action code, only in the JSP block. It started to work after I added jstl into the game and dropped the s:iterate

[S2] s:iterator and s:checkboxlist inside (using 2.0.2 trunk)

2006-12-22 Thread Dariusz Wojtas
Hi, I have such properties in my action: private ArrayList extensionGroups = null; private HashMap> groupedExtensions = null; The 1st list contains only some 'Extension' elements. The 2nd map contains other lists of extensions (values) with some property (treeNo) from the parent used as the key

[S2] s:iterator/c:forEach

2006-12-06 Thread Dave Newton
Hi, s:iterator works over various collections; yesterday I had a need to do a simple iteration using an S2-style scope param. I did the s:set/c:forEach thing but I thought that was kind of ugly; any likelihood that s:iterator will be expanded or there will be an s:loop kinda thang? Dave

Re: S:ITERATOR

2006-10-26 Thread Ted Husted
The simplest thing is to expose the vproperty through the Action class, and the tag will find it there automatically. That way the tag doesn't need to know anything about scopes. So, on the Action place a property that obtains the value from application scope. The MailReader application does this

S:ITERATOR

2006-10-25 Thread Juan Espinosa
Im using the tag iterator to iterato over a list of objects in the user session. Anyone knows hot to iterate over a list in the application day is: sometingh like this day is: Regards Juan.