following is the code for A.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
JSP Example For
SCJD</title>
</head>
<body>
<%!
String who="";%>
<form>
Enter your name:<input type="text" name="who">
<input type=submit value="Submit">
</form>
<jsp:forward page="welcome.jsp">
<jsp
aram name="who" value="<%= who%>"/>
</jsp:forward>
</body>
</html>
and below is the code for welcome.jsp
<html>
<head>
<title>Trupti's first JSP for SCJD</title>
</head>
<body>
<%--<%! String name="";%>--%>
Welcome!! <%=who%>.
This is my first example for the SCJD study group.
</body>
</html>
when I submit the name, the welcome.jsp should display the line with the name entered by the user.
e.g. welcome!! trupti
But the A.jsp directly forwords the request to welcome.jsp without showing the form.
How do I achieve it?
thanks,
Trupti
[ November 27, 2002: Message edited by: trupti nigam ]
[ November 27, 2002: Message edited by: trupti nigam ]