All pastes #923120 Raw Edit

Something

public text v1 · immutable
#923120 ·published 2008-02-29 08:24 UTC
rendered paste body
<!-- -------------------------- -->
<!-- User Registration Page     -->
<!-- Author : Sanaa Khalil      -->
<!-- purpose: IST334 - Lab1     -->
<!-- Date   : February 09, 2008 -->
<!-- -------------------------- -->

<%@ page language="java" import="java.util.*,beans.*" %>

<html>
<head>
<title></title>
 <base href = "<%="http://" + request.getServerName() + ":" 
 			+ request.getServerPort() 
 			+ request.getContextPath() + "/"%>"/>

</head>
<body bgcolor="Tan">
<center><h2>Registration Page</h2></center>
		<form action="AddUserServlet" method="post">
			<table>
				<tr>
					<td>User Name:</td>
					<td><input type="text" name="userName"/></td>
				</tr>
				<tr>
					<td>Password:</td>
					<td><input type="password" name="userPassword"/></td>
				</tr>
				<tr>
					<td>ReEnter Password:</td>
					<td><input type="password" name="reEnterPassword"/></td>
				</tr>
				<tr>
					<td>Preferences To view the Wall: </td>
					<td> Background Color</td>
				</tr>
				<tr><td></td>
					<td bgcolor="Moccasin"> <input type ="radio" name="backgroundColor" value="Moccasin"/>Moccasin</td>
				</tr>
				<tr><td></td>
					<td bgcolor="LightBlue"> <input type ="radio" name="backgroundColor" value="LightBlue"/>LightBlue</td>
					</tr>
				<tr><td></td>
					<td bgcolor="DarkSeaGreen"> <input type ="radio" name="backgroundColor" value="DarkSeaGreen"/>DarkSeaGreen</td>
				</tr>
				<tr>
					<td></td>
					<td> Text Color</td>
				</tr>
				<tr><td></td>
					<td><font color=Brown> <input type ="radio" name="textColor" value="Brown"/>Brown</font></td>
				</tr>
				<tr><td></td>
					<td><font color=Black> <input type ="radio" name="textColor"  value="Black"/>Black</font></td>
					</tr>
				<tr><td></td>
					<td><font color=DarkOrchid> <input type ="radio" name="textColor" value="DarkOrchid"/>DarkOrchid</font></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Register"/></td>
				</tr>
			</table>
					
		</form>
		<%
			String message = (String)request.getAttribute("RegistrationMessage");
			if(message!=null)
			{
				out.println(message);
			}
		%>
<a href="\KeepInTouch.jsp">Back to Home Page</a>		
</body>
</html>