Actually, its not a struts-user question because the current design of form
tags does not allow for dynamic attribute values, and this is the heart of
the issue
First consider that I get a collection of bean/value-objects from deep
within the framework. Then consider that I want to loop through them and
generate a form for each with a hidden field whos "value" attribute is the
current index. I have no way (except for scriptlets) to get the current
index into the "value" attribute.
----- Original Message -----
From: "Martin Cooper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jonathan" <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 2:28 AM
Subject: Re: Are form tags tied to beans?!!!
> Jonathan,
>
> First of all, this is really a struts-user question, rather than one for
> developers...
>
> If there are fields you need to submit, but you don't want corresponding
> values in the bean, then don't create bean properties for those fields.
It's
> as simple as that.
>
> There is no forced association between requests and beans. You can ignore
> form beans if you want, and query the request directly for parameters.
>
> --
> Martin Cooper
>
>
> ----- Original Message -----
> From: "Jonathan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 30, 2001 2:32 PM
> Subject: Are form tags tied to beans?!!!
>
>
> I need to dynamically fill a form with values. The problem is that
> <html:text> and other form tags REQUIRE the attribute "property".
> However, there may be fields that I submit that I DONT want to be values
> in the bean. For example, I may want to add a hidden field that is NOT
> a value in the bean, but merely a "flag" in the request. How is this
> done in a clean way, considering that the form tags all require
> "property" as an attribute, and that value must be a member value in a
> bean?
>
>
>