This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL errors causes page to half-load" Watch "JSTL errors causes page to half-load" New topic
Author

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)

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60783
    
  65

Have you checked the logs?


[Asking smart questions] [Bear's FrontMan] [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
Sheriff

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
 
 
subject: JSTL errors causes page to half-load
 
Similar Threads
Exception creating bean of class
JSTL exception handling
JSTL library poblem
Which JSTL jar files for tomcat 5.5?
Implicit Exception Object