aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Passed with 88% 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 "Passed with 88%" Watch "Passed with 88%" New topic
Author

Passed with 88%

Andy Ng
Greenhorn

Joined: Dec 20, 2001
Posts: 6
I just passed the exam with 88%.
The exam is pretty easy and straight forward.
Some trick you have to concern:
1. directives can define anywhere in the page.
2. scope for useBean, when the bean available within the page?
3. what happen for session and application when the web-app shut down and startup? (Listener).
4. using combination of ' and "
5. body content of a tag
Good luck!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Congrats Andy
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
tony lee
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
Hi Andy,
I have some questions on your points:

2. scope for useBean, when the bean available within the page?
3. what happen for session and application when the web-app shut down and startup? (Listener).
4. using combination of ' and "

->2. As soon as we declare <%useBean id=".." %>, right? Some guy said such a bean is available in the page by default (without specifying scope attribute), but I can't find it on spec.
->3. When web-app shut down:
session: seesion.invalidate() is called.
application: Servlet.destroy() is called.
When web-app startup:
session: After a request, session.getSession is called.
application: class is loaded, instanciate(), init(), service()are called.
Seems nothing to do with listeners
->4. Could somebody tell me about this


SCJP2, SCWCD
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Andy, nice job done...congrats


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
Andy Ng
Greenhorn

Joined: Dec 20, 2001
Posts: 6
Hi Tony
for 2. How about I give an example of useBean scope:
<% { %>
<jsp:useBean id=test ..../>
....
<% } %>
....
will the test bean outside the { } scope.
for 3. I don't think the session.invalide() will call when we shut down the web-app, instead HttpSessionActivationListener.willPassivate() will call.
for 4. can we do something like this:
<jsp:useBean id= .... value='<eg:egtag attr="test"/>'/>
Andy
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Congrats.
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
tony lee
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
Hi Andy,
You gave a few interesting examples. Thanks.

for 2. How about I give an example of useBean scope:
<% { %>
<jsp:useBean id=test ..../>
....
<% } %>
....
will the test bean outside the { } scope.

In the case I think the test bean is only available to the local {}, no mater what scope has been declared, right?
for 3. I don't think the session.invalide() will call when we shut down the web-app, instead HttpSessionActivationListener.willPassivate() will call.

Shall we need to impliment HttpSessionActivationListener manually, or container automatically does that for us?
for 4. can we do something like this:
<jsp:useBean id= .... value='<eg:egtag attr="test"/>'/>

I know we can use a request time attribute value like "<%= scriptlet_expr %>" or '<%= scriptlet_expr %>'. Could we use custom tag expression
Whenever we use sigle quotes or double quotes, I think the principle is making no intersections of the quotes, right?
In this way, '..".."..' is equivalent to "..'..'.."
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Passed with 88%