Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
196
Chapter 8 Handling Cookies
Listing 8.6 SearchEnginesFrontEnd.java (continued)
       checked("hotbot", searchEngine) + ">\n" +
       "HotBot\n" +
       "
\n" +
       "\n" +
       "\n" +
       "\n" +
       "\n" +
       "\n" +
       "\n");
  }
  private String checked(String name1, String name2) {
    if (name1.equals(name2))
      return(" CHECKED");
    else
      return("");
  }
}
Figure 8 4
Result of SearchEnginesFrontEnd servlet. Whatever options you 
specify will be the initial choices next time you visit the same servlet.
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