Question on JSP EL# Java - 爪哇娇娃
T*e
1 楼
It seems that EL is trying hard to convert my strings to double values. I
am confused. I remember the plus operator (+) can be used to concatenate
strings. Did I do anything wrong? What's the better way to deal with this?
I am using Tomcat 5.5.17 and JDK 1.5.0_06 on WinXP Home.
Thanks.
1: Working code
String resourceType = "service";
pageContext.setAttribute("resourceType", resourceType);
pageContext.setAttribute("resourceName", resourceType + "Name");
%>
select
ri.${resour
am confused. I remember the plus operator (+) can be used to concatenate
strings. Did I do anything wrong? What's the better way to deal with this?
I am using Tomcat 5.5.17 and JDK 1.5.0_06 on WinXP Home.
Thanks.
1: Working code
String resourceType = "service";
pageContext.setAttribute("resourceType", resourceType);
pageContext.setAttribute("resourceName", resourceType + "Name");
%>
select
ri.${resour