Thanks again, but I still can not achieve my task. Although your reply worked, it did not fit into what I have to do.
Here is the jsp file I am working on. I tried to skinny it down as best I could without eliminating anything that may be needed. I bolded and Italicized the "input" statement where I have to put the "Cancel" button, near the botton of the second jsp file.
There is actually two different screens involved in this form. The first is where you enter your search criteria. That is the first frame/part where I need to eventually bring the user back to and reset the form. You then hit the "Search" button that brings you to the second part of the form where the "Cancel" button needs to be installed. The button should bring the user back to the original part of the form and clear the text boxes and radio buttons there. I need to make it work just like a "Back" button then a "Reset" button combined into one.
Here is the two jsp files involved.
***************** First jsp file *******************************
[HTML]<HTML>
<HEAD>
<TITLE> AAAAA Resources </TITLE>
<link rel="stylesheet" type="text/css" href="/enroll/css/employer.css">
</HEAD>
<body>
<table CELLSPACING=0 CELLPADDING=0 WIDTH=100%>
<tr><td colspan=3>
<jsp:include page="admin_details_blank.jsp" flush="false">
</jsp:include>
</td></tr>
<tr>
<td colspan=3>
<jsp:include page="button_bar.jsp" flush="false">
</jsp:include>
</td></tr>
<tr>
<td valign=top width=150>
<jsp:include page="admin_details_custName.jsp"flush="false">
</jsp:include>
</td>
<td> </td>
<td valign=top>
<br/>
<jsp:include page="find_subscriber_customers.jsp"flush="false">
</jsp:include>
</td>
</tr>
</table>
[/HTML]*************** End of first jsp ***********************************
*** Second jsp file, find_subscriber_customers.jsp ***************
- <!-- start search CRITERIA table-->
-
-
<% if (view.equals ("c") && !EzEnroll_EzUser.hasRestrictedCustomerAccess())
-
{%>
-
<table cellspacing="0" cellpadding="1" border="0" width="100%" align="center">
-
<tr>
-
<td>
-
<table cellspacing="0" cellpadding="0" border="0" width="100%" >
-
<tr>
-
<td height="1" nowrap></td>
-
</tr>
-
<tr>
-
<td>
-
<table cellspacing="0" cellpadding="0" border="0" width="100%" >
-
<tr>
-
<td>
-
<table cellspacing="0" cellpadding="5" border="0" width="100%">
-
<tr>
-
<td align="left" class="Bodybold">Search Criteria</td>
-
</tr>
-
</table>
-
</td>
-
</tr>
-
<tr><td></td></tr>
-
<tr>
-
<td>
-
<table cellspacing="0" cellpadding="7" border="0" width="100%">
-
<tr>
-
-
<td><span class="bodyBold">Search Type: <% if (!customerData.getSearchType().equals ("customer_name")) out.println(customerData.getSearchType()); else out.println("Plan Sponsor Name");%>
-
<B>Search by:</B> <%=customerData.getSearchParm()%></span>
-
</td>
-
</tr></table></td>
-
</tr></table></td>
-
</tr></table></td>
-
</tr></table><br>
-
-
<%}%>
-
<!-- END Search Criteria Table-->
-
-
<table cellspacing="0" cellpadding="1" border="0" width="100%" align="center">
-
-
<tr>
-
<td valign="top" class="headlineEmployer" align="center">Find/Enroll Subscriber</td>
-
</tr>
-
-
<tr><td valign="top">
-
-
<table width="100%" border="0" cellspacing="0" cellpadding="0">
-
<tr>
-
-
<BR/><BR/>
-
-
<table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
-
<tr><td valign="top">
-
-
<td class="bodyBold" valign="top" align="left" nowrap width=50%>*Please Enter Subscriber Social Security Number:</td>
-
<td class="body" align="left" width=50%>
-
<% if (ezPortalEntry.equals("true"))
-
{ %>
-
<input type="text" maxlength="9" size="12" name="ssn" value="<%= customerData.getSSN() %>" />
-
<%}else{ %>
-
-
<input type="text" maxlength="9" size="12" name="ssn" value="<%=customerData.getSSN()%>" />
-
<%} %>
-
</td>
-
</tr>
-
</table>
-
[HTML]<!--START SEARCH OPTIONS (if multi customer access)-->
<% String tempName = " ";
// if ( (!EzEnroll_EzUser.hasRestrictedCustomerAccess() && customerData.getViewInd().equals ("search") || customerData.getViewInd() == null ) )
if( (!EzEnroll_EzUser.hasRestrictedCustomerAccess() && customerData.getCustomerNames() == null) ||
(!EzEnroll_EzUser.hasRestrictedCustomerAccess() && view.equals ("s") || view.equals (" ") ) )
{
//System.out.println("the customer does not have single customer access ");
//System.out.println("the customerNames array = " + customerData.getCustomerNames() );
//System.out.println("the view = " + view);
//System.out.println("the viewInd = " + customerData.getViewInd());
%>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td class="bodyBold" valign="top" align="left">*Please Select a Search Option:</td></tr>
<tr><td class="body" align="left">
<!-- SELECT SEARCH BY-->
<input type=radio name="searchBy" value="control" <%= customerData.getSelectedValueControl()? "checked" : "" %>><span class="bold">Control # </span><br>
<input type=radio name="searchBy" value="group" <%= customerData.getSelectedValueGroup()?"checked" : "" %>><span class="bold">Group #</span><br>
<input type=radio name="searchBy" value="name" <%= customerData.getSelectedValueName()?"checked" : "" %>><span class="bold">Plan Sponsor Name</span>
<br><br>
<span class="bold"> Search by:</span>
<input type="text" name="searchParm" size=6 maxlength=50 value="<%=customerData.getSearchParm()%>">
<BR>
</td></tr></table>
</td></tr></table>
<BR>
<!-- END SEARCH OPTIONS-->
<div align="left"><input type="submit" name="search" value="Search" class="button"/></div>
</table>
</td></tr></table>
<!--Main grid ends -->
<%}else if (customerData.getCustomerNames() != null && customerData.getViewInd().equals("choose") )
{
//System.out.println("JSP:: The customerData object has customerNames");
// System.out.println("JSP:: The customerData object has " + customerData.getCustomerNames());
}%>
<!--Start CUSTOMER LIST section for multi customer user -->
<% //if ezCustData is not null then print results in drop down list box
String [] customerNames = customerData.getCustomerNames();
if ((customerNames != null && customerData.getViewInd().equals("choose")) ||
(customerNames != null && view.equals ("c") ) )
{
//System.out.println("JSP:: creating the drop down list box of customers");
//this is needed to enclose the value chosen in quotes
//so the whole string will be sent to the DB in the query
//String tempName = " "; %>
<!-- PLAN SPONSOR NAME INSTR-->
<table cellspacing="0" cellpadding="1" border="0" width="100%" align="center">
<tr><td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td valign="top" class="bodybold" align="left" width=50%>
*Please Select the Name for this subscriber:</td>
<td class="body" align="left" width=50%>
<!-- NAME TAB-->
<% //System.out.println("JSP::The customerNames array from EzCustomerdata is not null");
customerNames = customerData.getCustomerNames();
%>
<SELECT name="customerChoice" size=5>
<!--<FONT FACE=Arial SIZE=2 COLOR="black">-->
<% if(customerNames.length > 1)
{%>
<OPTION value=""selected>
--- Select one ---
</OPTION>
<%}else{%>
<%}%>
<% int count = customerNames.length;
//System.out.println(" JSP:: (multi-customer) the length of customer names = " + count);
%>
<!-- tsx:repeat index="i" -->
<% for (int ii = 0; ii < count; ii++)
{ %>
<% tempName = customerNames[ii];%>
<% if (!(ii < count))
throw new ArrayIndexOutOfBoundsException();%>
<OPTION VALUE="<%=tempName%>"<%if(customerNames.length == 1){%>selected<%}%>> <%=customerNames[ii] %>
</OPTION>
<% } %>
<!-- /tsx:repeat -->
</SELECT>
<BR><BR>
</TD>
</TR>
</TABLE>
</td></tr></table>
<!--END CUSTOMER LIST for multi_customer user -->
[B
]<div align="center">
<input type="submit" name="back" value="Back" class="button">
<input type="submit" name="continue" value="Continue" class="button">
<input type="button" name="ssn" value="Cancel" onclick="history.go(1);clear_form();"/>
</div>[/b]
<td></tr></table></td></tr></table>
<!-- end of plan sponor list for multi-customer user-->
<%}
//if EzUser has customer names and the user is a single customer user print the drop down list box
else if (EzEnroll_EzUser.getCustomerNames() != null && EzEnroll_EzUser.hasRestrictedCustomerAccess())
{
customerNames = EzEnroll_EzUser.getCustomerNames();
//System.out.println("JSP::The customerNames array is not null");
customerNames = EzEnroll_EzUser.getCustomerNames();
%>
<!-- START CUSTOMER LIST for restricted user -->
<table cellspacing="0" cellpadding="1" border="0" width="100%" align="center">
<tr><td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td valign="top" class="bodybold" align="left" width=50%>
*Please Select the Name for this subscriber:</td>
<td class="body" align="left" width=50%>
<SELECT name="customerChoice" size=2>
<!--BR><BR>-->
<% int count = customerNames.length;%>
<!-- tsx:repeat index="j" -->
<% for (int jj = 0; jj < count; jj++)
{ %>
<% tempName = customerNames[jj];%>
<% if (!(jj < count))
throw new ArrayIndexOutOfBoundsException();%>
<OPTION VALUE="<%=tempName%>"selected> <%= customerNames[jj] %></OPTION>
<% } %>
<!-- /tsx:repeat -->
</SELECT>
<BR><BR>
</div>
</TD></TR></TABLE>
</td></tr></table>
<div align="center">
<input type="submit" name="back" value="Back" class="button"/>
<input type="submit" name="continue" value="Continue" class="button"/>
<BR><BR>
</div>
</td>
<td width="15" class=body align=left>
<img alt="" border=0 height=1 width=15 src="/enroll/images/img_clear.gif"></td>
</tr></table></td></tr></table>
<!-- end of list for resricted user-->
<%}%>
<!-- Main Grid Ends -->
</form>
</body>
</html>
[/HTML]
Thanks again for any help you provide.