에서 변수
<s:if test="%{selectedLanguage == <s:property/>}">
. 이 같은 반복자에서 :
<s:iterator value="languages">
<s:if test="%{selectedLanguage == <s:property/>}">
<option id="<s:property/>" selected><s:property/></option>
</s:if>
<s:else>
<option id="<s:property/>"><s:property/></option>
</s:else>
</s:iterator>
물론, 그것은 작품을 나던. 어떻게 해결할 수 있습니까?
왜 개체가'VS'에 들어 있기 때문에을 사용하여이 작업을 수행하는지,'
' –myValue는 무엇인가? 나는 "언어"의 인스턴스를 필요로한다. – Madrugada
myValue는 'valueStack'에있는 값이라고 믿는다. 객체를 반복 할 때 현재 객체가 스택 맨 위로 밀려나도록한다. 그래서 객체에 속성이 있으면 즉 'myValue'는 직접 참조 할 수 있습니다 –