<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Map Demo</TITLE>
<STYLE> 
	BODY {FONT-family: Arial, Helvetica, sans-serif; font-size: 90%}
	 H1 {font-size: 160%; font-weight: bold}
	 H2 {font-size: 140%; font-weight: bold}
         H3 {font-size: 120%; font-weight: bold}
	 TABLE TD {FONT-family: Arial, Helvetica, sans-serif; font-size: 90%}	 
</STYLE> 
</HEAD>

<BODY>
<jsp:useBean id="MapservJspBean" class="com.mypackage.JMapServ.MapservJspBean" scope="session"/>

<H3> Map Demo </H3>
<P>
The Map Demo program has a tiny book database that you can browse. You can look up books by title, author, or stock number, and you can add and delete books. To start, try selecting the <B>Read</B> operation and entering 1111 in the <B>stockno</B> field, and then click <B>Go</B>. You enter strings not numbers in the Author, Title and Type fields and you enter integers into the other fields.

</P>

<FORM ACTION="/MapDemo/MapDemoServlet">
<TABLE BORDER="0">
<TR>
  <TD>
    <H4>Operation:
    <SELECT NAME="operation">
      <OPTION VALUE="Read">Read
      <OPTION VALUE="Next">Next
      <OPTION VALUE="Add">Add
      <OPTION VALUE="Delete">Delete
    </SELECT></H4>
  </TD>
</TR><TR>
  <TD>lnk_b_title: </TD>
   <TD COLSPAN="3" ><INPUT TYPE="text" NAME="lnk_b_title" MAXLENGTH="100" SIZE="50"></TD>
</TR><TR>
  <TD>lnk_b_author: </TD>
   <TD><INPUT TYPE="text" NAME="lnk_b_author" MAXLENGTH="100" SIZE="15"></TD>
  <TD>lnk_b_stockno:</TD>
   <TD><INPUT TYPE="text" NAME="lnk_b_stockno" MAXLENGTH="100" SIZE="10"></TD>
</TR><TR>  
  <TD>lnk_b_type:</TD>
   <TD><INPUT TYPE="text" NAME="lnk_b_type" MAXLENGTH="100" SIZE="15"></TD>
  <TD>lnk_b_retail:</TD>
   <TD><INPUT TYPE="text" NAME="lnk_b_retail" MAXLENGTH="100" SIZE="10"></TD>
</TR><TR>
  <TD>lnk_b_onhand:</TD>
   <TD><INPUT TYPE="text" NAME="lnk_b_onhand" MAXLENGTH="100" SIZE="10"></TD>
  <TD>lnk_b_sold:</TD>
   <TD><INPUT TYPE="text" NAME="lnk_b_sold" MAXLENGTH="100" SIZE="10"></TD>
</TR>
</TABLE>
<P><INPUT TYPE="submit" NAME="go" VALUE="  Go  "> </P>
</FORM>
<H4>Results:</H4>
<P>
<% if ((MapservJspBean.getMessage()).equals("")) { %>
<TABLE BORDER="0" WIDTH="100%">
 <TR>
   <TD>Lnk_b_title:</TD>    
    <TD COLSPAN="3"><jsp:getProperty name="MapservJspBean" property="lnk_b_title"/></TD>
</TR><TR>
   <TD>Lnk_b_author:</TD>
    <TD><jsp:getProperty name="MapservJspBean" property="lnk_b_author"/></TD>
   <TD>Lnk_b_stockno:</TD>
    <TD><jsp:getProperty name="MapservJspBean" property="lnk_b_stockno"/></TD>
</TR><TR>
   <TD>Lnk_b_type:</TD>
    <TD><jsp:getProperty name="MapservJspBean" property="lnk_b_type"/></TD>
   <TD>Lnk_b_retail:</TD>
    <TD><jsp:getProperty name="MapservJspBean" property="lnk_b_retail"/></TD>
</TR><TR>
   <TD>Lnk_b_onhand:</TD>
    <TD><jsp:getProperty name="MapservJspBean" property="lnk_b_onhand"/></TD>
   <TD>Lnk_b_sold:</TD>
    <TD><jsp:getProperty name="MapservJspBean" property="lnk_b_sold"/></TD>
</TR><TR>
    <TD>Lnk_file_status:</TD>
     <TD><jsp:getProperty name="MapservJspBean" property="lnk_file_status"/></TD>
  </TR>
</TABLE>

<% } else { %>

	<FONT COLOR="red"><jsp:getProperty name="MapservJspBean" property="message"/></FONT>

<% } %>

</P>
<P>
</P>
<P>SessionCreationTime:</P><jsp:getProperty name="MapservJspBean" property="sct"/>
<P>SessionLastAccessTime:</P><jsp:getProperty name="MapservJspBean" property="slt"/>
<P>SessionInactiveInterval:</P><jsp:getProperty name="MapservJspBean" property="sii"/>
</BODY>

</HTML>
