An HTML Form With Three 
Parameters
First Parameter:  
NAME="param1"
>
Second Parameter: 
NAME="param2"
>
Third Parameter:  
NAME="param3"
>
29
Servlets
www.corewebprogramming.com
Reading the Three Parameters
public class ThreeParams extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String title = "Reading Three Request Parameters";
out.println(ServletUtilities.headWithTitle(title) +
"\n" +
"

" + title + "

\n" +
"
    \n" +
"  
  • param1: "
  • + 
    request.getParameter("param1")
    + "\n" +
    "  
  • param2: "
  • + 
    request.getParameter("param2")
    + "\n" +
    "  
  • param3: "
  • + 
    request.getParameter("param3")
    + "\n" +
    "\n" +
    ""); }}
    30
    Servlets
    www.corewebprogramming.com
    15
    
    
    
    
      

    Home

    About Services Network Support FAQ Order Contact
     

    Servlet Web Hosting

    Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

    Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved