All pastes #245676 Raw Edit

Something

public text v1 · immutable
#245676 ·published 2006-11-11 07:43 UTC
rendered paste body
			
  public void doGet(HttpServletRequest request,
                    HttpServletResponse response)
      throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String title = "Reading All Request Parameters";
 Enumeration paramNames = request.getParameterNames();
    while(paramNames.hasMoreElements()) {
      String paramName = (String)paramNames.nextElement();
	  	for(int count = 0; count<20; count++){
    		  String[] paramValues = request.getParameterValues("frmExterior"+count);
				if(paramValues == null) {
				} else {
				for(int i=0; i<paramValues.length; i++) {
					if(paramValues.length != 0) {
        			out.println("frm"+count +paramValues[i] +"<br>");
					}
				}
		  		}
      }
	  break;
    }  
	}
	
	  public void doPost(HttpServletRequest request,
                     HttpServletResponse response)
      throws ServletException, IOException {
    doGet(request, response);
  }