Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Mike Elliott wrote the following on 7/18/2005 3:18 PM: I came up with another solution which might be worthy of consideration. Instead of using arrays, extend a list with the desired get( int ) method and use that list instead: public class SkillActionForm extends ActionForm { protecte

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Andrew Tomaka
I've stumbled across a similar problem that I'm trying to find the Struts solution for. I have a form which allows users to add a dynamic amount of rows (via a button that says "Add Row") and then submit the form with as little or many rows as they wish. Can a form bean be setup using collections

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Mike Elliott
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > I'm still not totally clear where the problem is, since I'm not sure > what Session has to do with the initial setup of the form. The difference is unobvious, I admit, but this is what I was thinking of: If I use a session bean, I can do some

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Andrew Tomaka wrote the following on 7/18/2005 2:13 PM: I have a form which allows users to add a dynamic amount of rows (via a button that says "Add Row") and then submit the form with as little or many rows as they wish. Can a form bean be setup using collections instead of other object types

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/18/2005 3:59 PM: ActionForm.reset() for session-scoped forms, ActionForm.ActionForm() for request-scoped forms. I do not remeber, if reset() is called for request-scoped forms. Yes, reset is always called when the form submits. I know I mentioned in

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Mike Elliott <[EMAIL PROTECTED]> wrote: > If I use a session bean, I can do some sort of setup (from an > Action) on its initial creation, including creating the list of > contained objects. That can't happen if it's in request scope because > there is no chance to invoke the setup bef

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Mike Elliott wrote the following on 7/18/2005 10:55 AM: I've been beating my head against this all weekend to no avail. I understand how to do this in session scope, but don't know if it's even possible in request scope. As I understand things (which may be wrong), when the form is submitted (

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Mike Elliott <[EMAIL PROTECTED]> wrote: > > Well I could see for large forms with nested data it might not be a > > great idea to keep these around in the Session. I 'try' to stick to > > using the Request when I can but I don't bend over backwards like > > some do on this list to a

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Mike Elliott
> Well I could see for large forms with nested data it might not be a > great idea to keep these around in the Session. I 'try' to stick to > using the Request when I can but I don't bend over backwards like > some do on this list to avoid the Session.. I'm in "The Session is your > friend" ca

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote the following on 7/18/2005 3:59 PM: > > > ActionForm.reset() for session-scoped forms, ActionForm.ActionForm() > > for request-scoped forms. I do not remeber, if reset() is called for > > request-scoped forms. > > Yes,

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Martin Gainty
just found 10,000 ways that won't work."-- Thomas Edison - Original Message - From: "Mike Elliott" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 18, 2005 10:55 AM Subject: Re: Iterate over list in in list in form bean.

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Niall Pemberton
There are ways to resolve this, see this page on the wiki http://wiki.apache.org/struts/StrutsCatalogLazyList Niall - Original Message - From: "Mike Elliott" <[EMAIL PROTECTED]> Sent: Monday, July 18, 2005 3:55 PM On 7/13/05, Jörg Eichhorn <[EMAIL PROTECTED]> wrote: > thanks for the

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Mike Elliott
On 7/13/05, Jörg Eichhorn <[EMAIL PROTECTED]> wrote: > thanks for the hint and example. I've choosen the nested way to do this, > because i > think this makes the jsp code more readable. > > I there a way to do the same using request scope? > When i do this i get an exception because the collecti

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > It's not Friday, but I'd like to now what you need the JSTL tags for? What > is it, what you can't do with standart (struts without EL) tags? What do you > need EL for? > > Regards > Leon :-) How about "I want to fork Struts into StrutsWork

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Wendy Smoak wrote the following on 7/13/2005 6:14 PM: > > > Struts-EL gives you the ability to use expressions in the Struts tags. I > > think it's more than a convenience... for example, how would you rewrite the > > code above if you could n

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Rick Reumann
Wendy Smoak wrote the following on 7/13/2005 6:14 PM: Struts-EL gives you the ability to use expressions in the Struts tags. I think it's more than a convenience... for example, how would you rewrite the code above if you could not use an expression in the 'value' attribute? Struts-EL tags ar

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Wendy Smoak
From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > > > > > > is Struts-EL tag, is not it? I would prefer to use JSTL > only. I think I can do that. But it this case, what Struts-EL is for? > For convenience only? Struts-EL gives you the ability to use expressions in the Struts ta

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > >> Showing side by side examples from > >>Struts "classic", > >>Struts-EL + JSTL 1.0, and > >>Struts + JSP 2.0 + JSTL 1.1 > >> is on my TODO list > > > Does the above mean that "Stru

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Laurie Harper
Michael Jouravlev wrote: On 7/12/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Michael Jouravlev wrote: Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) is not possible? I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would you want to? http://jak

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Wendy Smoak
From: "Michael Jouravlev" <[EMAIL PROTECTED]> >> Showing side by side examples from >>Struts "classic", >>Struts-EL + JSTL 1.0, and >>Struts + JSP 2.0 + JSTL 1.1 >> is on my TODO list > Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) > is not possible? (Is this

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Jörg Eichhorn
Hi Martin, i didn't think of the users who deleted previous posts. Here you can find it: http://www.mail-archive.com/user%40struts.apache.org/msg30141.html --On Mittwoch, 13. Juli 2005 09:59 -0400 Martin Gainty <[EMAIL PROTECTED]> wrote: Jörg Hard to answer a reference to a previous posti

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/12/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote: > > Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) > > is not possible? > > I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would > you want to? http://jakarta.apache.org/tag

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Martin Gainty
the referenced info.. Vielen Danke, Martin - Original Message - From: "Jörg Eichhorn" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, July 13, 2005 4:47 AM Subject: Re: Iterate over list in in list in form bean. Hello, thanks for the hint

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Jörg Eichhorn
Hello, thanks for the hint and example. I've choosen the nested way to do this, because i think this makes the jsp code more readable. I there a way to do the same using request scope? When i do this i get an exception because the collection is not re-filled anymore. In my previous example th

