⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listhandler.java

📁 J2EE & Tomcat books published by hope
💻 JAVA
字号:
/* */package org.impact.stars.control.web.handlers;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 + -