Or is there anyway I can use the Struts Validator framework? In which case what would be the appropriate elements for the validation.xml file?
Thanks,
Frank.
----- Original Message ----- From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, November 20, 2004 1:08 PM
Subject: Re: How can I do this ... ?
I could explain but niall has already documented things here.
http://wiki.apache.org/struts/StrutsCatalogLazyList
I'd go for the hand cranked option. Its one less dependency and lighter than using lazylist.
LazyForm looks pretty cool if you like dynabeans, certainly really good for mocking things up until you get the time to write an actionform.
Mark
On Sat, 20 Nov 2004 12:40:53 -0000, Frank Burns <[EMAIL PROTECTED]> wrote:Hi,
Although I have been using Struts for a while now, I have this new requirement and I don't know an obvious way to implement it. Can anyone please tell me how I can do this?
BACKGROUND: I want to display a list of existing items of a certain type and allow users to edit these and save them. I don't know how long the list is -- it may be one or 100 or any number of items long.
QUESTION: So, how do I write an ActionForm to accept an UNKNOWN number of items? And how do I "dynamically" write the required number of <html:text> tags (appropriately labelled) to be able to accept the values returned from the ActionForm if validation fails?
Thanks,
Frank.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]