Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   TextBox generation (http://www.go4expert.com/forums/textbox-generation-t16296/)

Naash 22Feb2009 02:07

TextBox generation
 
Help !
I am new to jsp.

I am writing the part of my code. It has 4 textbox fields - Name, Module, Module, Contact no.
In my code 4 rows are created each having the 4 fields.

What I want is that after user comes to the 2nd row, 3rd should automatically generate and when he comes to 3rd row,4th should automatically and so on.........

Now tell me what taglibraries to use and what required coding to be done.

Note : I haven't posted the full code !

Code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@page import="org.ims.dto.*"%>
<%@page import="org.ims.inc.ejb.*"%>




<tr bgcolor="#ECE9D8">
        <td height="17" colspan="5"><div align="center"><span class="style28">Release Contact Details </span></div></td>
      </tr>
      <tr>
        <td height="21" colspan="5"><div align="right"></div>                    <div align="right">
          <table width="100%"  border="0" bordercolor="#ECE9D8">
            <tr>
              <td width="7%">S No . </td>
              <td width="21%"><div align="center"> Name </div></td>
              <td width="26%"><div align="center">Module</div></td>
              <td width="19%"><div align="center">Module</div></td>
              <td width="27%"><div align="center">Contect No. </div></td>
            </tr>
            <tr>
              <td>1</td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="25"></td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="30"></td>
            </tr>
            <tr>
              <td>2</td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="25"></td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="30"></td>
            </tr>
            <tr>
              <td>3</td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="25"></td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="30"></td>
            </tr>
            <tr>
              <td>4</td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="25"></td>
              <td><input name="textfield" type="text" size="20"></td>
              <td><input name="textfield" type="text" size="30"></td>
            </tr>
          </table>
        </div>          </td>
        </tr>



All times are GMT +5.5. The time now is 04:56.