最新的SUN Sun Certified Web Component Developer for J2EE 5 - 310-083免費考試真題

Which method must be used to encode a URL passed as an argument to
HttpServletResponse.sendRedirect when using URL rewriting for session tracking?

正確答案: C
DRAG DROP
Click the Task button.
Place the events in the order they occur.
正確答案:
You need to create a JavaBean object that is used only within the current JSP page. It must NOT be accessible to any other page including those that this page might import.
Which JSP standard action can accomplish this goal?

正確答案: E
Given:
3. class MyServlet extends HttpServlet {
4. public void doPut(HttpServletRequest req, HttpServletResponse resp) throws
ServletException, IOException {
5. // servlet code here ...
26. }
27. }
If the DD contains a single security constraint associated with MyServlet and its only <http- method> tags and <auth-constraint> tags are:
< http-method>GET</http-method>
< http-method>PUT</http-method>
< auth-constraint>Admin</auth-constraint>
Which four requests would be allowed by the container? (Choose four.)

正確答案: C,D,E,F
You are building a dating web site. The client's date of birth is collected along with lots of other information. The Person class has a derived method, getAge():int, which returns the person's age calculated from the date of birth and today's date. In one of your JSPs you need to print a special message to clients within the age group of 25 through 35. Which two
EL code snippets will return true for this condition? (Choose two.)

正確答案: B,F
Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name is of type java.lang.String and the attribute score is of type java.lang.Integer.
An array of com.example.GradedTestBean objects is exposed to the page in a request- scoped attribute called results. Additionally, an empty java.util.HashMap called resultMap is placed in the page scope.
A JSP page needs to add the first entry in results to resultMap, storing the name attribute of the bean as the key and the score attribute of the bean as the value.
Which code snippet of JSTL code satisfies this requirement?

正確答案: A
Which path is required to be present within a WAR file?

正確答案: A
Your web application uses a simple architecture in which servlets handle requests and then forward to a JSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation. This information must NOT be accessible to any other servlet, JSP or session in the webapp. Which two techniques can you use to accomplish this goal? (Choose two.)

正確答案: B,E
You are creating a JSP page to display a collection of data. This data can be displayed in several different ways so the architect on your project decided to create a generic servlet that generates a comma-delimited string so that various pages can render the data in different ways. This servlet takes on request parameter: objectID. Assume that this servlet is mapped to the URL pattern: /WEB-INF/data.
In the JSP you are creating, you need to split this string into its elements separated by commas and generate an HTML <ul> list from the data.
Which JSTL code snippet will accomplish this goal?

正確答案: B
Given:
1 1. <%
1 2. request.setAttribute("vals", new String[]{"1","2","3","4"});
1 3. request.setAttribute("index", "2");
1 4. %>
1 5. <%-- insert code here --%>
Which three EL expressions, inserted at line 15, are valid and evaluate to "3"? (Choose three.)

正確答案: B,D,E
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED ?

正確答案: A
A web component accesses a local EJB session bean with a component interface of com.example.Account with a home interface of com.example.AccountHome and a JNDI reference of ejb/Account. Which makes the local EJB component accessible to the web components in the web application deployment descriptor?

正確答案: B
Which basic authentication type is optional for a J2EE 1.4 compliant web container?

正確答案: A

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어