HTML and Apache Struts Framework
A quiz covering basic HTML concepts including tables, forms, and images, as well as Apache Struts 1.x framework configuration and components for Java web applications.
Questions
Number of request processor instances in a Struts application is
- One per application
- One per request
- One per module
- One per Action Servlet
The Struts 1 ActionServlet is based on the Design Pattern
- Intercepting Filter
- Front Controller
- Single Controller
- None of the above
Which of the following are the parameters to the execute method
- ActionMappings
- ActionForm
- ServletRequest
- ServletResponse
- All of the above
Which struts tag is used to display error messages
- <html:errors/>
- <bean:errors/>
- <html:message/>
- <bean: message/>
Which session parameter is used to identify the application locale info in Struts 1.2?
- Globals.LOCALE_ID
- Commons.LOCALE_ID
- Globals.LOCALE_KEY
- Constants.LOCALE_KEY
In Struts 1.3, each error message is represented as
- ActionError
- ActionMessage
- ErrorMessage
- ActionErrors
How many action objects of each action type are created in a Struts 1 Application?
- One per request
- One per module
- One per session
- One per application
Name the attribute of the tag, which is used specify the action class?
- Name
- Type
- Action
- Class
Name the struts tag used to declare forwards common to all the actions in an application?
- <common-forwards>
- <forwards-global>
- <common-forward>
- <global-forwards>
The following tag is used to define a custom request processor?
- <request-processor/>
- <controller/>
- <action-processor/>
- <action-controller/>
Which of the following statements are true with respect to Struts-Config.xml?
- The name attribute of action tag, specifies the action name
- Only one controller can be defined for a module in struts application
- Struts configuration files should be placed only inside WEB-INF folder or its sub folders
- The <exception> tag can be used to forward user to a specific view in case of an exception.
Which format usually works best for photos?
- gif
- jpg
- jpeg
- png
A 6 digit Hex color (#FF9966) defines values of Red, Blue and Green in which order ?
- #GGRRBB
- #RRBBGG
- #RRGGBB
- #BBRRGG
Password fields are similar to what ?
- Text fields except text show as asterix
- Text areas except text show as asterix
- hidden fields except text show as asterix
- none of the above
Which is NOT a predefined target for links
- _top
- _blank
- _son
- _parent
The value setting of a text field defines what ?
- What the answer should be
- What will appear in the field as the default value
- The value to be saved as the input
- none of the above
Rather than using Hspace and Vspace you can use which of the following to add spacing to your image ?
- 1x1 pixel transparent image
- width and height
- hieght and breadth
- both 2&3
colspan=n can be added to only what tag?
- <tr>
- <text area>
- <table>
- <td>
Which has higher priority, cell settings or table settings?
- Table settings
- Cell settings
- both 1&2
- None
Settings for columns( tag) have higher priority than settings for rows( tag).
- True
- False