0

how to get the request from the html from for using in multiple servlet

i want to use single html form and its input field for the multiple servlet file . by the http request. can its possible..enlight me. and also give the code for example.

12th Apr 2017, 9:43 PM
Pratul Tripathi
Pratul Tripathi - avatar
7 Respostas
+ 4
2 options come to mind: 1st option You can get the attributes from your form in an inital servlet that uses the same attributes to call different servlets. 2nd option (only for testing: noy secure at all) you couldhave a JS onclick function on the submit button, that is calling another servlet.
13th Apr 2017, 5:13 AM
seamiki
seamiki - avatar
+ 1
guess you'll use php to handle the input. if you have a servers network you can post your data on a server, redirect to a same page on another server and repeat as you deem necessary
13th Apr 2017, 3:59 AM
seamiki
seamiki - avatar
+ 1
not sure what you want to accomplish but databases sync on multiple servers means you have to look for "database Replication"
13th Apr 2017, 4:44 AM
seamiki
seamiki - avatar
+ 1
Thank u seamiki.. i will try.. thanks for ur concern.
13th Apr 2017, 5:29 AM
Pratul Tripathi
Pratul Tripathi - avatar
0
im using apache. tomcat i want to just use my login page value by request on multiple pages
13th Apr 2017, 4:29 AM
Pratul Tripathi
Pratul Tripathi - avatar
0
for database query.
13th Apr 2017, 4:30 AM
Pratul Tripathi
Pratul Tripathi - avatar
0
simply i want to take a input from form just like. we have 2 field 1 for name 2 for pass.. so i want to use this field value in my different servlet file . for database crud operations.. like on 1 file i want to match the name and pass from db. and another file i want to Fatch all record related to this user name. so my question is how i can use a single input field value on different different servlet pages and for different operations. thanks bro
13th Apr 2017, 4:50 AM
Pratul Tripathi
Pratul Tripathi - avatar