Hi,
I am using
Struts 1.2.9.
Within the property attribute of a html:text (
http://struts.apache.org/tags-html), is there a way to access a property of a POJO defined as a value of a Map in the actionForm?
Example of POJO:
I create it from the action:
The ActionForm aims to be generic.
There is a
jsp (myPojo.jsp) associated to the POJO that I can call from the main page:
Is there a way to access "myProperty" from "myPojo.jsp"?
The following code…
…is working but only if I define the corresponding "getter" in GenericForm:
My main issue is to ensure that GenericForm remains generic (no getFoo method).
I thought about a way to dynamically declare the "getters" in "registerPojo" (reflection?) but I don’t know how to do that.
Or maybe is there a syntax I didn’t think about yet?
Thank you, even just for the time you spent reading this.