Aug 16th, 2009, 09:53 AM
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"
- 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.