• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL errors causes page to half-load

 
Darien Cheung
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every so often, I have an error in the JSTL I write for my JSP's, such as a typo. This causes the page to not render properly. It's as if the browser decided to quit halfway (or even less). I don't see any meaningful error messages or any exception, just a half-rendered page.

Is this behaviour normal? It's a real pain to debug because I can only walkthrough the code carefully before finding my mistake. Is there a more efficient way to solve these problems?

(I'm using Tomcat 5.5, JSTL 1.2 and have set error pages, which work fine when my framework throws an exception)

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64615
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the logs?
 
Darien Cheung
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, logs did not show any problems. Typically these should show up in the jasper.log?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this case, probably not.

It sounds like a runtime problem that is happening after the response has started sending output to the client.

Jasper is the JSP compiler that converts your JSP code into generated servlet code. If something in Jasper blew up, you never would have reached the point where output is being generated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic