How to display the entered value into an another textbox


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to display the entered value into an another textbox

Hybrid View

  1. #1
    Join Date
    Jun 2004
    Posts
    17

    How to display the entered value into an another textbox

    Hi,

    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>
    <td width="106">
    <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>
    </tr>
    </table>

    </center>
    </div>
    </form>


    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.

    Thanks

  2. #2
    Join Date
    Jun 2004
    Posts
    199
    Not seeing all the details makes it a little difficult but something like -

    value="<%=NicNumber%>"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center