Srikanth shetty Nukala

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

Recent posts by Srikanth shetty Nukala

Hi Ranchers,

I need help badly....got lot of doubts.

what i have: SCJP 1.4 and SCWCD 1.4

my doubts:

1. What should i go for next either SCBCD with ejb 2.1 spec or ejb 3.0 spec as 3.0 is very easy to develop and requires least configuration comp to 2.1. so 3.0 has already the final draft out so 2.1 will be deprecated soon.

2. I am seeing SCBCD 1.3 ...is there no SCBCD 1.4 yet? what should i be taking up if i want to get next level with ejb certification.

Thanks a ton for ur reply in advance.

Help me!!
There is no exact estimated time of prep which can be applied to everyone but surely that depends on how familiar you are already with hands on exp with jsp/servlets. Its not just jsp and servlets but wcd had lot more topics which are probably least used or used in a perfectly planned web development scenario.

If you are already having handson with jsp/servlets just grab the specs after first reading of HFSJ and whn u feel confid and u start getting 75-80% in mocks you can be sure of scoring good at exam.

hope tht long essay gave you some confid..

It took me a study of 45 days approx.

all d best!
Hi Ranchers,

I have given my exam today and passed it with 88%.

I had a preperation of nearly 50 days rigorous for last 10 days.
The HFSJ is a wonderful book that made this happen.

I was expecting a 95+ score but there was a power outage because of which i had to rewrite the entire exam once again , this can be pointed to poor quality of Thomson's testing product they said it was supposed to resume but it did not and i had to rewrite the entire exam.

It would be good if i can inform or bring this to notice of some Thomson people.

I used HFSJ and no other book, lots of mock exams infact every mock exam available jwebplus is best,jiris,jdiscuss and many more links on java ranch site.

Thanks to Kathie and Bert for such a wonderful way of teaching in HFSJ!!

Next might be SCBCD, i have worked on 3.0 of ejb which needs less of configuration so can someone tell whether to take up or wait till me version of ejb comes up.

thanks to all the ranchers who responded to queries n posted lots of questions!!



yes i read somewhere tht isScriptingEnabled was included in some draft version of jsp spec but it was removed later...so this attribute cease to exist.

only DD tag scripting-invalid is valid..
Is there a restriction on order of elements in web.xml deployement descriptor.

an excerpt from servlet spec: " The sub elements under web-app can be in an arbitrary order in this version of the specification."

so there is no order rule in 2.4 spec.

correct me if i am wrong.
hi manikandan,

I have come thru something sayin a setStatus clears the output buffer and a sendError commits the response and both these functions result in illegalstateexception if response is already committed.

correct me if i am wrong..also sendRedirect has some dependency whether a response is committed or not.
Headers set after the response is committed will be IGNORED by the servlet container.

How can one say whether a response is committed or not, is there any call to a specific function inside servlet code.

Also it has dependencies from sendRedirect(), sendError() and setStatus().

Someone please clarify this.
The exam does give hints about how many correct answers are present like..

"choose 3 answers."
Hi,
the synchronising on servletcontext object makes the attributes stored in it threadsafe only IF all the other servlets which access these context attributes also synchronise on this object.

mutual exclusion works i.e at a time only one servlet will have access,, only if all the other servlets are synchronising on context object.

Because If a servlet uses the context attributes without synchronising on context object they are no more thread safe even if current servlet synchronises on context object.

hope i dint confuse u.

correct me if i am wrong.
Hi found this question in several mocks,

so need clarification.

URL is : http://server:8080/AppName/Abc/Servlet?param1=value1¶m2=value2

so what is the context path, servlet path and path info for these URL's?

Thanks.
While solving mock exams i came along a question which had the explanation saying: "the setAttribute() method is provided by ServletRequest and inherited by HttpServletRequest."

So for the exam are we expected to memorize the API's with each method signature??

It is expected to remember DD elements i suppose.

Thanks.
--encodeURL and encodeRedirectURL--

Both of these from Response encode URL's i.e add sessionid to the url.

HFSJ says it does url rewriting and if u want to redirect the request to some other servlet/jsp and still use the session use encodeRedirectURL.

Can anyone tell the difference in the working of these two functions?..

thanks