开发者

check the text in a Apache Velocity (.vm file) using java

#set ($collegename = $parameters.get('collegename')) 

when i print $collegename in vm file. it show college's names in some rows. there are 20 college's names. i want to put a condition on a particular college. when encounter this college name. it can not print the employee.

#if ($collegename!="x开发者_运维知识库yzcollege")
$stack.findValue("getFullName('$employee')")

but it is not getting to check the "xyzcollege". any suggestion


You might be missing the end tag:-

#if ($collegename!="xyzcollege")
   $stack.findValue("getFullName('$employee')")
#end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