Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why does the include-prelude require the HEAD, HTML and BODY tag?

 
Charles Sexton
Ranch Hand
Posts: 272
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does the include-prelude require the HEAD, HTML and BODY tag? To me this is a design flaw. Why couldn't you just inject the markup for the ? Am I missing something that I am not aware of. I have seen quite a few frameworks allow for the markup to be injected.


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charles Sexton wrote:Why does the include-prelude require the HEAD, HTML and BODY tag?

What leads you to believe that it does?
 
Charles Sexton
Ranch Hand
Posts: 272
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Glassfish and Netbeans....

Web.xml



index.jsp, also being served as a welcome-file


jspf




 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That does not answer my question.
 
Charles Sexton
Ranch Hand
Posts: 272
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:That does not answer my question.


Because I have tried it and without the tags you end up with something like this.



Am I missing something? Newbie mistake somewhere.....?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP could care less what the HTML markup is. You could put the Magna Carta in there and it wouldn't care. You need to make sure that the assembled parts make up a valid HTML page to keep the browser happy, but what parts come from where is irrelevant to the JSP engine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic