JSTL continue, break inside foreach

后端 未结 3 1313
梦毁少年i
梦毁少年i 2020-12-10 10:33

I want to insert \"continue\" inside foreach in JSTL. Please let me know if there is a way to achieve this.



        
3条回答
  •  执笔经年
    2020-12-10 10:56

    There's no such thing. Just do the inverse for the content you actually want to display. So don't do

    
        
            <<>>
        
        

    someType is not aaa or AAA

    but rather do

    
        
            

    someType is not aaa or AAA

    or

    
        
            

    someType is not aaa or AAA

    Please note that I fixed an EL syntax error in your code as well.

提交回复
热议问题