Re: Iterate over list in in list in form bean.

2005-07-12 Thread Laurie Harper
Michael Jouravlev wrote: Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) is not possible? I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would you want to? L. -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~lau

Re: Iterate over list in in list in form bean.

2005-07-12 Thread Rick Reumann
Wendy Smoak wrote the following on 7/12/2005 7:48 PM: From: "Rick Reumann" <[EMAIL PROTECTED]> Here's an example from a demo app that I keep meaning to post to show how it can be done using either the nested or regular JSTL tags... Please do! Showing side by side examples from Struts "cl

Re: Iterate over list in in list in form bean.

2005-07-12 Thread Michael Jouravlev
On 7/12/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Rick Reumann" <[EMAIL PROTECTED]> > > > Here's an example from a demo app that I keep meaning > > to post to show how it can be done using either the nested or regular > > JSTL tags... > > Please do! Showing side by side examples from

Re: Iterate over list in in list in form bean.

2005-07-12 Thread Wendy Smoak
From: "Rick Reumann" <[EMAIL PROTECTED]> > Here's an example from a demo app that I keep meaning > to post to show how it can be done using either the nested or regular > JSTL tags... Please do! Showing side by side examples from Struts "classic", Struts-EL + JSTL 1.0, and Struts + JSP

Re: Iterate over list in in list in form bean.

2005-07-12 Thread Rick Reumann
Wendy Smoak wrote the following on 7/12/2005 7:12 PM: From: "Jörg Eichhorn" <[EMAIL PROTECTED]> i have a form bean with a list property of complex object which also contains a list of objects. When iterating over the first list and using indexed elements, then values of the first list are trans

Re: Iterate over list in in list in form bean.

2005-07-12 Thread Wendy Smoak
From: "Jörg Eichhorn" <[EMAIL PROTECTED]> > i have a form bean with a list property of complex object which also > contains a list of objects. When iterating over the first list and using > indexed elements, then values of the first list are transferred back when > submitting the form. The values o