<%@ page session="false"%> <%@ page import="objectivehtml.htmlwidget.*" %> <%@ page import="mypackage.*" %> <html> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st September 2001), see www.w3.org" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- Copyright (c) 2001, Keith Wong Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --> <style type="text/css"> .heading { FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #000000; FONT-FAMILY: Arial,sans-serif } .heading2 { FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial,sans-serif } .normal { FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial,sans-serif } .inversebold { FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: Arial,sans-serif } .info { FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #0000ff; FONT-FAMILY: Arial,sans-serif } .error { FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #ff0000; FONT-FAMILY: Arial,sans-serif } </style> <title> </title> </head> <body bgcolor="white"> <p class="heading">Customer List</p> <p class="normal">Select a customer to view/modify</p> <script type="text/javascript" language="javascript"> /** * Validates the form * @return true if the form is valid, false otherwise */ function validateForm() { // lets make sure a customer is selected! for (i=0; i<customerlist.elements.length; i++) { // lets check the name if (customerlist.elements[i].name == "customerid") { if (customerlist.elements[i].checked) return true; } // end if customerid } // end for more form elements alert("You must select a customer to view/modify!"); return false; } // end validateForm </script> <% // retrieve the form object CustomerListForm objForm = (CustomerListForm)request.getSession().getAttribute("myapp.customerlist"); if (objForm != null) { // this method prints out the current state of the form out to the client objForm.printHtml(out); } // end if form exists %> </body> </html>