welcome.jsp


<html>
<head>
    <a href="http://www.sap.com/mobile" > <img src="mimes/SAP_me.gif" alt="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" size="12">
      </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>