Tag: web technology

Questions Related to web technology

Multiple choice technology web technology
  1. <jsp:error page="errorPage.jsp" guard="true" />

  2. <%@ page language="java" buffer="8k" %>

  3. <jsp:useBean id="bean" class="examples.Bean" scope="request" />

  4. <%@ page language="java" errorPage="errorPage.jsp" buffer="8k" %>

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology web technology
  1. The forward method transfers control to the designated resource, while the include method invokes the designated resource, substitutes its output dynamically in the display, and returns control to the calling page.

  2. The two methods provide the same functionality, but with different levels of persistence.

  3. The forward method is deprecated as of JSP 1.1 and the include method should be used in order to substitute portions of a dynamic display at runtime.

  4. The include method transfers control to a dynamic resource, while the forward method allows for dynamic substitution of another JPS pages output, returning control to the calling resource.

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology web technology
  1. Yes, but the only tags available relate to database access.

  2. No. To iterate over a collection of values, one must use scriptlet code.

  3. No, but there is a standard <iterate> tag that may be used.

  4. Yes, but custom tags will not help developers create tags for use in iterating over a collection.

Reveal answer Fill a bubble to check yourself
B Correct answer
Multiple choice technology web technology
  1. Lookup the EJBs from within a JSP, but use the EJBs from within a basic JavaBean.

  2. Lookup and use the EJBs from a separate business delegate. The JavaBeans that work with JSP pages are clients to these business delegates and know nothing about EJB specifics.

  3. Lookup and use the EJBs from within a JSP page, but only as remote references.

  4. Lookup the EJBs from within a servlet, delegating usage to specific JSP pages.

Reveal answer Fill a bubble to check yourself
B Correct answer