HOME
About The Book
About the Authors
Pattern Catalog
Quotable Quotes
Discussion Forum
Contact Us
Resources
Sample Code
Copyright
Errata
Core J2EE Pattern Catalog
© CoreJ2EEPatterns All Rights Reserved.
Last Updated: January 29, 2006 9:02 PM
Powered By Core J2EE Patterns
Request Submission Form
<%! private boolean checkValues=false; private String submitted=null; private String title=null; private String fullname=null; private String company=null; private String jobtitle=null; private String websiteurl = null; private String emailaddress=null; private String description = null; private String comments = null; private boolean missingField=false; private boolean debug=false; private boolean wantcopy = false; %> <% missingField=false; submitted=request.getParameter("submitted"); title=request.getParameter("title"); fullname=request.getParameter("fullname"); company=request.getParameter("company"); jobtitle=request.getParameter("jobtitle"); websiteurl=request.getParameter("websiteurl"); emailaddress=request.getParameter("emailaddress"); description=request.getParameter("description"); comments=request.getParameter("comments"); if (request.getParameter("wantcopy") != null) wantcopy = true; if (debug) { out.println("submitted=" + submitted); out.println("checkValues=" + checkValues); out.println("title=" + title); out.println("fullname=" + fullname); out.println("company=" + company); out.println("emailaddress=" + emailaddress); out.println("jobtitle=" + jobtitle); out.println("description=" + description); out.println("comments=" + comments); out.println("Wantcopy=" + wantcopy); } if (submitted==null) { if (debug) out.println("Not Submitted"); out.println(""); checkValues=false; } else { out.println(""); checkValues=true; } %> <% if (checkValues) { if ((fullname==null) || (fullname.trim().length() ==0)) { out.println("
Note: * - indicates required field