EL表达中获取值什么类型
session.setAttribute("code","1")
在jsp中获取code值
<input type="radio" name="radFeeType" ${code==1?'checked':'' } id="monthly" onclick="feeTypeChange(1);" />
<input type="radio" name="radFeeType" ${code=='1'?'checked':'' } id="monthly" onclick="feeTypeChange(1);" />
页面显示的结果一样,在session中存的值不是String类型吗?怎么可以和int类型值作比较?