It will be a little difficult to explain. I am trying to write a tag for linking a bunch of address fields, but I am having trouble developing an ognl expression.
Expected Use:
member.address matches the Address object (nothing is truncated).
my tag (simplest version):
<%@taglib prefix="s" uri="/struts-tags" %>
<%@attribute name="name" required="true" rtexprvalue="true" type="java.lang.String" %>
<s:push value="%{#attr.name}">
Address line 1:
<s:property value="line1"/>
</s:push>
I think the problem is that <s:push value="%{#attr.name}"/>it does not actually push the result of member.address on the stack, but simply push the String value of 'member.address'.
source
share