Announcement Announcement Module

JavaConfig forum decommissioned in favor of Core Container

As described at

key features of the Spring JavaConfig project have been migrated into the core Spring Framework as of version 3.0.

Please see the Spring 3.0 documentation on @Configuration and @Bean support:

For any questions related to @Configuration classes and @Bean methods in Spring 3.0, please post in the dedicated 'Core Container' forum at
See more
See less
DOC Type Insertion Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • DOC Type Insertion

    I'm using RSA (IDE) with spring framework to develop portlets. I'm encountering a problem. <HTML>, <Head> and <Body> tags are getting inserted into the code automatically during run time. When you select 'View source' of the displayed page, you can see these tags.
    All my code written inside the JSP is considered as 'HTML fragments' and gets inserted into the generated <Body> tag (though my code also has 'html' and 'body' tags).
    Now the problem is the doc type declaration - "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">"
    - which I have given at the start of my code inside the JSP also goes into the <body> tag during run time. It affects the look and feel of the page.
    How can I insert it at the start of my page? Please help.