aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Sharing my experience with you Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Sharing my experience with you" Watch "Sharing my experience with you" New topic
Author

Sharing my experience with you

alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Hi guys, as I've done during SCBCD, also while studying for this exam (as now I'm approaching the end, finally, eheheh), I wrote a document which I could refer to in order to have a quick reminder of things like interfaces' signatures, web.xml elements, security, etc. I thought I could share with you this document which you will find at the following address:

SCWCD Reminder - At the home page, click on the 'SCWCD Reminder' link


The site is active from 9.00am to 11.00pm London time.

Please send any comments or insults for mistakes (there will certainly be some) at: mtedone at jemos.co.uk

Good luck,

Marco
[ March 03, 2005: Message edited by: Marco Tedone ]

Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
Hai Le
Greenhorn

Joined: Sep 22, 2004
Posts: 28
it's very nice Marco

Thanks for sharing..!! i'm preparing for the exam right now..!! If you could, could you please list all the mock exams which you took through the web??
I really do appreciate it..!!
Thanks in advance Marco

Hai Le


Step one step back to learn more thing..!!<br />Post to learn<br />learn from mistake<br />take whatever i understand...!!!<br /> <br />SCJP 1.4, Brainbench Java 1 & 2.<br />SCWCD 1.4 (preparing...!!)
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
It's quite simple really! I used softSCBCD for SCBCD and softSCWCD for SCWCD.

If you run a Google search for those two exams, you will find the link. Additionally, I used the mock exams available on this site and you can refer to the following URL:

JDiscuss

to find some nice and free mock exams.

Good luck,

Marco
Hai Le
Greenhorn

Joined: Sep 22, 2004
Posts: 28
thanx for the information Marco
Murali Chidurala
Greenhorn

Joined: Feb 22, 2005
Posts: 1
Very nice check list marco. I'm starting my prep for this. Got the good list at right time. Thanks!! Can you also tell me how long it took to feel that you are in pretty good shape along with your efforts? This is just to have a rough estimate for myself.

Thanks once again...
Ranjit Jana
Ranch Hand

Joined: Feb 17, 2005
Posts: 30
Thanks Marco,

This will surely be of help.

Regards
Durgaprasad Guduguntla
Ranch Hand

Joined: Oct 20, 2003
Posts: 99
Excellent collection and would surely help everyone going for the Exam. It would be better if the complete method signatures are given in Servlet API. Similarly the following needs correction:



There should be separate <security-role> element for each role.

Thanks,

Durga


Thanks,<br />Durgaprasad<br />SCJP1.4, SCWCD1.4, SCBCD1.3,<br />SCEA
P. Dunn
Ranch Hand

Joined: Feb 22, 2005
Posts: 34
Originally posted by Durgaprasad Guduguntla:
Excellent collection ... the following needs correction:
There should be separate <security-role> element for each role.

According to web-app DD and p632 of HFS&J either way is OK


P.Dunn<br />SCJP, SCJD, SCEA & SCWCD
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
According to Figure SRV.13.16 in Servlet spec 2.4 (page 145), the only correct way is to use only one <role-name> per <security-role>.

So I think there's a mistake in HFSJ.
Sharma Anjali
Ranch Hand

Joined: Feb 22, 2005
Posts: 63
Originally posted by Jose Esteban:
According to Figure SRV.13.16 in Servlet spec 2.4 (page 145), the only correct way is to use only one <role-name> per <security-role>.

So I think there's a mistake in HFSJ.


I don't think so .
I tried the way mentioned in HF and it works fine
Francois Roland
Ranch Hand

Joined: Jul 24, 2003
Posts: 34

Great job !

Thank you.

I think there is one thing to correct:

Brief Roadmap:

19) The HttpSession - related listeners.

I'm pretty sure that there is another listener that doesn't have to be registered in the deployment descriptor: HttpSessionActivationListener.


--
Brown belt on KnowledgeBlackBelt.com.
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
Originally posted by Sharma Anjali:


I don't think so .
I tried the way mentioned in HF and it works fine


I didn't say it doesn't work. I only say that it isn't correct according to the JSP 2.0 specs.
Jose Esteban
Ranch Hand

Joined: Nov 28, 2004
Posts: 102
Originally posted by Francois Roland:

I think there is one thing to correct:

Brief Roadmap:

19) The HttpSession - related listeners.

I'm pretty sure that there is another listener that doesn't have to be registered in the deployment descriptor: HttpSessionActivationListener.


I don't know. I think the Servlet 2.4 specs are a little confusing. The say in SRV.10.3.2:
"Listener classes are declared in the Web application deployment descriptor using the listener element."

Which, I understand, means that all of the listeners must be declared in the DD. But later, in SRV.15.1.10, the specs say:
"Events of this type are either sent to an object that implements HttpSessionBindingListener when it is bound or unbound from a session, or to a HttpSessionAttributeListener that has been configured in the deployment descriptor when any attribute is bound, unbound or replaced in a session."

which seems to indicate that HttpSessionBindingListener doesn't need (have) to be declared in the DD.

I really would appreciate any explanation.

What HFSJ say is that:
"...HttpSessionActivationListener must be registered in the DD, since they are related to the session itself, rather than an individual attribute placed in the session"

What about ServletRequestListener or ServletRequestAttributeListener? I think they must be declared in the DD, but I dont know it for sure.
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Originally posted by Jose Esteban:


I don't know. I think the Servlet 2.4 specs are a little confusing. The say in SRV.10.3.2:
"Listener classes are declared in the Web application deployment descriptor using the listener element."

Which, I understand, means that all of the listeners must be declared in the DD. But later, in SRV.15.1.10, the specs say:
"Events of this type are either sent to an object that implements HttpSessionBindingListener when it is bound or unbound from a session, or to a HttpSessionAttributeListener that has been configured in the deployment descriptor when any attribute is bound, unbound or replaced in a session."

which seems to indicate that HttpSessionBindingListener doesn't need (have) to be declared in the DD.

I really would appreciate any explanation.

What HFSJ say is that:
"...HttpSessionActivationListener must be registered in the DD, since they are related to the session itself, rather than an individual attribute placed in the session"

What about ServletRequestListener or ServletRequestAttributeListener? I think they must be declared in the DD, but I dont know it for sure.


Yes, confirmed. The HttpSessionActivationListener and HttpSessionBindingListener don't need to be declared in the DD. I know it because my colleague took the exam last week.
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Originally posted by Murali Chidurala:
Very nice check list marco. I'm starting my prep for this. Got the good list at right time. Thanks!! Can you also tell me how long it took to feel that you are in pretty good shape along with your efforts? This is just to have a rough estimate for myself.

Thanks once again...



It really depends on few factors:

1) If you work
2) If 1 was true, if the company you work for wants things by yesterday 'cause' of business
3) If you are healthy
4) If you are ready to give up drinking (if you drink at all) alcohol for the study period (believe me, it's harder than it seems)
5) If you are free to do what you want in your spare time

My answers to the above are:

1) Yes
2) Yes
3) Yes, but after 13-14 hours at the office, I feel the tiredness
4) Yes, except on my first year marriage anniversary, where I took my wife to a Russian restaurant and I had a bloody mary and a special reserve 'pure vodka'
5) Yes

With the above answers, is taking me now 6 months to get prepared. I'm preparing to get the best from the exam, not just a certification.

Hope it helps.
5)
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Originally posted by Durgaprasad Guduguntla:
Excellent collection and would surely help everyone going for the Exam. It would be better if the complete method signatures are given in Servlet API. Similarly the following needs correction:



There should be separate <security-role> element for each role.

Thanks,

Durga


Following the specs, it seems that Durgaprasad is right, therefore I updated the document. However, my interpretation of the thing is that there should be more than one role in a security-role element, otherwise why to bother to create a security-role name? They could simply accomodate more than a single role-name element. Certainly it would have saved us a lot of opening and closing tags
P. Dunn
Ranch Hand

Joined: Feb 22, 2005
Posts: 34
There should be separate <security-role> element for each role.

Following the specs, it seems that Durgaprasad is right...


Yes. In the spec, I looked looked up
<!ELEMENT auth-constraint (description?, role-name*)>
not
<!ELEMENT security-role (description?, role-name)>
[ March 03, 2005: Message edited by: P. Dunn ]
P. Dunn
Ranch Hand

Joined: Feb 22, 2005
Posts: 34
Originally posted by Marco Tedone:

Yes, confirmed. The HttpSessionActivationListener and HttpSessionBindingListener don't need to be declared in the DD. I know it because my colleague took the exam last week.


I can't find anything to corroborate that a HttpSessionActivationListener need not be in DD. HFS saqys the opposite. Could your colleague have gotten it wrong?
Could you give a reference? Anyone?

BTW : Thanks Marco. Nice summary.
[ March 03, 2005: Message edited by: P. Dunn ]
janne s
Ranch Hand

Joined: Sep 21, 2004
Posts: 81
Hi Marco,

your doucment is really helpful...
I guess, u forgot to include <servlet-mapping> element.


Thanks
jaya
[ March 03, 2005: Message edited by: jaya merugu ]
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Originally posted by P. Dunn:


I can't find anything to corroborate that a HttpSessionActivationListener need not be in DD. HFS saqys the opposite. Could your colleague have gotten it wrong?
Could you give a reference? Anyone?

BTW : Thanks Marco. Nice summary.

[ March 03, 2005: Message edited by: P. Dunn ]


Unfortunately I can't. I have to trust my colleague or...lose a mark on the exam

So far I was thinking that those two are the only two listeners which are implemented by classes destined as session attributes, for one goal or another, and that was the reason. Pretty soon I'll start the softSCWCD exams and I'm sure there there will be a reference.
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Originally posted by jaya merugu:
Hi Marco,

your doucment is really helpful...
I guess, u forgot to include <servlet-mapping> element.


Thanks
jaya

[ March 03, 2005: Message edited by: jaya merugu ]


Could you tell me where?

Towards the end of the document there is a DD containing mostly all the elements (not all the optional ones!). Additionally, in the roadmap today I added the three kind of servlet mapping:

Exact match
Directory match
Extension match
janne s
Ranch Hand

Joined: Sep 21, 2004
Posts: 81
Hi! Marco,

is the link updated that u posted here...
i don't c any changes in the document related to mapping
except for ' Defining initial parameters for a JSP'

If u make any changes leave a message here...


Thanks,
jaya
alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Originally posted by jaya merugu:
Hi! Marco,

is the link updated that u posted here...
i don't c any changes in the document related to mapping
except for ' Defining initial parameters for a JSP'

If u make any changes leave a message here...


Thanks,
jaya



Oopps, sorry, you are right. I must have deleted the <servlet-mapping> element by mistake. Now I inserted three different servlet-mapping elements.

Thank you for the hint.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sharing my experience with you