Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: html forms


Message #1 by gbilios@h... on Mon, 28 Oct 2002 15:56:40
29th of October, 2002

Hi,

I know I can send information in a html form to the servlet's 
request.getParameter, but how can I send the form name to the servlet?  
The situation is that I want to post the information to the controller, 
which will be used to update data in a database.  I have in my displayUI a 
series of buttons and for each I have a method=\"post\" and the controller 
needs to know which update is posted.  Below is the code I am using to 
process the updates.  

String application_url = request.getParameter("ApplicationURL");
/* I need to post the form name to the servlet controller */

stmt.executeUpdate("..............");
stmt.executeUpdate("..............");
stmt.executeUpdate("..............");

gbilios

  Return to Index