Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Ragini Shukla
sqllllllll
1 Answer(s)      6 years and a month ago
Posted in : Java Beginners



Advertisement
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 Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com