![]() Related Questions How can a Servlet call a JSP error page ?(a) This capability is not supported. (b) When the servlet throws the exception, it will automatically be caught by the calling JSP page. (c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException". (d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie. (c) What is the key difference between using a and HttpServletResponse.sendRedirect()?(a) forward executes on the client while sendRedirect() executes on the server. (b) forward executes on the server while sendRedirect() executes on the client. (c) The two methods perform identically. (b) In JSP, how can you know what HTTP method (GET or POST) is used by client request ?(a) by using request.getMethod() (b) by using request.setMethod() (c) impossible to know (a) Purpose of tag(a) used to incorporate Java applets into a Web page. (b) Downloads a plugin to the client Web browser to execute an applet or Bean. (c) Both (a) & (b) (c)EXPLANATION:JSP Syntax : [ [ ]+ ] [ text message for user ] Description : The tag is replaced by either an or tag, whichever is most appropriate for the client Web browser (the tag transfers the control to the mentioned destination page. tag substitutes the output of the destination page. Control remains on the same page. What is Temporary Servlet ? (a) Servlet that is destroyed at run time (b) Servlet that exists for a session (c) Servlet that is started and stopped for each request (c) EXPLANATION: A temporary servlet is started when a request arrives and shut down after the response is generated. A permanent servlet is loaded when the server is started and lives until the In WebLogic 5.1, how can you make a JSP application work (a) By changing the root directory (b) By creating a vitual directory in Server console (c) By creating a vitual directory in client console What topics should I be focussing in java to be successful in this interview at Computer Associates, What topics should I be focussing in java to be successful in this interview at Computer Associates, Hyderabad? * Threads, Synchronization, Thread Monitors * AWT & SWING Layouts (Border Layout) * Try, Catch, Finally * Switch statements (Some question on "default" option of Switch) * Java Exceptions
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||