Hello Everyone, On page 597 of HFSJ, it states that "There is more you have to know if you write this by hand - the whole document, for example, must be enclosed in a <jsp:root> tag (which includes some other stuff), and the taglib directives go inside the <jsp:root> opening tag, rather than as a <jsp:directive>.
On pg 763 & 801, Q6 of the final mock exam, You are asked which choices about a JSP document are correct (and choose all that apply).
A: A JSP document must have a <jsp:root> as its top element.
B: The following would be valid as the first line of a JSP document: <jsp:root xmlns:uri="http://java.sun.com/JSP/Page" version="2.0">.
I wont list all of the choices in the spirit of "not giving the book away for free", but I am not sure why A or B are incorrect answers. can someone please explain? Thanks.
[ March 10, 2006: Message edited by: Patrick Williams ]
[ March 10, 2006: Message edited by: Patrick Williams ] [ March 10, 2006: Message edited by: Patrick Williams ]
I'm definitely not claiming to be an expert, but if you look at their examples (especially the standard JSP converted to a JSP Document), it's clear that you are NOT required to have jsp:root as the top element.