Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending large data to server

 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
User POST HTTP Method.. in your jsp.
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in HTML form am using POST method, and in jsp am getting records and inserting into database..
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please elaborate your question.. and show what you want to change.
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can I send dynamic values to jsp with submit() ?
 
Chinna Eranna
Ranch Hand
Posts: 174
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes..

Remember JSP is a servlet ..
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot .. I got it..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic