How to avoid using scriptlets in my JSP page?

I think it helps more if you see with your own eyes that it can actually be done entirely without scriptlets. Here’s a 1 on 1 rewrite with help of among others JSTL (just drop jstl-1.2.jar in /WEB-INF/lib) core and functions taglib: <%@ taglib uri=”http://java.sun.com/jsp/jstl/core” prefix=”c” %> <%@ taglib uri=”http://java.sun.com/jsp/jstl/functions” prefix=”fn” %> <html> <head> <title>My … Read more

Are there any good tutorials for using sitemesh in a grails application?

the g:pageProperty is a very powerful, but very poorly documented thing. Lets say in my layout I specify where to put some content like this: <html> <body> <g:pageProperty name=”page.header” /> </body> Now in my page I can specify some content: <content tag=”header”> <!– header –> </content> Sitemesh will take the content tag, regardless of actual … Read more

tech