?? listhandler.java~
字號:
/* */package com.sun.j2ee.workflow.control;import org.impact.stars.control.event.StarsEvent;import org.impact.stars.control.exceptions.StarsEventException;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpSession;import java.util.Enumeration;/* * ListHandler * ----------- * This handler takes all the parameters and their values in the request * object and sets them as attributes in the session object for use by * the list tag handlers. */public class ListHandler extends RequestHandlerSupport { public StarsEvent processRequest(HttpServletRequest request) throws StarsEventException { Enumeration paramNames = request.getParameterNames(); HttpSession session = request.getSession(); while (paramNames.hasMoreElements()) { String paramName = (String) paramNames.nextElement(); session.setAttribute(paramName, request.getParameter(paramName)); } return null; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -