welcome.jsp


<html>
<head>
   <link rel="stylesheet" href="css/mi.css" type="text/css">
<!-- href uses "standard" ME settings: 127.0.0.1 = localhost on the Desktop and also works on the PDA -->
    <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="example3.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="Binford" 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" >
<!-- A interesting JSP related phenomenon: When there is only one input field in a form, the "submit" button event
     is NOT activated when you want to submit the form by simply pressing the "enter" key (on the keyboard).
     You have to click on the "Submit" button with the mouse.
     You could extend this JSP with an additional input field (also HIDDEN), that the keyboard input works. -->
      </td>
    </tr>
  </tbody>
 </table>
 </form>
</body>
</html>