Ragini Shukla
sqllllllll
1 Answer(s)      4 years and 7 months ago
Posted in : Java Beginners

View Answers

October 18, 2008 at 1:06 PM


Hi friend,


"home.jsp"

<HTML>
<head>

</head>
<BODY BGCOLOR="LIGHTYELLOW">
<FORM NAME="form" METHOD="GET" ACTION="">
<br><br>

<H3> <P ALIGN="CENTER"> <FONT SIZE=6> EMPLOYEE DETAILS </FONT> </P> </H3>
<BR>
<BR>
<TABLE CELLSPACING=5 CELLPADDING=5 BGCOLOR="LIGHTBLUE" COLSPAN=2 ROWSPAN=2 ALIGN="CENTER">
<TR>
<TD> <INPUT TYPE="button" NAME="s1" VALUE="Add Employee" onClick="window.open('save.jsp','mywindow','width=500,height=350,toolbar=no,resizable=yes,menubar=yes')">
</FONT> </TD>
</TR>


</TR> </FONT>

</FORM>
</BODY>
</HTML>

"save.jsp"

<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">

</HEAD>

<BODY>

<form method="post" action="next.jsp">
<table>
<tr><td>Name</td><td><input type="text" name="employee_name"></td></tr>
<tr><td>Email</td><td><input type="text" name="email"></td></tr>
<tr><td>&nbsp;</td><td><input type="submit" name="save" value="Save"></td></tr>
</table>
</form>
</BODY>
</HTML>

"next.jsp"

<HTML>
<HEAD>

<script>
function winClose()
{
window.close()
}
</script>
</HEAD>

<BODY>
<%
String employee_name = "";
String email = "";
if(request.getParameter("employee_name")!=null && request.getParameter("email")!=null)
{
employee_name = request.getParameter("employee_name").toString();
email = request.getParameter("email").toString();

}

%>

<form method="post" action="next.jsp">
<table>
<tr><td>Name</td><td><input type="text" name="employee_name" value="<%=employee_name%>"></td></tr>
<tr><td>Email</td><td><input type="text" name="email" value="<%=email%>"></td></tr>
<tr><td>&nbsp;</td><td><input type="button" name="save" value="Close Window" onclick="winClose();"></td></tr>
</table>
</form>
</BODY>
</HTML>

For any problem visit to :

http://www.roseindia.net/

Thanks









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.