Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

OSCache doesn't play nicely with Tiles

I was hoping to use OSCache to cache my JSP pages to overcome my 15-seconds-to-load performance issue. I was hoping to simply place <cache:cache> tags around my entire Tile's baseLayout.jsp. However, I was disappointed to find that this did not work. I get this nice error message:

Can't insert page '/common/header.jsp' : Illegal to flush within a custom tag 

I even tried it just surrounding my 200+ row table of indexed properties, but no dice, same error. Oh well, onto caching with Hibernate's JCS support.

Posted in Java at Mar 27 2003, 09:19:45 AM MST 2 Comments
Comments:

Just to stick up for OSCache (being the original author and all ;)) - it is impossible to wrap a custom tag around ANY flushed include according to the JSP specification. Thus it's your servlet container that gives you this error message, not OSCache. The Tile's tag must have a buffer.flush() within it, which is evil if you cannot turn it off using tag attributes.

Evil? Yes, evil. It means that you cannot surround the Tiles tag with any other custom tag, OSCache or not.

Hope that helps!

Mike

Posted by Mike Cannon-Brookes on March 29, 2003 at 12:34 AM MST #

The tiles:insert tag does offer a flush="false" option. I had the same problem as mentioned in the original post and using the flush option solved it. Hope this helps. Jonathan.

Posted by Jonathan Gordon on December 15, 2003 at 09:58 PM MST #

Post a Comment:
  • HTML Syntax: Allowed