- Struts was first developed
- in an online exchange between several open source developers
- over a long holiday weekend(TRUE)
- as a commercial package
- The reset method on an ActionForm
- Sets all properties to their initial value
- Sets all properties to null
- Repopulates all properties from the request parameters
- None of the above(TRUE)
- Each Struts Action element is uniquely identified by its
- Input attribute
- Name attribute
- Page attribute
- Path attribute(TRUE)
- The name of the Application Resources file is set by the servlet init-param named
- Application(TRUE)
- Resources
- ApplicationResources
- messages
- The validating init-param of the ActionServlet is used to
- Bypass calls to the ActionForm validate method
- Bypass validation of the Struts configuration file(TRUE)
- Generate an error message if an unknown message key is used
- To specify an ActionMapping to use when a request doesn't match any other mapping, you can
- Use an asterisk for the path property
- Set the "default" property of the mapping to "true"
- Set the "unknown" property of the mapping to "true"(TRUE)
- Set the "missing" init-param of the ActionServlet to the mapping's path
- In Struts 1.1, you can change how Struts populates a form by
- Overriding the populate method of the ActionForm
- Overriding the processPopulate method of the Request Processor(TRUE)
- Overriding the populateBean method of the ActionMapping
- The < bean:write > tag is:
- Always converts HTML markup to entity equivalents, like <
- Never converts HTML markup to entity equivalents
- Converts markup when filter=true(TRUE)
- Converts markup when markup=false
- From a MVC perspective, Struts provides the
- Model
- View
- Controller(TRUE)
- Struts Framework is well suited for application of ____ size.
- Small
- Any(TRUE)
- Average
- Very small
- MVC is :
- Mode-View-Controller
- Model-View-Converter
- Model-Viewer-Controller
- Model-View-Controller(TRUE)
- What is Action Class ?
- The Action Class is a wrapper around the business logic and is a part of Model(TRUE)
- Nothing special about the Action class
- Action Class is a wrapper around the Internet logic
- None of the above
- An ActionForm is a JavaBean which extends the:
- struts.action.ActionForm(TRUE)
- apache.struts.action.ActionForm
- action.ActionForm
- ActionForm
- Use the following command (tag) to display the error on the jsp page:
- < html:errors/ >
- < html:errors/ >(TRUE)
- < errors / >
- < html=errors/ >
- What of following features can _not_ be configured in the JSF configuration file?
- Navigation rules
- Managed Beans
- Custom components
- Application Name(TRUE)
- In JSF - Which tag must enclose all other tags on a Faces JSP page?
- < f:faces >
- < f:view >(TRUE)
- < h:jsf >
- < h:view >
- In JSF - Why does the HtmlForm component render a <hidden> field?
- Command events
- Submit events
- Action events(TRUE)
- Click events
- In JSF - Why does the HtmlForm component render a < hidden > field
- To keep track of its identifier
- To keep track of the components in tree
- To set its submitted property(TRUE)
- For JavaScript integration
- What are the main features of JSF ? ( Choose many )
- Page navigation specification(TRUE)
- Standard user interface components like input fields, buttons, and links(TRUE)
- Read xml file
- Easy error handling(TRUE)
- In JSF - Components can be nested within another component
- True(TRUE)
- False
Next 20 -->
- Which one of the following tags renders a single radio button?
- <h:selectBooleanCheckbox>
- <h:selectOneRadio>
- <h:selectOneCheckbox>
- <h:selectManyCheckbox>
- The tag library that allows you to keep common content in a Web application, at a common location and insert it where necessary is
- HTML tag library
- Logic tag library
- Bean tag library
- Template tag library
- The tag used to create an input field that is not visible to the user is _______________.
- <h:inputSecret>
- <h:inputHidden>
- <h:inputPassword>
- <h:inputText>
- ______________ class is used to uniquely represent a locale of a country.
- faces.render.Locale
- util.Locale
- faces.context.Locale
- Creating and using a custom converter requires implementing _____________ and _____________ methods provided by Converter interface.
- getObject()
- getAsObject()
- getAsString()
- getString()
- It is possible to have more than one Faces configuration file.
- True
- False
- ________ classplays the role of the controller and is responsible for handling all the requests.
- Action
- ActionServlet
- RequestProcessor
- Plugin
- The tag used to create a text box to accept a password is _______________.
- <h:inputSecret>
- <h:inputHidden>
- <h:inputPassword>
- <h:inputText>
- Which of the following UI Component acts as a container for all other components?
- UIParameter
- UIForm
- UIViewRoot
- UISelectItem
- Which of the following statements are true about the reset() method of ActionForm class?
- Sets all properties to their initial value
- Sets all properties to null
- Repopulates all properties from the request parameters
- None of the above
- _______________________ declares a set of rules that define the next view for the user based on his/her actions.
- JSF Navigation Model
- JSF View Model
- JSF Forward Model
- JSF Model
- The file that provides a set of utility classes and interfaces that handle data structures used to store data in an application is _________.
- commons-beanutils.jar
- commons-collections.jar
- commons-digester.jar
- commons-logging.jar
- Which method of ActionServlet class maps the servlet name to a URL in the Web application?
- init()
- save()
- addmapping()
- addServletMapping()
- The JSF tag used to show all the error messages in a JSP page is ____________.
- <h:message>
- <h:messages>
- <f:messages>
- <f:message>
- Which one of the following JSF expressions, references an application's context path?
- #{contextPath}
- #{requestContextPath}
- #{facesContext.externalContext.requestContextPath}
- ${request.contextPath}
- Each Struts Action element is uniquely identified by its __________.
- Input attribute
- Name attribute
- Path attribute
- Page attribute
- Which one of the following events is generated by the <h:commandButton> tag of JSF ?
- Command event
- Submit event
- Action event
- Click event
- Which one of the following Action classes provides a mechanism for switching between modules in a modularized Struts application?
- SwitchAction
- DispatchAction
- IncludeAction
- LocaleAction
- The Struts class which handles the actual execution of the request is ________.
- ActionForward
- Action
- RequestProcessor
- ActionServlet
- The Struts tag used to display the error in the JSP page is ______________.
- <html:errors/>
- <html:errors>
- <errors>
- <html=errors>
Next 13 (sun)
- Struts was first developed
- in an online exchange between several open source developers
- over a long holiday weekend
- as a commercial package
- The reset method on an ActionForm
- Sets all properties to their initial value
- Sets all properties to null
- Repopulates all properties from the request parameters
- None of the above (do nothing)
- Each Struts Action element is uniquely identified by its
- Input attribute
- Name attribute
- Page attribute
- Path attribute
- The name of the Application Resources file is set by the servlet init-param named
- application
- resources
- ApplicationResources
- messages
- The validating init-param of the ActionServlet is used to
- Bypass calls to the ActionForm validate method
- Bypass validation of the Struts configuration file
- Generate an error message if an unknown message key is used
- To specify an ActionMapping to use when a request doesn't match any other mapping, you can
- Use an asterisk for the path property
- Set the "default" property of the mapping to "true"
- Set the "unknown" property of the mapping to "true"
- Set the "missing" init-param of the ActionServlet to the mapping's path
- If you have created a custom ActionMapping subclass with the property "service", you can initialize the value to "selectRecord" using
- <init-property name="service" value="selectRecord"/>
- <set-property property="service" value="selectRecord"/>
- <put-field key="service" content="selectRecord"/>
- In Struts 1.1, you can change how Struts populates a form by
- Overriding the populate method of the ActionForm
- Overriding the processPopulate method of the Request Processor
- Overriding the populateBean method of the ActionMapping
- The <bean:write> tag is:
- Always converts HTML markup to entity equivalents, like <
- Never converts HTML markup to entity equivalents
- Converts markup when filter=true
- Converts markup when markup=false
- To prevent possible security issues with the <html:password> tag, you should
- Call the reset method if validation fails
- Set the tag's redisplay property to false
- Set the tag's reset property to false
- Use a plain html tag instead
- To localize Tiles, you can
- Create separate configuration files for each locale
- Specify an locale for a definition
- Either A or B
- To localize Validator forms, you can
- Create separate configuration files for each locale
- Specify a locale for a form-set
- Either A or B
- From a MVC perspective, Struts provides the
- Model
- View
- Controller
Next 20 -->> 20 question_3
No comments:
Post a Comment