Can a single servlet handle say 3-4 html forms having different no. parameters and update the data in different tables say table1, table2 and table 3 in the same database
depending upon the parameters?
-
servlet handling different 3-4 html forms (1 messages)
- Posted by: shailender rawat
- Posted on: October 18 2000 08:37 EDT
Threaded Messages (1)
- servlet handling different 3-4 html forms by Allampalli Ramagopal on October 18 2000 13:08 EDT
-
servlet handling different 3-4 html forms[ Go to top ]
- Posted by: Allampalli Ramagopal
- Posted on: October 18 2000 13:08 EDT
- in response to shailender rawat
Yes a servlet can handle this try this .
1.Pass a parameter in the url to differentiate which form is wanted.
2. Include a hidden variable in HTML to differentiate which database to update.
The first step logic is written in doGet() method.
The Second step is in doPost().
Hope this helps.