Hasnain Javed Khan wrote:Hello all,
Just Passed SCWCD exam with 94 %. Firstly, hats down before the authors of HFSJ. Thanks to All the ranchers who answered my doubts and answered my questions.
I will update my post with the tips and preparation schedule that I followed when I get home.
Kind Regards.
Hasnain Javed
Ankit Garg wrote: The book is talking about HttpSession object not ServletContext...
The above quote is confusing me. The same Servlet Context on VM 1 will be shifted to VM 2 or there already is a Servlet Context in VM 2 ?
Note: everything is duplicated in the second server
There is one ServletContext per VM.
There is one ServletConfig per servlet, per VM.
Note: everything is duplicated in the second server EXCEPT the HttpSession objects! Sessions live in only ONE place at any given moment. The same session ID for a given web app will NEVER appear in two VMs at the same time.
Ankit Garg wrote:
For JSP:
Can Have: template text,EL,custom and standard actions.
Can not have : ? (or can have anything)
For body content of type JSP, the body can have anything that can go in a normal JSP i.e. template text,EL,custom, standard actions, scriptlets, scripting expressions and declarations...
Christophe Verré wrote:
My heart is broken
No no, only your wallet might be
Vijitha Kumara wrote:
Hasnain Javed Khan wrote:This is something I did not like about HFSJ. There are many such questions that HFSJ does not give any details about in the chapters and asks such questions at the end of the chapters..
That's why authors specifically mentioned to read the specs for more details
You should have a copy of the specs, although you do not need them in order to
pass the exam
SRV.9.7.2 Web Application Class Loader
The class loader that a container uses to load a servlet in a WAR must allow the
developer to load any resources contained in library JARs within the WAR
following normal J2SE semantics using getResource. As described in the J2EE
license agreement, servlet containers that are not part of a J2EE product should not
allow the application to override J2SE platform classes, such as those in the java.*
and javax.* namespaces, that J2SE does not allow to be modified. Also, servlet
containers that are part of a J2EE product should not allow the application to
override J2SE or J2EE platform classes, such as those in java.* and javax.*
namespaces, that either J2SE or J2EE do not allow to be modified. The container
should not allow applications to override or access the container’s implementation
classes. It is recommended also that the application class loader be implemented so
that classes and resources packaged within the WAR are loaded in preference to
classes and resources residing in container-wide library JARs.
What is then the goal / focus of the NEW 084 exam to upgrade the certification? Just a bit of marketing?
avi sinha wrote:
here in the first case that is without quotes, container starts looking for an attribute in all the scopes and gets the value MyName.
hence and there is no any attribute in the sessionScope named MyName hence nothing is printed.
If there are no quotes inside the brackets, the Container evaluates what’s inside the brackets by searching for an attribute bound under that name, and substitutes the value of the attribute