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!
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
Ashik Uzzaman Senior Member of Technical Staff,
Salesforce.com, San Francisco, CA, USA.
Andy Ng
Greenhorn
Joined: Dec 20, 2001
Posts: 6
posted
0
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
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 "..'..'.."