Java Struts Framework Quiz
Test your knowledge of the Apache Struts MVC framework, including ActionForms, ActionMappings, tags, configuration, and core concepts for Java web development.
Questions
Struts was first developed
- in an online exchange between several open source developers
- over a long holiday weekend
- as a commercial package
- none
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
Each Struts Action element is uniquely identified by its
- Input attribute
- Page attribute
- Name 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
- none
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"/>
- none
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
- None
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
What are all the valid queries to rename a table employee to employee_copy?
- rename table employee as employee_copy
- rename employee to employee_copy
- alter employee rename to employee_copy
- alter table employee rename as employee_copy
- alter table employee rename to employee_copy
Which two are true about the JSTL core iteration custom tags?
- It may iterate over arrays, collections, maps and strings.
- The body of the tag may contain EL code, but not scripting code.
- When looping over collections, a loop status object may be used in the tag body.
- It may iterate over a map, but only the key of the mapping may be used in the tag body.
- When looping over integers (for example begin1='1' end='10'), a loop status object may not be used in the tag body.
The .NET Framework provides a runtime environment called..... ?
- RMT
- CLR
- CMT
- RC
Find the term: The .NET framework which provides automatic memory management using a technique called ______________ ?
- serialization
- garbage collection
- assemblies
- overriding
WSDL stands for _________________ ?
- Web Server Description Language
- Web Server Descriptor Language
- Web Services Description Language
- Web Services Descriptor Language
Which of the following is FALSE?
- ASP.NET applications run without a Web Server
- ASP+ and ASP.NET refer to the same thing
- ASP.NET is a major upgrade over ASP
- None of the Above
The type of code found in Code-Behind class is ________ ?
- Server-side code
- Client-side code
- Both A) and B)
- None of the above
Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called ______________ ?
- Serialization
- Threading
- RCW
- AppDomain