Render HTML conditionally in Spring MVC

前端 未结 3 963
不思量自难忘°
不思量自难忘° 2021-01-14 05:46

Is there any tag which lets to render the HTML blocks conditionally. For e.g.: Struts has:

         


        
3条回答
  •  执念已碎
    2021-01-14 06:50

    Plain old JSTL to your rescue!

    The beauty of Spring MVC is that it doesn't add tons of redundant tag libraries unlike other frameworks. You can always rely on JSTL for such checks which is part of the JSP spec now.

    
    
    
    

提交回复
热议问题