RE: Scope of form beans

2002-09-22 Thread Robert Taylor
changes and forwards back to the list. Let me know if you need more clarification. robert -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 21, 2002 2:27 PM To: Struts Users Mailing List Subject: Re: Scope of form beans Errr.. may I take

Scope of form beans

2002-09-21 Thread Howard Miller
Hi, I'm a bit confused... so I hope this makes some sense. I wish to display a form for the user to edit. BUT the form isn't empty it needs to come from a bean that is sitting in an ArrayList. Is there some way to do this directly? My answer (that doesn't work) is to create a standalone bean

Re: Scope of form beans

2002-09-21 Thread kiuma
1) save the array list in the http session. 2) don't call jsp, but call the action related to it. 3) Pick your data from ArrayList 4) Cast the variable form in execute method ( or equvalent ) to the related form 5) Fill that form with the data jet picked. You'll display the data. Howard

Re: Scope of form beans

2002-09-21 Thread Eddie Bush
So you're trying to pre-populate a form? ... which you're just about to show a user? link - action f- JSP (f- == forward) - link points to action - action populates form - action forwards control to JSP Is this your scenario? You need to: - build a form-bean (by extending ActionForm)

Re: Scope of form beans

2002-09-21 Thread Howard Miller
Errr.. may I take a step back, and explain what I want to do, rather that how I'm doing it wrong! - I have a bean in the session scope (working fine). - This session bean has an ArrayList 'pointing to' a number of other beans. - Screen 1: The array list is displayed for the user, with an edit

Re: scope for form beans

2002-01-09 Thread Shengmeng Liu
- From: Chen, Yong [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 11:43 PM Subject: RE: scope for form beans what if one of your forms is never used in a session? and with session level bean, how would you know the form bean

scope for form beans

2002-01-08 Thread Kuntz Peter, NY
Hi, what are the motivations for having a request or session scoped form bean. As far as I could see in the struts source code a request scoped form bean is instantiated newly for every request. What are the reasons for that. Why shouldn't a form bean always exist during the time the session

RE: scope for form beans

2002-01-08 Thread Chen, Yong
Peter, NY [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 7:29 AM To: [EMAIL PROTECTED] Subject: scope for form beans Hi, what are the motivations for having a request or session scoped form bean. As far as I could see in the struts source code a request scoped form bean is instantiated

Re: scope for form beans

2002-01-08 Thread Freek Segers
Hi, I'm using a session scope Form bean in a wizard like interface. Because the Form has session scope the user can go back to any step in the wizard and find his previously filled in values. Greetings, Freek Segers on 08-01-2002 14:28 you wrote: Hi, what are the motivations for having a

Re: scope for form beans

2002-01-08 Thread Muralidhar_BR
Hi does this also mean the form bean goes null when the session gets timedout? Regards, Murali ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to