The first item of the form is a drop down box that is used to select a company name. The drop 
down is generated automatically by the createDataSelect() function of the MyHTML class. 
Contractor/Utility Company:
<%
StringBuffer str=new StringBuffer();
MyHTML.createDataSelect(str,"PerComName",1,companies);
%>
<%= str.toString() %>
Other drop down boxes for work types, dates, streets, etc. are created in a similar manner, as 
shown below. Form fields that do not contain dynamic data are created in HTML, e.g. the input 
field for the Dig Safe Number. Note: not the entire code for the form is shown here. 
Type of Work:
<%
str=new StringBuffer();
MyHTML.createDataSelect(str,"PerWorkType",1,workTypes);
%>
<%= str.toString() %>
Dig Safe Number:
First Day of Work:
<%
str = new StringBuffer();
MyHTML.createDateSelect(str,"PerValidFromDay",
"PerValidFromMonth","PerValidFromYear",3);
%>
<%= str.toString() %>
The form has two buttons. The user may either submit or reset the entered application data. 
 
value="Reset"
name="Reset">
55 




Java Web Hosting Application Development Using Java Technologies Hosting




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