This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send large data from servlet to jsp

 
sankalp shah
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using request.setAttribute("abc", hugeString).
But in jsp whole string is not available.
Can someone help me?

 
nirmal singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just store t n a vector and get them as bean in jsp of type vector nd get the each elements by vector of vector
 
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
You'll have to show us how you are displaying the string in the JSP.

And no, A Vector is not the answer.
 
nirmal singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How comes vector nt a ans???
 
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
nirmal singh wrote:How comes vector nt a ans???


nirmal singh, please use real words when posting to the forums. Abbreviations such as "nt" in place of "not" and "ans" in place of "answer" only serve to make your posts more difficult to read. Please click this link ⇒ UseRealWords for more information.
 
nirmal singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do like this

for first set....and loop it result.append(var1,var2)
result.append(|)
and send as string
 
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
Still waiting on the original poster to answer my question.
 
sankalp shah
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.
There are few issues related to same.
win.location.replace() is used & url is used to send the data.So sending large data is not possible.
What I did is created dummy form element & created hidden variable on the same form.
And submitted the form with action set to required url.

It works.

Thanks for the reply once again.

 
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
You should have originally mentioned that you were sending this via URL.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic