@P0rridge wrote:
I am scaffolding my Spring apps with the CRUD wizard. The jsp pages /sitemesh_decorators/include.jsp and the home.jsp
have lines prior to <!DOCTYPE like
<%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%> <CR/>
which insert the <CR/>, and the include.jsp has a space at the end of a line (which took ages to find).
I think the <CR/> should be removed from your production files, or a comment about this problem inserted, but even if not, how do I change the master templates on my installation, so I dont have to make these changes each time I scaffold?
Thanks
Nice detective work. I’m surprised no one has ever reported that before.
Rather than removing the <CR/> in include.jsp, I resolved the issue by modifying WEB-INF/sitemesh-decorators/main.jsp
I moved <!DOCTYPE…. to the top.
As far as changing the master templates, take a look at the Customize Code Generation using JET Templates tutorial. It’s very easy to create a project that can be applied to all your ME4S code generation at the project-level and/or workspace level.
When you create the Customization project, you will want to modify the sitemesh templates that are located in the crudCommon/staticWebContent/common/sitemesh/sitemesh-decorators folder.
I will log this to be fixed in the next release.