The dispatch from the controller to the Action class is based on a configuration that is provided by a

Options
- struts-configs.xml
- struts-action-config.xml
- struts-processor-conifg.xml
- struts-config.xml


CORRECT ANSWER : struts-config.xml

Discussion Board
struts.xml

struts.xml provides the configuration for the dispatch from the controller to the Action class. The elements used are listed below:

1) bufferSize - The size (in bytes) of the input buffer used when processing file uploads.
2) catalog - is used when processing requests for this module.
3) className - Classname of configuration bean. [org.apache.struts.config.ControllerConfig]
4) command - is used to execute to process a request.
5) contentType - Default content type to be set on each response. May be overridden by the Action, JSP, or other resource to which the request is forwarded.
6) forwardPattern - Replacement pattern defining how the "path" attribute of a <forward> element is mapped to a context-relative URL when it starts with a slash. This value may consist of any combination of the following:
$M - Replaced by the module prefix of this module.
$P - Replaced by the "path" attribute of the selected >forward< element.
$$ - Causes a literal dollar sign to be rendered.
$x - (Where "x" is any character not defined above) Silently swallowed, reserved for future use.

Rohit Sharma 10-15-2014 02:10 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement