The OCEJWCD certification provides knowledge required to develop Java EE 6 Enterprise applications using JSP and Servlets. This exam covers major improvements in Java EE 6 like web fragments, asynchronous servlet, annotations to create servlet or filter, etc. The following are the list of topics covered as part of this certification exam. Introduction to Java …
Servlets Tutorials
Servlet is Java technology for writing the server side applications. It is the core technology used for developing any Java server applications. Any other Java frameworks created are internally using the servlet for hiding the complex part of how servlet handles the web application request and renders the response. However, knowing the internals of servlet …
Request Headers In Servlet
Java EE Tutorials Servlets Tutorials Servlets Interview Questions Request Header Request header is used to pass additional information about the request or itself to the server. Request header can be used by client to pass useful information. getHeaderNames() and getHeader() methods of javax.servlet.http.HttpServletRequest interface can be used to get the header information. Following important request header …
How To Refresh Servlet
Java EE Tutorials Servlets Tutorials Servlets Interview Questions We can refresh the server in two ways Through client side and another through server side. Consider the webpage containing the live score of the match or any live activities we want to see in web page in such cases we have to either refresh the web …
OCEJWCD 6 Mock Exam – 7
1 . Consider the following code: Which of the following lines, when inserted at //1, will ensure that an IllegalStateException is NOT thrown? Choose the one below: res.clear(); res.empty(); res.remove(); if(!res.isCommitted()) if( res.getStatus() != res.COMMITTED) 2 . Which of the following statements are correct JSP directives? <%@ page %> <%! taglib uri=”http://www.abc.com/tags/util” prefix=”util” %> <% …
OCEJWCD 6 Mock Exam – 5
1 . Assume that the following header is present in a request sent to a servlet: What will be returned when the servlet code calls request.getHeader(“Accept”)? Choose the one below: A Header object containing, name as “Accept” and value as “image/gif” A Header object containing, name as “Accept” and value as “image/gif, image/jpeg, image/bmp” A …
OCEJWCD 6 Mock Exam – 4
1 . Consider the following web.xml code: Which of the following statements are correct? Choose the one below: The servlet code should use “manager” as a parameter in request.isUserInRole() method The servlet code can use “manager” or “supervisor” as a parameter in request.isUserInRole() method The servlet code should use”supervisor” as a parameter in request.isUserInRole() method …
OCEJWCD 6 Mock Exam – 3
1 . Regarding the processing of a BodyTag handler,in which of the following cases a BodyContent object will be “pushed” into the pageContext? If the doStartTag() returns EVAL_BODY_INCLUDE If the doStartTag() returns EVAL_BODY_BUFFERED If the doStartTag() returns SKIP_BODY If the doStartTag() DOES NOT return SKIP_BODY A BodyContent object it is always created and pushed no …