|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#65. Given: 1. public class ExamsheetsTag extends BodyTagSupport { 2. public int doAfterBody() throws JspException { 3. Object obj = pageContext. getAttribute(“anObject” ); 4. return 2; 5. } 6. }
Assuming that the Object reference returned in line 3 is not null, in what scope does that object reside?
Show comments for this question (0)
Add comments
Link to this question
|
|
#67. Given servlet A: 1. public class A extends HttpServlet { 2. public void doPost( HttpServletRequest req, HttpServletResponse resp) throws ServletException { 4. 5. } 6. }
Servlet A and servlet B share the same active session. Which, inserted at line 4, will allow servlet B to access the value “Examsheets” in subsequent POST requests to servlet B?
Show comments for this question (0)
Add comments
Link to this question
|
|
#68. Exhibit: Assume xyz and servlet abc are in the webapp Web application. Further assume you are using a browser with ALL cookies disabled and you submit an HTTP GET request to abc. Which is true regarding the result of pressing the “Submit to XYZ” button on the page generated by abc?
Show comments for this question (0)
Add comments
Link to this question
|
|
#70. Given: 11. public class Examsheets extends HttpServlet { 12. public void doPost(HttpServletRequest req, HttpServletResponse resp) { 13. 14. } 15. }
Assume that no other servlets participating in the same session as servlet Examsheets explicitly invalidate the session. Which, inserted at line 13, will ensure that the session remains valid for at least six minutes?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.144
|
Server date 05:25 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|