Java EE Web Frameworks and Design Patterns
Covers J2EE/Java EE design patterns, Struts framework, JavaServer Faces (JSF), and core J2EE APIs
Questions
Which of this is used for performing standard directory operations.
- JNDF
- JNDI
- JNDA
- JNDD
Which of this provide a standard interface for demarcating transactions.
- JTA
- JIA
- JEA
- JAI
Which of this is used for processing XML documents using DOM,SAX, XLST.
- JXMLP
- JAXP
- JAP
- JXP
Which tag must enclose all other tags on a Faces JSP page?
- <f:faces>
- <f:view>
- <h:jsf>
- <h:view>
Which JSF component can be used to create tables?
- HtmlPanelGroup
- HtmlTable
- UITable
- HtmlPanelGrid
What type of events does the HtmlCommandButton generate?
- Command events
- Submit events
- Action events
- Click events
Which JSF expression references an application's context path?
- #{contextPath}
- #{requestContextPath}
- #{facesContext.externalContext.requestContextPath}
- ${request.contextPath}
How do you integrate JSF components with cascading style sheets (CSS)?
- With the JSF configuration file
- With the styleClass property
- With the cssClass property
- With the class property
which Method of ActionForm is used for validation ?
- validate
- validation
- both
- No such method to validate the Form
Struts is base on which framework?
- MVC
- MVC2
- both
- none of them
Intercepting Filter design pattern is in the _______________
- Presentation Tier
- Integration Tier
- Business Tier
- Database
An 'Intercepting filter' design pattern can be implemented to ______
- to preprocess requests
- to post process responses
- to preprocess responses
- to preprocess and post process requests and responses
If we want to avoid duplicate coding in view and separate out view content and view navigation we should use ________ design pattern
- Intercepting Filter
- Front Controller
- Data Acces Object
- Business Delegate
Business service invocation from presentation tier deteriorates network performance. To prevent this we may implement ___________ design pattern
- Session Facade
- Builder
- Business Delegate
- Decorator Pattern
Enterprise beans encapsulate business logic and business data and expose their interfaces, and thus the complexity of the distributed services to the client tier.To prevent this ________ design pattern should be adopted.
- Data Access Object
- Session Facade
- Mediator Pattern
- Business Delegate
'Data Access Object' is an object that talks to the underlying database and provides other application components. It serves as a clean, simple and common interface for accessing the data, and for reducing the dependency of other components on the details of using the database
- True
- False