welcome.jsp


<!-- Definition of the absolute font size so that table fits on a PDA -->
<%! String FontSize="2"; %>
<html>
<head>
    <link rel="stylesheet" href="css/mi.css" type="text/css">
    <a href="http://127.0.0.1:4444/me" > <img src="mimes/SAP_me.gif" alt="Back to ME Home" ></a>
</head>
<body>
  <jsp:useBean id="dataBean" scope="session" class="genericsyncexample1.bean.TableViewBean" />

<!-- For event handling we need a HTML "form" command -->
 <form method="post" action="start" id="form1" name="form2">
<!-- Disply title of the example -->
 <h4><%=dataBean.getString() %></h4><br>
    
 <table align="left" border="0" class="BoxOut" cellpadding="5" cellspacing="5" width="230">
  <tbody>
    <tr>
      <td align="right">
        Your Name:

      </td>
      <td>
<!-- The parameter "name" in the JSP has to match the parameter in "request.getParameter("NAME_OF_USER")"
     in the servlet -->
        <input type="text" name="NAME_OF_USER" value="user" >
      </td>
    </tr>
    <tr>
      <td align="right">
         Sync Password:

      </td>               
      <td>
<!-- In constants.jave we refer to the event as EVENT_NAME = "name" . The AbstractMEHttpServlet analyses 
     the string "_event_name" and passes "name" to the "doHandleEvent" method as "eventName" -->
        <input type="password" name="SYNC_PASSWORD"  >
      </td>
    </tr>
    <tr>
      <td>
         &nbsp;
      </td>
               
      <td>
<!-- In constants.jave we refer to the event as EVENT_NAME = "name" . The AbstractMEHttpServlet analyses 
     the string "_event_name" and passes "name" to the "doHandleEvent" method as "eventName" -->
        <input type="submit" name="_event_name" value="Submit">
      </td>
    </tr>
  </tbody>
 </table>
 </form>
</body>
</html>