How to stop processing a JSP early?

后端 未结 5 1257
失恋的感觉
失恋的感觉 2021-01-18 10:47

I\'ve got a JSP page, which calls a function and checks its return value. If the return value is not null, the JSP page goes on to use it. If the return value IS null, I wan

5条回答
  •  轮回少年
    2021-01-18 11:40

    You may use JSTL tag:

    
       bodytext
    
    

    Which is better than <% if(condition) { %> bodytext <% } %> for controlling on loading page / process.

提交回复
热议问题