singh santosh

Ranch Hand
+ Follow
since Jan 13, 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 singh santosh

congratulations
cheers

regards
-santosh
SCJP1.4,SCWCD1.4,SCBCD1.3(In progress)
17 years ago
Congrates dear !!
u just rocked ...



cheers

regards
-santosh
hi ,
congrates men !!
great work

cheers

regards
-santosh
hi,

congratulation men !!!

regards
-santosh
hi,
Passed today with 88 %. i would like to thanks Sierra and Bert for the wonderful work in the form of HFSJ. I also take this oppurtunity to thanks each and evry member of such a wonderful family. Its really really vry nice to be a part of this family.

Guys ,got to tell u something .U belive it or not ,i was given many question(from jsp standard action mainly useBean and param) which had wrong answers(was to select 2 out of 4 and of them 3 were wrong).I have also written comment on them during exam.Since this forum restrict posting any real question ,else i would have wriiten them here for u all to analyze.Some question(1 or 2)were also ambiguous.

I was really appaled by those question.

Rest the paper was okey.

Next m planning to take SCBCD.
Once again thanks to u all!!!

regards
-santosh
hi owen,
thanks for the reply
but from that thread i got
i tried this in tomcat and it worked .Yes it would be invalid if there is some space between
<jsp:getProperty .. >space</jsp:getProperty>

afterall

according to the jsp syntax getProperty and setProperty should not have body that means body should be empty.
But, doesnt the following is valid syntax for empty body tag:
<tag:myTag />
<tag:myTag></tag:myTag> (there should not be any blank space in the body)

If the above is true then the option 2 should also be the answer.

Please clarify..

regards
-santosh
[ July 15, 2006: Message edited by: singh santosh ]
hi owen,
thnaks for redirecting me to that link .
But it doesnt have enough clues to answer my doubt .Let me clarify why i think 2 should also be the answer


in above code whent the control enters into the doStartTag() it checks for the totalTopics >40 which is false so the control goes to else block and the return would be SKIP_BODY.(This is how the 2 should also be in the answer).

Please clearify ....

regards
-santosh
hi,
yes u r right.. but which cookie would be returned(considering there are are many wiht same name) is unpredicatable(ordering is not predicatable).

regards
-santosh
hi,

Congrates men
very good score!!

One more thing

one more thing
public static final int EVAL_BODY_AGAIN = 2
public static final int EVAL_BODY_BUFFERED = 2

both are having value 2 so practically doStartTag can return EVAL_BODY_AGAIN



u r very right given we are extending BodyTagSupport .But if in exams there comes a ques where they give EVAL_BODY_AGAIN as a return type of doStartTag() then what should be done??
i m very sure there would be a answer saying this is
(1)invalid return type
(2)body would be evaluated

Then what hsould be selected ??
Please clarify (did u face this situation)


cheers

regards
-santosh
hi,


shouldnt the answer be 2,4,5?

regards
-santosh
hi ,


regards
-santosh
hi ,


is there anything like "response attribute scope".I guess NO?
Please clarify..

regards
-santosh
hi,


Which of the following statements are true when the doStartTag() method is invoked? Consider that the start of the tag has been reached.

1. The body of the tag is evaluated again.
2. The body of the tag is skipped.
3. SKIP_BODY is not a valid return code.
4. EVAL_BODY_AGAIN is not a valid return code.
5. JspException is not handled in the doStartTag() method.

ans)4

shouldnt the ans be 2,4 ?

Please clarify...

regards
-santosh