| Author |
sending large data to server
|
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
Hi,
Am sending dynamic table records from javascript to jsp(in the form of hidden variables), and there --- inserting into database .
Here the querystring is appearing...
How to send the data from client to server without appearing the querystring ...
|
thanks,
indu
|
 |
Chinna Eranna
Ranch Hand
Joined: Dec 08, 2009
Posts: 174
|
|
|
User POST HTTP Method.. in your jsp.
|
- Chinna
|
 |
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
|
in HTML form am using POST method, and in jsp am getting records and inserting into database..
|
 |
Chinna Eranna
Ranch Hand
Joined: Dec 08, 2009
Posts: 174
|
|
|
Please elaborate your question.. and show what you want to change.
|
 |
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
in HTML , add,delete,save buttons...
when I click "save" button all the information (records) will be inserted into the database.
For this,
first am sending dynamic table records from javascript to jsp like this..
in jsp, am inserting records...
In this process all the records information are appending in the query string .
document.location.href without querystring ??? then how can I get the dynamic data in jsp?
|
 |
Chinna Eranna
Ranch Hand
Joined: Dec 08, 2009
Posts: 174
|
|
When you use href.. it sends the request using method "GET". thats why the query string is visible.
What you need to do for sending the request as POST is.. you have to submit the form.. like document.forms.submit()
|
 |
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
|
can I send dynamic values to jsp with submit() ?
|
 |
Chinna Eranna
Ranch Hand
Joined: Dec 08, 2009
Posts: 174
|
|
Yes..
Remember JSP is a servlet ..
|
 |
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
thanks a lot .. I got it..
|
 |
 |
|
|
subject: sending large data to server
|
|
|