Below is the list of elements in the web.xml.. may be useful for SCWCD ranchers.. pls include if anything is missed on exam perspective..
and tld also...
May be some spelling mistake will be there.. pls check it, since this is I typed without seeing the book to see how my memory power is ..so careful regd mistakes.. it's just a sample
[ February 10, 2007: Message edited by: Micheal John ]
[ February 10, 2007: Message edited by: Micheal John ]
[ February 10, 2007: Message edited by: Micheal John ] [ February 26, 2007: Message edited by: Micheal John ]
Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Kevin DesLauriers
Ranch Hand
Joined: Nov 28, 2005
Posts: 43
posted
0
Thank you. That is much nicer than my penciled notes on my white board. It will make it easier to memorize.
First of all, congratulations for you, ranchers! This web.xml sample has been very useful! I wonder if the child tag within <security-constraint> should be <web-resource-collection> instead of <welcome-resource-collection>. Or both exists?! And also, shouldn�t the resource name be <web-resource-name> instead of <welcome-resource-name>?! Thanks!
Srinivasan thoyyeti
Ranch Hand
Joined: Feb 15, 2007
Posts: 556
posted
0
Thanks for this. I am about to prepare one.
Thanks & Regards,<br />T.Srinivasan,<br />SCWCD 1.4(89%),SCJP 5.0(75%)<br />"That service is the noblest which is rendered for its own sake." - Mahatma Gandhi
Telling you seriously, I never imagined that much web.xml I would have to learn/ (BTW I have learned now). Seeing them at a place collectively is really awesome experience.
Nice effort!
Thanks,
cmbhatt
Cristiano Sganzerla
Ranch Hand
Joined: Jan 14, 2006
Posts: 44
posted
0
Im drunked and remember all of the web.xml file.
Im really prepared for the exam !!!
I think the unique error in the web.xml schema posted by Micheal John is the 'web-resource-collection' that was corrected by Victor Maehira and khushhal yadav.
I was wondering if this child tag could appear in the exam since i didnt see in the HFSJ, just in Exam Study Kit book.
I am not sure whether it can appear in exam or not. But it's really something good to know. And also not difficult to grasp.
Moreover, it's not a part of web.xml. It's a part of tlds. It's concerend with scripting varibles. And define their lexical scope. There can be three values of it: AT_BEGIN, NESTED, AT_END.
Thank you very much everybody for your contribution and time. This will help everybody. It is a handy reference.
Thanks, Naveen.
Frank Knoll
Greenhorn
Joined: Dec 12, 2007
Posts: 6
posted
0
and there could be context parameters in the web-app:
Tony Ding
Greenhorn
Joined: May 11, 2008
Posts: 7
posted
0
nice job, thanks
Passing SCWCD 84%
Vimal Panchal
Greenhorn
Joined: Jun 22, 2007
Posts: 8
posted
0
Thanks to All,
Nice one.
vimal panchal
John Pearson
Ranch Hand
Joined: Oct 19, 2007
Posts: 51
posted
0
Very nice listing! I wish I had had that a couple of months ago when I was preparing for the exam.
Jay Palaniappan
Greenhorn
Joined: Jul 10, 2008
Posts: 3
posted
0
Thanks for the sample web.xml. I took the liberty of correcting some typos and added few more items in the web.xml. I also validated in RAD (Rational Application Developer) to make sure it doesn't have any more errors. Hope its useful to others...
This message was edited 1 time. Last update was at by Devaka Cooray
Abhra Kar
Ranch Hand
Joined: May 22, 2008
Posts: 94
posted
0
10000 thanks to you
Mitch Miller
Greenhorn
Joined: Mar 10, 2006
Posts: 13
posted
0
To Jay and all,
Thank you Jay for posting and validating.
You mentioned using "(Rational Application Developer)" for xml validation.
Sadly, I do not have RAD available.
How can I validate web.xml using Java?
e.g. once I put 2 error pages together, like this:
Java ignored 404/missing but used 500/error and I wasted lots of time trying to figure out why it caught 500 errors, and ignored 404 errors.
How could I find an error like this?
Thanks, Mitch
This message was edited 1 time. Last update was at by Devaka Cooray
SCJP 1.4 80% -> SCWCD in 2010
Kathiresan Chinna
Ranch Hand
Joined: Aug 17, 2008
Posts: 115
posted
0
Thank you All Kathir
Ankit V Agrawal
Greenhorn
Joined: Nov 26, 2008
Posts: 15
posted
0
Thanks..it would really help
SCJP 5.o, SCWCD 5.o
raj malhotra
Ranch Hand
Joined: Feb 22, 2007
Posts: 284
posted
0
I think we should specify form-login-page and form-error-page only if the auth-method has value 'FORM'.Please correct me if i have misunderstood.