Re: Form data to Vector

2007-04-16 Thread Lance
--- Original Message From: Lance <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:41:05 PM Subject: Re: Form data to Vector Ok, so your add button creates a new blank record on your page Your save button posts the form to some save action which validates / saves

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
ance <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:41:05 PM Subject: Re: Form data to Vector Ok, so your add button creates a new blank record on your page Your save button posts the form to some save action which validates / saves to the db Two option

Re: Form data to Vector

2007-04-16 Thread Lance
D]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:15:06 PM Subject: Re: Form data to Vector Ok, im not sure how exactly you are using it but this is how I tend to do it. In your load() action, you hit the db and generate some object for each row and put them into your vector.

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
ginal Message From: Lance <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 2:15:06 PM Subject: Re: Form data to Vector Ok, im not sure how exactly you are using it but this is how I tend to do it. In your load() action, you hit the db and generate some

Re: Form data to Vector

2007-04-16 Thread Lance
ay, April 16, 2007 12:12:00 PM Subject: Re: Form data to Vector Lance wrote: Sorry, it helps if i read your question fully. The way to do this is to name your html form elements using in the struts (BeanUtils) conventions If you have a form element named "myVector[3]" then strut

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
do this exactly? Thanks, MB - Original Message From: Lance <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Monday, April 16, 2007 12:12:00 PM Subject: Re: Form data to Vector Lance wrote: > Sorry, it helps if i read your question fully. > > The way to do this is t

Re: Form data to Vector

2007-04-16 Thread Lance
--- Original Message From: Martin Gainty <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Friday, April 13, 2007 3:45:17 PM Subject: Re: Form data to Vector Balazs Take a look at http://struts.apache.org/1.0.2/api/org/apache/struts/taglib/logic/package-summary.html you wil

Re: Form data to Vector

2007-04-16 Thread Lance
From: Martin Gainty <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Friday, April 13, 2007 3:45:17 PM Subject: Re: Form data to Vector Balazs Take a look at http://struts.apache.org/1.0.2/api/org/apache/struts/taglib/logic/package-summary.html you will see this example of implementing

Re: Form data to Vector

2007-04-16 Thread Balazs Michnay
st Sent: Friday, April 13, 2007 3:45:17 PM Subject: Re: Form data to Vector Balazs Take a look at http://struts.apache.org/1.0.2/api/org/apache/struts/taglib/logic/package-summary.html you will see this example of implementing a vector via use of struts logic:iterate in your jsp <%@ taglib u

Re: Form data to Vector

2007-04-13 Thread Martin Gainty
t;Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, April 13, 2007 4:09 AM Subject: Form data to Vector Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another

Form data to Vector

2007-04-13 Thread Balazs Michnay
Hi, I have a form with two submit buttons. One should add the content of a text field to a Vector (which is in the form bean?), and the other one should point to another page that has access to the Vector values. I'd like to know how to add form data to a Vector. Any help would be appreciated.