| Author |
About the web.xml
|
Russell Tao
Greenhorn
Joined: Dec 13, 2004
Posts: 12
|
|
Should every element in the web.xml follow a strict order? Cause I know <listener> must defined before <servlet>. But what about other elements?
|
 |
Narendra Dhande
Ranch Hand
Joined: Dec 04, 2004
Posts: 950
|
|
Hi, These restrictions are removed in Servlet 2.4 specs. You can define the elements under <web-app> in any order. But the sub-elements of the elements under <web-app> should be in order. These sub-elements resctrictions does not followed in some app server like Tomcat. But the Sun Application Server PE strictly follow it. Hope it helps Thanks
|
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
|
 |
Niranjan Deshpande
Ranch Hand
Joined: Oct 16, 2005
Posts: 1277
|
|
|
how do i know which version of servlet i am using ???
|
SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
|
 |
srini E
Greenhorn
Joined: Feb 18, 2006
Posts: 10
|
|
what ever server you are using, usually has readme.txt file, or RELEASE-NOTES under the installed folder. Please go through that to find more. See the bundle API's (in tomcat atleast) to know which version of servlet. JSP spec that server follows. this on easy way :-) hard way is to find out programatically, you don't want to do that.
|
learn-->practice-->Improvise-->repeat<br /> <br />Thanks,<br />Srini
|
 |
 |
|
|
subject: About the web.xml
|
|
|