Re: html:options and FormBean

2001-10-27 Thread David M. Karr

> "Francois" == Francois Duchaussoy <[EMAIL PROTECTED]> writes:

Francois> Hi,
Francois> I have an ActionForm with a Collection object inside.
Francois> I'd like to use the  tag to display that Collection.
Francois> Could anyone give me an example on how to do that?

Francois> something like that??
Francois>  labelProperty="value"/>

I recently had this problem, but I ended up creating the collection as a
separate bean in my Action class.  However, after I got past this, Ted
H. pointed out to me that the phrase from the reference, "the name of a JSP
bean in some scope", could refer to the same name as set in the "name"
attribute of the "action" element in "struts-config.xml".

So, if you look at the "html:options" reference, take the choice of NOT setting
"collection", then set "name" to the name specified in the "action", and
"property" to the name of the field in the ActionForm.  I haven't done this,
but I believe that's what you would do.

-- 
===
David M. Karr  ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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




html:options and FormBean

2001-10-25 Thread Francois Duchaussoy

Hi,

I have an ActionForm with a Collection object inside.
I'd like to use the  tag to display that Collection.
Could anyone give me an example on how to do that?

something like that??


Thanks.
Francois.