How to use if, else condition in jsf to display image

后端 未结 3 639
花落未央
花落未央 2021-01-31 08:43

I have a condition where I have an enrollment form in which if userid is 0 it should show the dummy image and when I edit user from any update, I check for if userid which is no

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 09:34

    It is illegal to nest EL expressions: you should inline them. Using JSTL is perfectly valid in your situation. Correcting the mistake, you'll make the code working:

    
        
            
            
        
        
            
            
        
    
    

    Another solution is to specify all the conditions you want inside an EL of one element. Though it could be heavier and less readable, here it is:

    
    
    

提交回复
热议问题