Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get table content from jsp to servlet

 
nihel turki
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to export html table to excel so I'm using this javascript code:

At first,this code work fine form me ,but in very large table it does not because the uri is too long for the window.location.href.
so is their any java code to get the table content from the jsp page to my servlet without passing this content in url ?
(ps: i tried to pass table content in the url and in json file with ajax but it did'nt work for me)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't use this approach at all in that case. I'd submit the data to a servlet that would format the data accordingly, set the response headers, and serve the formatted data as the response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic