shoa
Apr 23rd, 2006, 11:33 PM
Hello
I can have a fn:contains to check there is subString in a string
<c:if test="${fn:contains(string,subString)}">OK</c:if>
So I can have :
<c:if test="${fn:contains('abc','c')}">OK</c:if>
It is works OK
My question is if I have a object student and a field "studentName", how I can use it as a variable string
I tried this but it donot works
<c:if test="${fn:contains('<c:out value ="${student.studentName}"/>','John')}">OK</c:if>
Thank you for any help
sho
I can have a fn:contains to check there is subString in a string
<c:if test="${fn:contains(string,subString)}">OK</c:if>
So I can have :
<c:if test="${fn:contains('abc','c')}">OK</c:if>
It is works OK
My question is if I have a object student and a field "studentName", how I can use it as a variable string
I tried this but it donot works
<c:if test="${fn:contains('<c:out value ="${student.studentName}"/>','John')}">OK</c:if>
Thank you for any help
sho