Sudhaharan Siva

Greenhorn
+ Follow
since Jan 14, 2009
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 Sudhaharan Siva

I took SCJP in year 2000. I just used that old prometric testing ID from the mark statement I had, to create a new user account in prometric website. I just scheduled new appointment for SCWCD exam under this account. But I don't see any of my old examination history about SCJP.

But I have user account in http://www.certmanager.net/sun site where I can see my SCJP examination information.

Will that be a problem since my prometric account does not have my SCJP examination information?
Hello,
How do prometric centers know that we have already completed SCJP? Do we need to take any proof like original certificate or mark statment to prometric centers, when taking SCWCD exam
A & B also correct. Considering the DD configuration in mock question, only users with role as an Admin can perform GET and PUT on MyServlet. And users with any role including Admin, Member etc. can perform other http methods POST, TRACE, OPTIONS and HEAD.

With above understanding if you read the answers you would find A,B,C and E are correct.

thanks
Hi,
There is nothing like dumb question.

One more doubt ... Is bufferReader return by request.getReader() retrives everything ... what I means to say is querystring etc..??



Just to clarify when to expect querystring from request - here is what API says about request.getReader() - retrieves the body of the request as character data using a BufferedReader. The request body you get only during HTTP Post. You would get html form parameters as query string only with HTTP Get.

And can we call the this reader any number of time like we do with request.getParameter()?? Means how I am able to get a value of a particular
parameter.??



you can get request.getReader() any number of time. But you can not read the request body content more than once. i.e once you read the content in request body, if you try to read the content again for example like reqeust.getReader().readLine() you would get null.

There is one more interesting thing. You can not use both request.getReader() and request.getParameter() to deal with same request. Which ever you use first, it will steal all the content of request. So the other one will get only null values. For further information about this refer to the topic https://coderanch.com/t/432359/Web-Component-Certification-SCWCD/certification/WhizLab-SCWCD-Mock-Test-Q
Hi,

I used WebSphere Application test server V6.0 which comes with IBM RAD 6.0.1.

thanks
Did you try this in WebSphere App Server? There is a bug in their container implementation, i don't know why this is not fixed yet. Here is the reference to that http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.waszos40.doc/html/WebSphere_Application_Server_for_z_OS/swg1PQ80846.html

If you try the same in tomcat you would see the expected result.

thanks

what are the different scenario where we can use request.getReader instead of request.getParameter???



request.getReader() retrieves the body of the request as character data using a BufferedReader. Consider a scenario where request came in post method and you want to redirect to some other URL, but you want to pass the same parameters what ever came in the request.

You won't read each parameter using request.getParameter() one by one and construct the query string (for GET) or body (for POST) for redirect. Instead you can read every thing in one shot using request.getReader().

This is one of scenario I can come up with.

thanks