Sreejobs Logo
   For Latest Job Updates  
sreenutech.com 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
Search:
SreeJob Fees   Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 50.
1)

You are creating a content management system (CMS) with a web

application front-end. The JSP that displays a given document in the CMS has the following general

structure:

1. <%-- tag declaration --%>

2. <t:document>

...

11. <t:paragraph>... <t:citation docID='xyz' /> ...</t:paragraph>

...

99. </t:document>

The citation tag must store information in the document tag for the document tag to generate a reference section at the end of the generated web page.

The document tag handler follows the Classic tag model and the citation tag handler follows the Simple

tag model. Furthermore, the citation tag could also be embedded in other custom tags that could have

either the Classic or Simple tag handler model.

Which tag handler method allows the citation tag to access the document tag?


2)

Which element of a web application deployment descriptor

<security-constraint> element is required?


3)

Given the definition of MyServlet:

11. public class MyServlet extends HttpServlet {

12. public void service(HttpServletRequest request,

13. HttpServletResponse response)

14. throws ServletException, IOException {

15. HttpSession session = request.getSession();

16 session.setAttribute("myAttribute","myAttributeValue");

17. session.invalidate();

18. response.getWriter().println("value=" +

19. session.getAttribute("myAttribute"));

20. }

21. }

What is the result when a request is sent to MyServlet?



4) A developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the client. In addition, the application needs to find, in a transparent manner, the heterogeneous business components used to service the client's requests. Which design patterns, working together, address these issues?


5)

Which two JSTL URL-related tags perform URL rewriting?

(Choose two.)



6)

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



7)

Given:

11. <servlet>

12. <servlet-name>catalog</servlet-name>

13. <jsp-file>/catalogTemplate.jsp</jsp-file>

14. <load-on-startup>10</load-on-startup>

15. </servlet>

Which two are true? (Choose two.)



8) Which three are true about TLD files? (Choose three.)


9)

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?



10)

One of the use cases in your web application uses many session-scoped attributes. At the end of the use case, you want to clear out this set of attributes from the session object. Assume that this static variable holds this set of attribute names:

201. private static final Set<String> USE_CASE_ATTRS;

202. static {

203. USE_CASE_ATTRS.add("customerOID");

204. USE_CASE_ATTRS.add("custMgrBean");

205. USE_CASE_ATTRS.add("orderOID");

206. USE_CASE_ATTRS.add("orderMgrBean");

207. }

Which code snippet deletes these attributes from the session object?