Dynamic Expressions for Struts-EL and JSTL

2004-09-02 Thread Asleson, Ryan
Hello, I'm using the Struts-EL and JSTL custom tag implementations in my Web app. I want to use the c:out tag to output dynamic data. The tricky part is I want to dynamically build the EL expression at runtime by building up a String that should be evaluated. I don't want to output the

Re: Dynamic Expressions for Struts-EL and JSTL

2004-09-02 Thread Helios Alonso
if you have a property in any bean you can write this: myBean.theProperty or myBean['theProperty'] (I didn't use it but reading a tutorial it was a big surprise for me). So, you could change this: String expr = formBean. + ((app.LayoutObject)pageContext.getAttribute(layoutObject)).getProperty();

RE: Dynamic Expressions for Struts-EL and JSTL

2004-09-02 Thread Asleson, Ryan
Expressions for Struts-EL and JSTL So, you could change this: String expr = formBean. + ((app.LayoutObject)pageContext.getAttribute(layoutObject)).getProperty(); to this: formBean[pageContext.layoutObject.property] (If I understood you have a layoutObject with a property saying which property

RE: Dynamic Expressions for Struts-EL and JSTL

2004-09-02 Thread Helios Alonso
: Helios Alonso [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 9:48 AM To: Tag Libraries Users List Subject: Re: Dynamic Expressions for Struts-EL and JSTL So, you could change this: String expr = formBean. + ((app.LayoutObject)pageContext.getAttribute(layoutObject)).getProperty

RE: Dynamic Expressions for Struts-EL and JSTL

2004-09-02 Thread Asleson, Ryan
. -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 11:09 AM To: Tag Libraries Users List Subject: RE: Dynamic Expressions for Struts-EL and JSTL I wonder if you need something like this: ${formBean[layoutObject.property][layoutObject.property2]} Where