On 11/8/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Paul Benedict wrote the following on 11/7/2005 7:38 PM:
>
> > You are much better off using JSTL so you can write something like:
> > <html:textarea property="${form.object[i].subobject[j].property"/>
>
> Actually the above is not what you probably want at all. The above is
> not going to write out the name of the property correctly. You probably
> mean something like...
>
> <html:textarea
> property="someObject[${aProp.someIndex}].subobject[${bProp.someIndex}].someField"/>

Right. This is the problem with JSTL, it knows nothing about input. It
spits out a java property and forgets about it. To input values back
into Java object all you have is param.xxx . This is sad. Therefore I
guess Struts tags will never go away, because they write out the
qualified name, allowing BeanUtils to correctly identify properties'
names as request keys, and assign them back to Java objects.

Any idea how to simplify input using JSTL 1.1 (JSP 2.0) only?

Michael.

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

Reply via email to