Jagjit Dhaliwal

Greenhorn
+ Follow
since Aug 19, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jagjit Dhaliwal

Yes Sudhakar,

I am working on Java/J2EE technologies only. Best Wishes.

Jagjit
Hey Javaranchers,

Today I cleared SCWCD 1.4 exam with 86%.Thanks to javarancher for the support and help.

My Story
----------------
1. Read HFSJ thoroughly couple of times. Please make sure to study errata and tutorial on dynamic attributes.

2. Referred to API docs regularly to remember the methods, their signatures etc.(Really important specially for Servlet, ServletRequest, ServletResponse and Tag libraries).

3.Occasionally referred to the Specs for doubt clarifications.(Whizlabs had lot of questions related to BodyTagSupport and other topics which are not covered in HFSJ.I m not sure if they are part of exam but they gave me reason to look into specs)

4. Free mock exams listed on SCWCD FAQ page, though they were easy. Also, couple of tests on http://www.javacertificationexams.com/scwcd-mock-exams.php.

5. Took Whizlabs simulator, though questions were not on exam pattern but it gives me excuse to look into specs.

6. Used Frederic Esnault notes. Its good as this is what is missing in HFSJ.

7. Used PeabodyOnScwcdPatterns for Design patterns. Sorry Marc, I could make it 100% but its my fault. I think I owe you beer for nice notes. I can come anytime to your place for beer and for java tips as I think you are just 2 hour drive from my place...

8. Did review questions at end of each chapter in Mannings-Deshmukh. Some of them are good, specially related to distributed environment and requestdispatcher and dynamic contents.

9. Used Sample web.xml and TLD by Michael John. It was really useful.

10. Following links to custom tags are worth reading.
http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
http://www.onjava.com/pub/a/onjava/2001/01/18/jsptags.html

80 Questions in 175 minutes, pass % was 62%. Only 69 questions were scored but you cannot make out which one was not being counted.

I started my preparation in January end and took me 1.5 months to complete the same giving 2-3 hours daily.

Once again thanks to all, especially Christophe & Marc to answer my questions.

Please let me know if anyone has any question related to preparation. I would be happy to help you out.

Regards,

Jagjit
Thanks Christophe,
Its clear now.
Thanks for reply Christophe,

It makes sense but following question confuse me further. If scope of bean within pair of curly braces is within braces only, then why would following piece of code gives translation error?

-------------------------------------------------------------------
(Source - Manning-Deshmukh)
Consider the following code:
<html><body>
<%{%>
<jsp:useBean id="address" class="AddressBean" scope="session" />
<%}%>
<jsp:useBean id="address" class="AddressBean" scope="session" />
<jsp:getProperty name="address" property="street" />
</body></html>
Which of the following is true about the above code? (Select one)
a It will give translation-time errors.
b It will give compile-time errors.
c It may throw runtime exceptions.
d It will print the value of the street property.
--------------------------------------------------------------------
Just another doubt, what is scope of bean variable "sb" if it is included in pair of curly braces?
Thanks Christophe, I just overlook it. [ ]
I got this question from javabeat.com mock exam? They mention answer as E. Can anyone explain what exactly would be output and why?

What will the following JSP page print?

<% { %>

<jsp:useBean id="sb" class="java.lang.StringBuffer" />

sb.append("Hello");

<% } %>

<%=sb%>
Select 1 correct option.
A. It will print null
B.It will print "Hello"
C.It will not compile because <jsp:useBean> cannot be used inside a block
D.It will not compile because StringBuffer is not a bean
E.None of these
even this is what i thought of .. but answer is E , so here am I ..

Christophe, could you please explain it.

Regards,

Jagjit
Hi,

Thanks for reply. Could you please explain this answer.
Hi Christophe,

I appologize. I got these questions from Javabeat.com mock exams.

Thanks for your reply,

Jagjit
Please help me in following question as they gave answer as E.

Consider the web.xml snippet shown in the exhibit.
Now consider the code for a jsp file named unprotected.jsp:

<html>

<body>

<jsp:include page="/jsp/protected.jsp" />

</body>

</html>
Which of the following statements hold true when unprotected.jsp is requested by an unauthorized user?

<web-app>

...

<security-constraint>

<web-resource-collection>

<web-resource-name>test</web-resource-name>

<url-pattern>/jsp/protected.jsp</url-pattern>

</web-resource-collection>

<auth-constraint>

<role-name>manager</role-name>

</auth-constraint>

</security-constraint>

...

</web-app>
Select 1 correct option.
A.The user will be prompted to enter user name and password
B.An exception will be thrown
C.protected.jsp will be executed but it's output will not be included in the response
D.The call to include will be ignored
E.None of these
Can anyone help me in understanding answer for following question which I got it from one of mock exam:

Consider the following usage of a custom tag in a JSP page:

<jsp:useBean id="student" scope = "session" class="com.xyz.Student" />
<mytaglib:studentTag student='student' />
Which of the following statements are correct?
Select 1 correct option.
A.Application objects such as com.xyz.Student, cannot be passed as attributes to custom tags.
B.The Student object will be passed to the studentTag tag handler.
C.The Student object will NOT be passed because no variable named student is defined.
D.A Student object will not be created if it is not available it the session.
E.None of these.
I am really confused between choosing next certification out of SCWCD or SCDJWS. I have good experience in Servlets/JSP, so my friends are suggesting me to go for SCDJWS (which will make my resume balanced) but I don�t know ABC of web services. What are the factors I should look into while giving certification. What is market trend and which is in more demand?
Today i gave SCJP 1.4 and cleared it with 90% marks. Overall, I found exam easier than mock exams. I studied Khalid Mughul and brought Whizlabs kit.After covering these, I went through mock exams mentioned in javaranch forum.I scored 10% more than what I used to score in whizlabs final/practice exams.
Now looking forward for SCWCD exam. Thanks to all for your support and help.