• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Sharing my experience with you

 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx for the information Marco
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Marco,

This will surely be of help.

Regards
 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 34
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Jose Esteban
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic