|
Ask two questions
1. The following code, how to end after throwing an error page? That is, the following code, how to goto after the (... 333;) pseudo-statement?
2. In the program, if there is a judgment of if (aaa == null), how to find a simple picture? End the following doIt () function?
code show as below,
// @Override
public void doIt (HttpServletRequest request, HttpServletResponse response)
throws EXXXException, EXXXXFatalException {
Ranch
String urlAllOK = "/plugins/DelDocsPlugin/jsp/End21AllOK.jsp";
String urlError = "/plugins/DelDocsPlugin/jsp/Error.jsp";
Ranch
ServletContext sc = getServletContext ();
if (sc == null) {
String returnSearchResultXXXList = "Failed in deleted!";
sc.setAttribute (KEY_RETURN_TYPE_ERROR_XXX, returnSearchResultXXXList);
try {
sc.getRequestDispatcher (urlError) .forward (request, response);
} catch (Exception e0000) {
e0000.printStackTrace ();
}
}
... 111;
... 222;
... 333;
} |
|