开发者

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

开发者 https://www.devze.com 2023-02-09 11:19 出处:网络
#set ($collegename = $parameters.get(\'collegename\')) when i print $collegename in vm file. it show college\'s names in some rows.
#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

精彩评论

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

关注公众号