As far as I know, you won't be able to provide dependent 'secondary' lists
without going back to your server with the results of the primary select.
This leaves you with 3 alternatives:
1) Show only the primary select list to the user, allow them to select the
option they wish and send this back to the servlet engince. Suggestion: Use
an if or a switch/case statement in your servlet to send the output of your
secondary select based on the reslut of the primary select. The advantage
here is that users do not see what secondary options are available for the
primary options that they do not choose.
2) If you still want the table and to only make one trip to the server
(nice & fast :-)), try a set of radio buttons in your first column, one
button per table element. In your second column, you could have your
dependent selections, one set of selections per table element and then third
and fourth columns could have input fields as desired. Again, an if or
switch/case in your servlet based on radio button selects would let you know
which secondary select list to get your values from.
e.g.
<TABLE>
<TR><TD>Col1</TD><TD><Col2></TD></TR>
<TR><TD> <INPUT TYPE ="RADIO" NAME ="PRIMARYSELECT" VALUE="choice1"
CHECKED>choice1</TD>
<TD>
<SELECT SIZE="1" NAME ="SECONDARYSELECT1">
<OPTION>2.1.1 </OPTION>
<OPTION> 2.1.2 </OPTION>
</SELECT>
</TD></TR>
<TR><TD> <INPUT TYPE ="RADIO" NAME ="PRIMARYSELECT"
VALUE="choice2">choice2</TD>
<TD>
<SELECT SIZE="1" NAME ="SECONDARYSELECT2">
<OPTION>2.2.1 </OPTION>
<OPTION> 2.2.2 </OPTION>
</SELECT>
</TD></TR>
<TR><TD> <INPUT TYPE ="RADIO" NAME ="PRIMARYSELECT" VALUE="choice3"
>choice3</TD>
<TD>
<SELECT SIZE="1" NAME ="SECONDARYSELECT3">
<OPTION>2.3.1 </OPTION>
<OPTION> 2.3.2 </OPTION>
</SELECT>
</TD></TR>
<TR><TD> <INPUT TYPE ="RADIO" NAME ="PRIMARYSELECT"
VALUE="choice4">choice4</TD>
<TD>
<SELECT SIZE="1" NAME ="SECONDARYSELECT4">
<OPTION>2.4.1 </OPTION>
<OPTION> 2.4.2 </OPTION>
</SELECT>
</TD></TR>
</TABLE>
3) If you don't have to support early browsers, you could try a Swing
applet.
-----Original Message-----
From: Tarak Ray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 05, 2000 5:43 PM
To: [EMAIL PROTECTED]
Subject:
Hi,
Could you pl give some idea, how can I create
a table (Multiple row form)HTML page from Servlet.
The table would have four columns,
1. A Select List
2. Select List dependent on 1st Colmun, i.e., it show
differnt content in the select list as per the selected =
value in 1st col.
3 & 4 Input field.
Thanks in advance
Tarak
Tarak N Ray
[EMAIL PROTECTED]
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html