Forums Register Login

jsp:root question

+Pie Number of slices to send: Send
There's something that I don't understand. I've been studying for the scwcd using the Deshmukh book.
In the sample code that they provide, they set the
jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
version="1.2"
But I don't have my linux box (where I code from) online, yet the code runs fine. Indeed, it looks like
Sun doesn't have the page online either.
What is the use of the attributes in this tag? Is any info in the root tag really manditory? It seems to work fine with tomcat4 without the info.
What's going on? Or is tomcat4 just smarter than other servers?
Many thanks!
- Andreas
[LIST]
+Pie Number of slices to send: Send
 

Originally posted by Andreas Falley:

jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
version="1.2"
But I don't have my linux box (where I code from) online, yet the code runs fine. Indeed, it looks like
Sun doesn't have the page online either.
[LIST]


Hi..
The attributes specified tell the parser that the document is defined using a particular namespace. Any JSP parser would automatically understand the attributes defined and would parse it accordingly. If you try to parse this file using an external parser, you are likely to encounter an error stating that schema definition not found.
These attributes are merely a way of telling the parser that already understands the document, "look.. I'm JSP document, version 1.2"
Thanks
SR
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 387 times.
Similar Threads
info attribute of page directive
[OCWCD] Standard-tags <jsp:root>
Problem with JSP coded in XML Syntax.
wanted to create own tag in struts using NetBeans and use it in .jspx file
TC 4.0.1 and jsp:root ...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:49:27.