facebook

Getting
  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #318082 Reply

    Greg Soulsby
    Member

    Not sure where to post this, so trying here.

    My expert on browser compatibility is telling me that <!DOCTYPE must be the first characters in a page, without white spaces beforehand. Something to do with old IE versions.

    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

    #318116 Reply

    neyde
    Member

    @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.

    #318150 Reply

    Greg Soulsby
    Member

    Thank Niel.

    On the correctness of the jsp templates, should the <meta> , <base>,<param> tabs all be self closing – I am seeing them without the /> in home.jsp

    Greg

    #318167 Reply

    neyde
    Member

    @P0rridge wrote:

    On the correctness of the jsp templates, should the <meta> , <base>,<param> tabs all be self closing – I am seeing them without the /> in home.jsp

    In what directory are you finding home.jsp? For some reason I can’t find it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Getting

You must be logged in to post in the forum log in