If the tag handler for the emptyBodyTag extends javax.servlet.jsp.tagext.BodyTagSupport and overrides the doEndTag method, how many times is that method invoked? 02.<html><body> <%! double randomNumber = Math.random(); %> <% out.println(randomNumber); %> </body></html> Where will the randomNumber be declared in the translated servlet? will it be in the service method or _jspinit method or _jspService method or in the translated servlet class definition? 03.<html><body> <%! int j = 0; %> <% j = 4; %> Number: <%= ++j =%> </body></html> what is the result? 04.<html><body> <% boolean b = true; %> <% if ( %>YYYY<% ) %> <h1>Hello</h1> </body></html> which can replace YYYY without causing an error? 05.What are the attributes of the taglib directive? 06.Which includes a file in a JSP page at translation time? 07.Assume object A implements the HttpSessionActivationListener interface and that it has been placed in a session.
Which two methods are invoked on A as a result of the servlet container migrating that session from one Java Virtual Machine to another in a districutable Web application? 08.A Web application is located in a directory named test. Where must JAR files be located to be loaded automatically by the servlet container? 09.Within a Web application deployment descriptor, what is the name of an element that can contain an <error-page> element? 10.1.<% 2. JumpingBean bean = new JumpingBean("Jump"); 3. session.setAttribute("bean", bean); 4. String name = request.getParameter("name"); 5. if(name != null) 6. bean.setName(name); 7. %>
Which line contains functionality NOT availale from a standard JSP action or directive? 11.Given a tab library with the following tag:
. a tag called getTitle that has one attribute called hierarchy that DOES NOT accept a dynamic value What is the value of the hierarchy property as a result of evaluating the following JSP code?