You use the resource tag to retrieve the content of the specified Web application resource, and store it as either an InputStream object or a string, depending on the value of the input attribute. The list of attributes for the resource tag is given in Listing 810.
| Attribute | Description |
|---|---|
| id | A required attribute that specifies the name of the scoped variable to be created to reference the object containing the retrieved Web resource. |
| input | The presence of this attribute, with an arbitrary value, instructs Struts to store the retrieved Web content as an InputStream. |
| name | The module-relative name of the Web application resource to be retrieved. |
Table 8.10: The resource tag’s attributes