How to display the entered value into an another textbox
I have a problem in JSP.
Actually I want to do this.
There is a HTML form called EnterNicInter.jsp which prompts to enter NIC No. Here is a part of it.
<form name="EntNicno" method="POST" action="EntInterCtrl.jsp" onsubmit="return checkEmpty(this);">
<td noWrap style="background-color: #DEB887" width="80"><B>NIC No</b></td>
<input type="text" name="nicno" size="14" style="border:1px solid #0000FF; color: #FF0000; font-weight: bold"></td>
<td width="56"><input type="submit" value="Select" name="B1"></td>
The file called "EntInterCtrl.jsp" has a logic part which verify that the entered NIC No. is already exist or not. If it is already exist then it should display an error msg ("Record already exist"). If it is not in the db, the it should display the "interview.jsp" form. Up to this point it works fine.
But in this "interview.jsp" form, it has a textbox to display the entered NIC No. My problem is how to display this NIC No. into this textbox.
Nicno.<input type="text" name="nicno" size="20" style="border: 1px solid #0000FF; color:#FF0000"></td>
I also think to use JavaBeans, but it's a question because the entered NIC No. is not in db. Then how can I set this value (entered nicno) into the textbox in the "interview.jsp" ?
I'm using JSP 1.2 with mySQL.
Please if you can do this, tell me how to solve this.
Not seeing all the details makes it a little difficult but something like -
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL