Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Templates for error page and page imports  RSS feed

Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was using the feature called JSP templates in my application to encapsulate Webpage layout for modular design. I followed this article from javaworld:
Everything is fine except for error page usage and using page import tags. If anybody has used this feature in JSP templates and has successfully implemented error page, please let me know.
What I want is: if a layout is formed with say 5 jsps(header, footer, side bar, content, right bar), all the other JSPS in the layout is displayed but the jsp which throws error only will use error page. What I want is the whole layout should not displayed even if one of the jsps in the layout throws an error.
Please help me.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!