File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How to send large data from servlet to jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to send large data from servlet to jsp" Watch "How to send large data from servlet to jsp" New topic
Author

How to send large data from servlet to jsp

sankalp shah
Greenhorn

Joined: Jan 31, 2011
Posts: 2
Hi,

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

nirmal singh
Greenhorn

Joined: Feb 07, 2008
Posts: 6
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

Joined: Jan 10, 2002
Posts: 61434
    
  67

You'll have to show us how you are displaying the string in the JSP.

And no, A Vector is not the answer.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
nirmal singh
Greenhorn

Joined: Feb 07, 2008
Posts: 6
How comes vector nt a ans???
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

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

Joined: Feb 07, 2008
Posts: 6
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

Joined: Jan 10, 2002
Posts: 61434
    
  67

Still waiting on the original poster to answer my question.
sankalp shah
Greenhorn

Joined: Jan 31, 2011
Posts: 2
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

Joined: Jan 10, 2002
Posts: 61434
    
  67

You should have originally mentioned that you were sending this via URL.
 
Don't get me started about those stupid light bulbs.
 
subject: How to send large data from servlet to jsp