Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Only Part of the JSP is rendered to HTML  RSS feed

 
Pranavam Siddharthan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP running out from Websphere 6.0

This jsp fetches few rows under 5 from the database.

On rendering this jsp it displays 24 tabs (layers) with around 100+ fields, sometimes the jsp does not loads completely in the client side.

Actions Taken :

a. used a try catch in jsp -> No exceptions were seen in the logs
b. viewed the view source, the html is incomplete.
c. cleared temporary internet settings and cookies in the client side
d. the screen takes only fraction of seconds to be loaded.
e. larger page than this are getting loaded completely. (in other transactions).

can anyone help please.
 
arulk pillai
Author
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have any static JSP includes. There is a 64k limit in the converted servlet file size. If that is the case replace it with a dynamic include. Inspect the converted servlet from your application server folder.

Also, check your logic. Some code snippets will be more helpful.
[ September 25, 2008: Message edited by: arulk pillai ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An incomplete JSP is usually a sign that an exception was thrown somewhere along the way. Check your logs.
 
Pranavam Siddharthan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your kind and immediate suggestions / solutions.

I could solve the problem, let me explain my solution. Kindly suggest me whether the soln is deviated from J2EE Standards.

Have provided response.flushBuffer() and out.flush() in the JSP file.

PS:

this JSP is from an old Application, having millions of <%= %> tags and <% %> tags rather than Java Beans or Tag Libs.

I could recollect from somewhere I got an info stating flushing of a JSP is taken care by the Application server and it must not be provided in the JSP / Servlet code. Correct me if I am wrong.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!