Sreejobs Logo
   For Latest Job Updates Online Exams
Home Govt Jobs IT Fresher Jobs IT Exp Jobs IT Walk-Ins MBA Jobs BPO Jobs Register FAQ’s Post Job Contact Us
SreeJob Fees   Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 50.
1) A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization? (Choose three.)


You are creating a new JSP page and you need to execute some code that acts when the page is first executed, but only once. Which three are possible mechanisms for performing this initialization code? (Choose three.)


Given a JSP page:

11. <n:recurse>

12. <n:recurse>

13. <n:recurse>

14. <n:recurse />

15. </n:recurse>

16. </n:recurse>

17. </n:recurse>

The tag handler for n:recurse extends SimpleTagSupport.

Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?


Which two are true regarding a web application class loader?(Choose two.)


You want to create a filter for your web application and your filter will implement javax.servlet.Filter.

Which two statements are true? (Choose two.)


Given the two security constraints in a deployment descriptor:

101. <security-constraint>

102. <!--a correct url-pattern and http-method goes here-->

103. <auth-constraint><role-name>SALES</role-name></auth-

103. <auth-constraint>

104. <role-name>SALES</role-name>

105. </auth-constraint>

106. </security-constraint>

107. <security-constraint>

108. <!--a correct url-pattern and http-method goes here-->

109. <!-- Insert an auth-constraint here -->

110. </security-constraint>

If the two security constraints have the same url-pattern and http-method, which two, inserted independently at line 109, will allow users with role names of either SALES or MARKETING to access this resource? (Choose two.)

7) Which implicit object is used in a JSP page to retrieve values associated with <context-param> entries in the deployment descriptor?


Given the JSP code:

<% request.setAttribute("foo", "bar"); %>

and the Classic tag handler code:

5. public int doStartTag() throws JspException {

6. // insert code here

7. // return int

8. }

Assume there are no other "foo" attributes in the web application.

Which invocation on the pageContext object, inserted at line 6, assigns "bar" to the variable x?

9) What is the purpose of session management?

10) You have a use case in your web application that adds several session-scoped attributes. At the end of the use case, one of these objects, the manager attribute, is removed and then it needs to decide which of the other session-scoped attributes to remove. How can this goal be accomplished?