How to stop processing a JSP early?

后端 未结 5 1174
失恋的感觉
失恋的感觉 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条回答
  •  梦毁少年i
    2021-01-18 11:42

    Since 2.0, there is a standard way:

    throw new javax.servlet.jsp.SkipPageException();
    

提交回复
热议问题