I wish that was the case.  I don't know what field from the bean I
will retrieve until runtime.  For example: in the html-el:text example
below, it first gets the value of displayData.property which, lets say
is 'myField1', then retrieves the myBean.myNestedBean.myField1. My
problem now is how do I get that behavior when I just want to display
text and not a form object?
Any ideas are welcome.


On 2/17/06, Keith Sader <[EMAIL PROTECTED]> wrote:
> I think you need ${} around the whole expression.
>
> ${myBean.myNestedBean.displayData.property}
>
>
> On 2/17/06, Dennis Hoer <[EMAIL PROTECTED]> wrote:
> > Tried
> > <c:out value="myBean.myNestedBean.${displayData.methodName}"/>
> >
> > and it resolves to a string
> > "myBean.myNestedBean.methodX"
> >
> > I also tried
> > <c:set var="temp" value="myBean.myNestedBean.${displayData.methodName}"/>
> > <c:out value="${temp}"/>
> >
> > and get the same thing.  I need the result of the string to be
> > resolved after the method name is returned.
>
> --
> Keith Sader
> [EMAIL PROTECTED]
> http://www.saderfamily.org/roller/page/ksader
> http://www.jroller.com/page/certifieddanger
>
> ---------------------------------------------------------------------
> 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]

Reply via email to