Nishant Dhar

Greenhorn
+ Follow
since Sep 09, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Nishant Dhar

Hi,
I have just cleared the SCJP 1.4 and the SCWCD certifications. Can anyone give me guidance how much weightage do the employers give to certifications.
Basically i need to find out what exactly are the certifications worth in the market in terms of pay package. I am looking for a job in delhi.

Thanks all

Nishant
19 years ago
Thanks to all of you for the congratulations !!!
hi rakesh ... i used the full version of enthuware.

yes i guess the next thing is SCBCD ....... :-)

nishant
yes the pattern was roughly the same. all topics/ chapterds from the HFSJ was touched in some question or another.
The design pattern questions are very much like those given in HFSJ. I got 5-6 questions is a row. In all the questions a sitauation is given and you are asked to identify the design pattern to be used to meet a given objective or overcome a given problem.

thats it!!!
Hi all,

I took the SCWCD today and cleared it with 95%( really relieved) .... :-)
thanks to all for this great forum for helping me clear my doubts.

This is what I can tell you about the exam from my experience.

1. I used HFSJ and went through it twice. (this book is a must)
2. I used SCWCD study kit which cleared a lot of my doubts(i highly recommend it as a supplemetary book) for those who have no experiece with servlets/jsp
3. JWEbplus from Enthuware(this helped a lot)
4. There is plently of time on the real exam. No need to panic
5. Dont let the final exam of HFSJ discourage you. That is much tougher than the real exam. I scored only 68% on that.
6. Choices on the real exam are mostly direct.

Nishant Dhar
On page 355

the bang box mentions that I get an exception if type= Foo.Employee and class is Foo.person

does it actually mean an exception or a compile time error.
I think we should get a compile time error since the compilation rules are violated.
correct me if iam wrong !!

nishant
can anyone tell me where does the DTD for the web.xml go in the web app deployment. (i mean where is it put in the directory structure)

thanks
nishant
hi,

I understand that if I commit the response in some way by doing a write(), println() or a flush before I do the sendRedirect or RequestDispatcher forward, I will get an illegalstatexception.

But what happens if I try to write to the response in the forwarding servlet after the sendRedirect or RequestDispatcher method call.

Thanks !!!

Nishant
best book is Head First Servlets JSP by bert/cathy

you can also use SCWCD exam study kit as a reference
Ok .. so I understand that all the attributes move anyway when there is a session migration. however the instance variables of those attributes that are not serializable will be lost/destroyed which implement Serializable but do not implement HttpSessionActivationListener

am i correct ???
Q) Which statements about HttpSession objects in distributed environment is true?

A) When a session is moved from one JVM to another, attribute values that implement java.io.Serializable will be transferred to the new JVM

i think the above is not correct. can anyone explain this option to me
Pg 269 HFSJ Q12

D is also a correct choice for Q12

From what i understood, even if an attribute implements Serializable, the instance variables of the attribute class may not survive migration since the readObject and writeObject methods are never called by the container/

So isnt there a chance that an attribute class that implements Serializable but not HttpSessionActivationListener may not be transferred (or maynot be transferred properly) to the new JVM

So how can D be correct.

maybe I havent understood something properly :-)
HFSJ (pg 249) says that setMaxAge(-1) means that the cookie will disappear from the client, as soon as the browser quits. what can be the argument to
setMaxAge(?), so that the cookie lives permanently on the client machine, so that it can be reused later with another request from the client.

Also on the client side(browser), the cookie is essentially a name value pair. But On the server there is a full fledged cookie object for each cookie created. is the cookie object garbage collected after the session object(which caused the cookie object to be created in case of a jsessionid cookie) is garbage collected.
GenericServlet inherits one method from the Servlet interace : init(ServletConfig)
It also adds one method of its own : init()

The first method init(ServletConfig)is always called first.
This method calls init()
The no - arg init() method is the one whcih we generally over-ride and do our initialization work

hope this helps !!!