1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TextBox generation

Discussion in 'JSP' started by Naash, Feb 21, 2009.

  1. Naash

    Naash New Member

    Joined:
    Jan 22, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    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>
    
    
    
     

Share This Page