i was jus trying to crete a form and if i submit the form the values should be displayed in the browser.
code is:
html file-
[/U]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form action="firstjsp.jsp" method="get">
<table>
<tr><td><b>Name</b>
<td><input type="text" name="name">
<tr><td><b>age</b>
<td><input type="text" name="color">
</table>
<tr><td><b>address</b>
<td><input type="text" name="address">
</table>
<input type="submit" value="Send">
</form>
</body>
</html>
jsp file-
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="CSS/style.css" rel="stylesheet" type="text/css" />
<link href="CSS/tableStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="200" border="2" cellspacing="1">
<tr>
<td>Name:</td>
<td><%= request.getParameter("name") %></td>
</tr>
<tr>
<td>age:</td>
<td><%= request.getParameter("color") %></td>
</tr>
<tr>
<td>adds:</td>
<td><%=request.getParameter("address") %></td>
</tr>
</table>
</body>
</html>
code above would do that.
now the question is:
i want the form and the display of the entries should come one the same page?
wat should i use?
will ter b a role of scriplets for this?