/**
* Process the specified HTTP request, and create the corresponding HTTP
* response (or forward to another web component that will create it). Return
* an <code>ActionForward</code> instance describing where and how control
* should be forwarded, or <code>null</code> if the response has already been
* completed.
*
* @param mapping The ActionMapping used to select this instance
* @param request The HTTP request we are processing
* @param response The HTTP response we are creating
* @param form NOT YET DOCUMENTED
* @return NOT YET DOCUMENTED
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet exception occurs
*/
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
ActionErrors errors = new ActionErrors();
UcasProxyForm ucasForm = (UcasProxyForm) form;
// Query Args
String command = request.getParameter("command");
SchemEditUtils.showRequestParameters(request);
try {
return getUcasUserInfo(mapping, form, request, response);
} catch (Throwable t) {
t.printStackTrace();
errors.add("error",
new ActionError("generic.error", "System Error: " + t.getMessage()));
saveErrors(request, errors);
}
// Forward control to the specified success URI
return (mapping.findForward("error.page"));
}
UcasProxyAction.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:joai-project
作者:
评论列表
文章目录