• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP buffer size issue

 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Page directive in JSP we can give buffer size.
In my case My JSP contain huge amount of data (coming from DB) at run time.
but in websphere when I deploy application then It is giving white page with random characters.
same thing is working for weblogic server,
I figure out problem with page directive buffer size when I add bellow statement in my JSP then it works fine.


But,
whatever data I am displaying on JSP from database that can be more than current data.
If data size is increases then again same problem will come again I need to change buffer size that is not good.

Is there any generic solution for this so need to change code when data from Database is increases.

Please Help Us.

Thanks in advance.
 
Bartender
Posts: 1357
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shailesh,

to be quite honest, I did not known this directive, but with a quick search on the web i've read that the buffer value is used only to bufferize the output written to the client browser. The larger is the buffer, the more data can be send to the client in one single step. On the other hand, a larger buffer size seems to require more memory on the server side. Anyway, you have to transfer the same amount of data irrespective of any buffer size. What happens if you leave unchanged default JSP buffer size ? Your app does not work ?



 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If is I have not give buffer size I giving same error.
 
Claude Moore
Bartender
Posts: 1357
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On WAS log, is there some error ? Did you try and reduce - even for test only - the amount of data ? Same error ?
reply
    Bookmark Topic Watch Topic
  • New Topic