I would like to exchange information between two nested JSP tag artifacts. To give an example:
list.jspx
<myNs:table data="${myTableData}"> <myNs:column property="firstName" label="First Name"/> <myNs:column property="lastName" label="Last Name"/> </myNs:table>
Now, table.tagx should display the columns of data as defined in the nested column tags. The question is how to access property values ββand label attributes of nested column tags from a table tag. I tried jsp: directive.variable, but it seems to work only for exchanging information between jsp and a tag, but not between nested tags.
Note that I would like to avoid using java support objects for tables and column tags in general.
I would also like to know how I can access the attribute defined by the parent tag (in this example, I would like to access the contents of the data attribute in table.tagx from column.tagx).
So this boils down to how I can access variables between nested JSP tags that execute exclusively through tag definitions (no Java TagHandler implementation required)?
user308053
source share