From: gang w. <gan...@ho...> - 2003-06-16 22:19:17
|
Hi, I have a question on passing parameter from HTML to servlet. The situation is: 1. I can pass a ArrayList from servlet to HTML which is called company_list. 2. When HTML displayed it dynamically created a table with several buttons in it: <table> #foreach $entry in $company_list { <tr> <td>$entry.field1</td> <td>$entry.field2</td> <td>$entry.field3</td> <td><input type=submit name="???" value=Select></td> </tr> } </table> 3. What I want to do next is: click any one of those buttons to invoke next HTML page. In between servlet need to know which button was clicked and get the information (field1 for example). Could someone show me a few lines of servlet code on how to do it? Thank you in advance. Gang Wu _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |