| java.lang.Object org.dspace.app.webui.util.JSPManager
JSPManager | public class JSPManager (Code) | | Methods for displaying UI pages to the user.
author: Robert Tansley version: $Revision: 1671 $ |
showAuthorizeError | public static void showAuthorizeError(HttpServletRequest request, HttpServletResponse response, AuthorizeException exception) throws ServletException, IOException(Code) | | Display an authorization failed error message. The exception should be
passed in if possible so that the error message can be descriptive.
Parameters: request - the HTTP request Parameters: response - the HTTP response Parameters: exception - the AuthorizeException leading to this error, passing innull will display default error message |
showInvalidIDError | public static void showInvalidIDError(HttpServletRequest request, HttpServletResponse response, String badID, int type) throws ServletException, IOException(Code) | | Display an "invalid ID" error message. Passing in information about the
bad ID and what the ID was supposed to represent (collection etc.) should
result in a more descriptive and helpful error message.
Parameters: request - the HTTP request Parameters: response - the HTTP response Parameters: badID - the bad identifier, or null Parameters: type - the type of object, fromorg.dspace.core.Constants , or -1 for a default message |
showJSP | public static void showJSP(HttpServletRequest request, HttpServletResponse response, String jsp) throws ServletException, IOException(Code) | | Forwards control of the request to the display JSP passed in.
Parameters: request - current servlet request object Parameters: response - current servlet response object Parameters: jsp - the JSP page to display, relative to the webapps directory |
|
|