jstl can’t read scripting variable

I always keep forgetting this. Consider this code:

boolean b=true;

b=<c:out value=”${b}”/>
B=<c:out value=”${B}”/>


b= B=true

JSTL can’t read scripting variable.  It only looks in the 3 scopes page,request and session.

Strange syntax in struts tags for property attribute

<html:link href=”xyz.do” name=”myBean” property=”myprop[0]”>Click here</html:link>

This how struts retrieves the value myBean.getMyProp(0). Hmmmm…..

Found the reason here