Rancy Chadha

Ranch Hand
+ Follow
since Jul 12, 2006
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 Rancy Chadha

Hi all,

I gave SCWCD exam today and scored 86%.
I am not very happy with the score but I am not sad either.
Only thing I am disappointed with is that on the exam I got 70 questions and they gave me score for 69 question. I was confused and I am still confused.
But I take oppurtunity to thank HFSJ authors, our SCWCD forum ranchers for helping me clearing numerous doubts while preparation.
I could have scored better had I concentrated more on security chapter but what is done is done.
Now I have to prepare for other exams so I need your wishes.
Many Congratulations to you!!!
All of you thank you very much for your replies
Hi All,
Please have a look at this question:

Is the following JSP code legal? Select the one correct statement.
<%@page info="test page" session="false"%>
<%@page session="false"%>

A) Yes. This is legal JSP syntax.
B) No. This code will generate syntax errors

My answer is A. But they have stated correct answer as B.
What will be your answer?
Many congratulations to you Ghufran!!!
Hi Tim,

It is not the request threads that specs is talking about, it is talking about the threads initiated from the service method. There is a statement that is given in the portion you mentioned from specs: This method is only called once all threads within the servlet's service method have exited .
I hope your doubt is cleared now.
[ June 05, 2007: Message edited by: Rancy Chadha ]
Hi Satou,
This is regarding the This Thread
(For Moderators: I was unsure if I posted reply to above mention thread would I get answer therefore I posted it as separate post).
The doubt was, the answer given as option E is incorrect as well, because as per JSP2.0 specs, <body-content> is a mandatory subelement of <tag> element, therefore it cannot be missed. So in other words this question has no answer.
Another doubt is, normally we define TLD for tag files only when they are package in jar file and the tld should contain <tlib-version> <short-name> and <tagfile> can it also contain <tag> element?
Please reply.
Hi,
The answer given as E is correct, because the resource 'unprotected.jsp' can be accessed by anyone. The question is asking, what will happen when unprotected.jsp is requested by an unauthorized user. If you see the security constaint it is laid for the resource '/jsp/protected.jsp', it is not laid for 'unprotected.jsp' therefore no question of authorization in this case. Hence E holds true.
Many Congratulations to you Mohit!!!
Hi All,
Please help me out with this question:
What happens if you set a Web application-wide parameter through ServletContext, but don't provide a value?
A) This cannot happen.
B) An exception will be thrown.
C) Retrieving this parameter will return a string containing a servlet container version number.
D) Retrieving this parameter will return a string containing a servlet container name
Right answers are C & D.

I have tried this by not giving any value for <param-value> of <context-param> element. But I get blank I dont get the output that should be given as per this question. Probably I have not understood the question properly. Can anyone help me out with this?
Many Congratulations to you!!!
Hi All,
I have a doubt regarding a question from 'http://www.javaranch.com/carl/SCWCD.htm' mock exam. This is the 29th question, it goes like this:

Which statements are correct regarding the following jsp lines that use a tag library?
<%! Vectot vector =new java.util.Vector();%>
<% vector.addElement(�one�); vector.addElement(�two�); %>
<prefix:suffix attr='vector' />

1) A vector can't be assigned to a tag handler attribute
2) The program will compile and assign the vector's content to the attribute attr.
3) The program will assign the content of vector if assigment is: attr='<%= vector %>'

The answer of this quesion is option 3.
My doubt is, Why is option 2 not correct. Why doesnt the code work with variable vector assigned to the attribute.
Please clear my doubt.
Many Congratulations to you!!!
16 years ago