Is there a struts (or maybe jstl?) tag that does
something inbetween a html:select/html:options and
bean:write?

I have a collection of beans and only want to write
the one that matches a specific value.

For example, you display an employee. He belongs to a
department (identified by a dep_code). You have a an
array of Department objects, each with a dept_code and
dept_name. You want to write the dept_name for THIS
employee. If it was a select box, it would look like
this:

<html:select property="dept_code">
    <html:options collection="departments" 
                  property="dept_code" 
                  labelProperty="dept_name" />
</html:select>

But instead of making this a select box, I just want
to write the text... how do I do that? I thought about
bean:write, but the params doesn't seem to give me
that options.

I am using Struts 1.02 - maybe in 1.1 it is available?

Thanks

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to