DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004

    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>
    <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>


    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.


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


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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.