• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in jsp root

 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
say true or false
A JSP document (i.e. in XML syntax) must start with the root tag

I think it is false

source ->examulator.com
 
Reesha Ashok
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. It's false.
<jsp: root> is optional.
Below is from the jsp 2.o spec

A JSP document may or not have a <jsp:root> as its top element; <jsp:root>
was mandatory in JSP 1.2, but we expect most JSP documents in JSP 2.0 not to
use it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic