Free Oracle 1Z0-899 Exam Dumps Questions & Answers
| Exam Code/Number: | 1Z0-899Join the discussion |
| Exam Name: | Java EE 6 Web Component Developer Certified Expert Exam |
| Certification: | Oracle |
| Free Question Number: | 132 |
| Publish Date: | Nov 24, 2026 |
| # of views: | 4163 |
|
|
|
Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attribute in B's request object contains the URI of the original request received by servlet A?
A session-scoped attribute is stored by a servlet, and then servlet forwards to a JSP page. Which three jsp:useBean attributes must be used to access this attribute in the JSP page? (Choose three.)
As a convenience feature, your web pages include an Ajax request every five minutes to a special servlet that monitors the age of the user's session. The client-side JavaScript that handles the Ajax callback displays a message on the screen as the session ages. The Ajax call does NOT pass any cookies, but it passes the session ID in a request parameter called sessionID. In addition, assume that your webapp keeps a hasmap of session objects by the ID. Here is a partial implementation of this servlet:
10. public class SessionAgeServlet extends HttpServlet {
11. public void service(HttpServletRequest request, HttpServletResponse) throws IOException {
12. String sessionID = request.getParameter("sessionID");
13. HttpSession session = getSession(sessionID);
14. long age = // your code here
15. response.getWriter().print(age);
16. }
... // more code here
47. }
Which code snippet on line 14, will determine the age of the session?
Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that involve large files being uploaded by the client?
You are building a web application with a scheduling component. On the JSP, you need to show the current date, the date of the previous week, and the date of the next week.
To help you present this information, you have created the following EL functions in the 'd' namespace:
* Name : curData; signature: java.util.utilDate CurrentDate()
* Name : curData; signature: java.util.utilDate addweek (java.util.Date, int)
* Name: dateString; signature: java.util.String getDataString (jave.util.Data) Which EL code snippet will generate the string for the previous week?