aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes sending large data to server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "sending large data to server" Watch "sending large data to server" New topic
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..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: sending large data to server
 
Similar Threads
plz help me on the querystring hiding..
JSP and radio buttons passing values
Total newby javascript question
pass data from one web server to another web server?
Simple AJAX query what I'm missing?