<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'runnable1.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body marginwidth="100">
<h1>Simple form</h1>
<hr noshade="noshade"/>
	<p>Enter information into the fields below. When you submit the
		form, the asynchronous runnable context passes your entries as
		attributes using the setAttribute method and dispatches control over
		to the result servlet. The attributes are then retrieved on the result servlet using request.getAttribute(..).</p>
		<hr noshade="noshade" />  
	<form action="DispatcherServlet" method="post">
		<p>
			What's your first name?:<br /> <input name="firstname">
		</p>

		<p>
			What is your favorite technology?:<br /> <select name="favTech">
				<option value="java">Java</option>
				<option value="c++">C++</option>
				<option value="php">PHP</option>
			</select>
		</p>
		<p>
			Which appserver do you use?:<br /> <select name="appServer">
				<option value="jboss">JBoss</option>
				<option value="tomcat">Tomcat</option>
				<option value="websphere">WebSphere</option>
			</select>
		</p>
		<p>
			<input name="meUsage" type="checkbox" /> Have you used MyEclipse IDE
			before?
		</p>
		<p>
			<textarea name="comment"></textarea>
		</p>
		<hr noshade="noshade" />   
		<input name="startServ1" value="Dispatch to Servlet" type="submit">
	</form>
</body>
</html>
