Indexed Property

2001-11-19 Thread Sancimino, Michael

I need to use the indexed property of various form elements and from what I
understand it is only available from the nightly builds.  'Use at your own
risk' makes me a little hesitant.  Are these nightly builds fairly stable?
Should I just grab the one from this morning and go for it?

Thanks,
Mike

This e-mail contains privileged and/or confidential information intended for
the use of the addressee. If the reader of this e-mail is not the intended
recipient, you have received this e-mail in error and any review,
dissemination, distribution or copying is strictly prohibited. If you have
received this e-mail in error, please notify the sender immediately by
return e-mail and permanently delete the copy you received. Thank you. 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Defining Form elements based on db ids

2001-11-13 Thread Sancimino, Michael

Thanks Marcel, but I wanted to use the Struts html:checkbox tag.  Is there a
document or FAQ that someone can point me to regarding dynamic form
elements?

Thanks,
Mike

-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 12:17 PM
To: struts-user
Subject: RE: Defining Form elements based on db ids


The easiest way to do handle a list on a form is with an index. 
Use the  tag to iterate the list. 
For the checkbox you use something like this:



Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 5:57 PM
To: [EMAIL PROTECTED]
Subject: Defining Form elements based on db ids


I am just starting out with Struts and I am trying to do something fairly
simple.  I have a form with 1 to x number or rows that were retrieved from a
database.  Each one can be selected via a checkbox.  Initially I wanted to
name the checkbox process_xxx where xxx is the key from the database (i.e.
process_345; process_621...) - that way I can easily tell which rows were
selected and do my backend processing.  I don't think I can do this being
that the form class has to have the fields defined beforehand.  What is the
best way to go about what I am trying to do?  Is the indexed attribute
intended for this use?

Thanks,
Mike

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Defining Form elements based on db ids

2001-11-13 Thread Sancimino, Michael

I am just starting out with Struts and I am trying to do something fairly
simple.  I have a form with 1 to x number or rows that were retrieved from a
database.  Each one can be selected via a checkbox.  Initially I wanted to
name the checkbox process_xxx where xxx is the key from the database (i.e.
process_345; process_621...) - that way I can easily tell which rows were
selected and do my backend processing.  I don't think I can do this being
that the form class has to have the fields defined beforehand.  What is the
best way to go about what I am trying to do?  Is the indexed attribute
intended for this use?

Thanks,
Mike

--
To unsubscribe, e-mail:   
For additional commands, e-mail: