Personal discovery from Server.xml to Web.xml! Reading 3668 Source CN-Java Original: Shearlock
[中文 JAVA Technology Network 2004-02-29]
I am an initiator. I have no thing to sell, but I have encountered a configuration problem, I have a good time to solve, and I am so comfortable, I will share my comrades as beginners as me. Please forgive! ! Question: One day I wrote two Servelet programs with Eclipse, ready to put it on Tomcat, start Tomcat after all is equipped, the result Tomcat starts an error Web.xml file error
I don't know why, I change the code to XML Version = "1.0" encoding = "gb2312"?> -
Spokesperson: Chesterwoo Date: 2004-03-01
The DTD document is defined. Spokesperson: Date of 54-03-03
Thank you! I hope you can express your experience. Speaker: Date of 54-03-04
It should be a DTD document definition to determine the order of order spokes: Oriental Desire Date: 2004-03-06
Good text, good people real practical technical spokesperson: Perspective: 2004-03-07
Look at the DTD, I understand why it will. BTW: It is recommended to write Web.xml spokesperson with XMLBuddy eclipse XML editing plugins: lunaszyy date: 2004-03-08
Really useful spokesperson: Date of passenger: 2004-03-08
Here you should pay attention here.
Should be placed together.
Should be placed together. Cannot be put
Put again.
, And put
. This program is fixed to the Web.xml file. The same servlet is the same.
spokesman:
Date of Transcend: 2004-03-09
Create a servlet with JBuilder, generate a web.xml file that format specification, if it is a novice, or use the JBuilder spokesperson: Date: 2004-03-18
The above is not right, you have to know that these configuration files are first XML files, then use the XML parser to resolve the document, if you use the DOM parser, I believe there will be no problem, because it loads the entire XML Document to memory, you can be randomly accessed, but if you use a SAX parser, it will not work because it is based on streaming, read XML document spokes in the SAX parser: Perspective: 2004-03-18
You have to know that these configuration files are first XML files. To parse documents with an XML parser, if you use the DOM parser, I believe that there will be no problem, because it loads the entire XML file to memory, you can randomly access, If you are using a SAX parser, it will not work, it is based on streaming. When the SAX parser reads the XML document, only each section in the document tree can be sequentially handled in the document tree? Br> spokesperson: Transcend date: 2004 -03-18 You have to know that these configuration files are first XML files. To parse documents with an XML parser, if you are using the DOM parser, it loads the entire XML file to memory, but can be randomly accessed, but if used SAX parser, because it is based on streaming, when the SAX parser reads the XML document, only each node in the document tree can be sequentially accessed. Spokesman: Date of Transcend: 2004-03-18
Sorry, 255 restrictions, I took a few words spokesperson: Perspective Date: 2004-03-18
Still upstairs, this buddy professional :) Speech: Eegemini Date: 2004-03-23
Good people a spokesperson: Shearlock Date: 2004-03-23
Thank you for your support! The younger brother finally understood! Recently, the younger brother is studying in JBoss! headache! Spokes: Date of Transit: 2004-03-25
Hey, look at that DTD file, there is a sequential spokesperson that demonstrates the marker: Date of 54-03-26
Haha, why didn't you ask people on the side, spokesperson: Date of 54-04-02
I have also encountered such a problem, and I always have a little wrong! Spokes: Date of Transit: 2004-04-09
What is DTD, is it similar to XML Schema, if any, is this file exist in the Tomcat's folder?