Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

geet rahane

Ranch Hand
+ Follow
since Jul 06, 2009
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 geet rahane

Hi Friends..........

Yesterday i hav passed SCWCD 5.0 with 91%...i am very happy with my score though i'm expecting more than that....

Thanks to
*HFSJ.......a very nice book,
*JavaRanch forum...and specially thanks to Ankit,Chinmaya,and Christophe..
*Enthuware_JwebPlus_V4 .
*Mikalai Zaikin notes

I had read the HFSJ book 4-5 times,solved all mock exams from enthuware,javaranch,javabeat,.and this forum is very helpful..many doubts get cleared here...actually i think that exam is very easy as compared to scjp...3-4 questions on design pattern and el are very confusing...otherwise it was not much hard....

Thanks once again to all........
10 years ago
yor are right .......that i should have to try this..i will try it...but due to some problems in my pc ,it is not possible to try them now..so now please help me...........
Hi to all...

I have some confusions as follows.....

1.what happens if we try to write some text (out.println("hello")) after requestDispatcher.forward()...
whether exception get thrown or just the output of forwarded resource get displayed??

2.what happens if we try to write some text (out.println("hello")) after response.sendRedirect()...
whether exception get thrown or the resource get redirected succesfully??

3.If there is tag handler class which extends TagSupport not BodyTagSupport and whose doStartTag
method returns EVAL_BODY_BUFFERED...then is that code succesfully compiled or exception get thrown???

4.During forward on ServletContext if we had used relative path in requestDispatcher and then do forward on that object...what happens in this case....

5.Is */* a valid url pattern for servlet mapping?


please help me.......

thanks in advance

suppose we declare in TLD <body-content> scriptless</body-content> and assume we have one attribute say name
<attribute>
<name>name</name>
<rtexprvalue>true</rtexprvalue>
</attribute>
then can we use the scripting for retrieving attribute value as
<myprefix:mytag name="<%=request.getPrameter("uname")>">

i think we can use ...only in body of tag scripting is not allowed..correct me if i'm wrong

thanks in advance
Hi to all !!!

Q.from Free scwcd mock exam for jsp by Nikos

Consider this code.

What is the output when the form is submitted? (1 correct answer)

1. I like null!
2. I like Head First Servlets and JSP!
answer 1

why not the answer 2.?
cant property set by input.jsp not retrieve in output.jsp ...as scope given is request......i think the request remains the same in both jsp..
please help....thanks in advance
Q from Free SCWCD Mock exam for Servlets By Nikos
# What happens when this servlet is deployed and a user hits repeatedly the refresh button of his browser? (1 correct answer)



1. The same value is always displayed.
2.The displayed value increases with every refresh.

answer 1..

but i think answer might be 2 as with Random every time we get new value...........please correct me........

thanks in advance
so if the signature get changed to protected void then that doPost get call right??

please correct if i'm wrong
Q from 'Free SCWCD Mock exam for Servlets By Nikos'

What is the output of this code? (1 correct answer)

request.getRequestDispatcher("http://fcom.gr";).forward(request, response);

1. The content of fcom.gr
2. HTTP Status 404

answer 2

# What is the output of this code? (1 correct answer)

response.sendRedirect("http://fcom.gr";);

1. The content of fcom.gr
2. HTTP Status 404

answer 1

here when we give the argument as "http://fcom.gr"; in both forward and sendRedirect...Is that means resource on another webapp...??? ........

Q from ' Free SCWCD Mock exam for Servlets By Nikos'
# Consider this form.


What is the output when the form is submitted? (1 correct answer)

1. GET
2. POST
3. A HTTP 405 message informs that GET is not supported.
4. A HTTP 405 message informs that POST is not supported.
answer is 4

I dont understand why the servlet had not call the doPost and then doGet ..and why we get A HTTP 405 message...please help....

Thanks in advance