File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSTL errors causes page to half-load Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL errors causes page to half-load" Watch "JSTL errors causes page to half-load" New topic

JSTL errors causes page to half-load

Darien Cheung
Ranch Hand

Joined: Aug 13, 2004
Posts: 36
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)

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Have you checked the logs?

[Asking smart questions] [About Bear] [Books by Bear]
Darien Cheung
Ranch Hand

Joined: Aug 13, 2004
Posts: 36
Yes, logs did not show any problems. Typically these should show up in the jasper.log?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

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.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: JSTL errors causes page to half-load
jQuery in Action, 3rd edition