Jstl Core Import Tag
# Tag
[JSP Standard Tag Library](#)
The tag provides all the functionality that the action tag has, while also allowing the inclusion of absolute URLs.
For example, using the tag, you can include different web page content from an FTP server.
### Syntax
<c:import url="" var="" scope="" varReader="" context="" charEncoding=""/>
### Attributes
The tag has the following attributes:
| **Attribute** | **Description** | **Required** | **Default Value** |
| --- | --- | --- | --- |
| url | The URL of the resource to import. It can be a relative or absolute path, and can import resources from other hosts. | Yes | None |
| context | When accessing an external context resource using a relative path, context specifies the name of this resource. | No | Current application |
| charEncoding | The character encoding set of the imported data. | No | ISO-8859-1 |
| var | The variable used to store the imported text. | No | None |
| scope | The scope of the var attribute. | No | page |
| varReader | An optional variable that provides a java.io.Reader object. | No | None |
* * *
## Example
c:import Tag Example
The above program will print the source code of the "" page. You can try it yourself.
* * JSP Standard Tag Library](#)
YouTip