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.

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.)


You are building a dating web site. The client's date of birth is collected along with lots of other information. You have created an EL function with the signature: calcAge(java.util.Date):int and it is assigned to the name, age, in the namespace, funct. In one of your JSPs you need to print a special message to clients who are younger than 25. Which EL code snippet will return true for this condition?


Every page of your web site must include a common set of navigation menus at the top of the page. This menu is static HTML and changes frequently, so you have decided to use JSP's static import mechanism.

Which JSP code snippet accomplishes this goal?



11. <% java.util.Map map = new java.util.HashMap();

12. request.setAttribute("map", map);

13. map.put("a", "true");

14. map.put("b", "false");

15. map.put("c", "42"); %>

Which three EL expressions are valid and evaluate to true? (Choose three.)


Which ensures that a JSP response is of type "text/plain"?

6) The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. While reviewing the application, a developer realizes that in multiple places within the current application, nearly duplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicate code?


A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha.

A JSP page called sort.jsp exists in the web application and contains only this JSP code:

1. <%@ taglib prefix="x"

2. tagdir="/WEB-INF/tags/alpha" %>

3. <x:beta />

The sort.jsp page is requested.

Which two are true? (Choose two.)


Which two are characteristics of the Transfer Object design pattern? (Choose two.)




Which two produce the output "one, two and three"? (Choose two.)

10) Which EL expression evaluates to the request URI?