Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
72
Chapter 3 Handling the Client Request: Form Data
Listing 3.3 ShowParameters.java (continued)
        else
          out.println(paramValue);
      } else {
        out.println("
        for(int i=0; i
          out.println("
  • " + paramValues[i]);
  •         }
            out.println("");
          }
        }
        out.println("\n");
      }
      public void doPost(HttpServletRequest request,
                         HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
      }
    }
    Listing 3.4 ShowParametersPostForm.html 
      A Sample FORM using POST

    A Sample FORM using POST

          METHOD="POST">
      Item Number: 
      Quantity: 
      Price Each: 
      
      First Name: 
      Last Name: 
      Middle Initial: 
      Shipping Address:
      
      Credit Card:
        
                         VALUE="Visa">Visa
        
                         VALUE="Master Card">Master Card
    Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
    Servlet and JSP training courses by book's author: courses.coreservlets.com.
    
    
    
    
    
    
    footer
    
    
    
    
    

     

     

     

     

     Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

    jsp web hosting

     

    Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

    Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved