Hi,
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 want the processing of the JSP page to stop (this is because the function will perform a redirect before returning the null object. Also, the rest of the JSP code obviously uses this object, and will get a null pointer exception if the function returned null).
So my question is, what is the right way of stopping the load of a JSP page? Can I do something like this:
if (Func() == null) { return; }
Or is using a return in the middle of a JSP not the cleaner way to go about this?
Thanks