Why does jsp launch PropertyNotFound?
JSP entry:
${a.b.c}
throws 'c' PropertyNotFound but writes
<s:property value="#a.b.c"/>
works great.
I would be grateful if anyone could explain why it ${a.b.c}does not work?
UPDATED:
In the same JSP, referring to another bean f, for example ${a.f.d}, it finds dcorrectly.
I checked that property cin ${a.b.c}exists.
Good question. If you did not specify getter seters for property c in b, then this error will occur Propertynotfoundfor
${a.b.c}
But
<s:property value="#a.b.c"/>
. , ${} , OGNL, - valuestack.
getter setter b. ${a.b.c} . , c String c,
public String getC() {
return c;
}
public void setC(String c) {
this.c = c;
}