Hi,

Laurie Harper wrote:

Tiles can sometimes 'swallow' errors rendering a JSP without logging them, returning empty pages. Double check your logs first to see if the problem *is* being logged, but if not a couple of approaches you can try to track down the problem:

- try loading your JSPs directly if you can (i.e. without going through Tiles). That may not be trivial if your JSPs need data prepopulated by Struts actions though.

- try wrapping the content of each JSP with a try / catch (using the JSTL tags or runtime scriptlets) and log any exceptions; this can help you see them before they get swallowed by the Struts/Tiles request processing machinery

- try stepping through your JSPs in a debugger. It *really* helps if you have an IDE that supports this well, since just stepping through the Java code generated from the JSP isn't very helpful

I know that this thread is quite old, but I still wonder whether there is a better solution for this. It's quite tedious to find errors in JSPs when the Tiles framework swallows exceptions completely. Is there a patch available that keeps Tiles from doing this?

Regards,

--
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to