| <h2>Import Tags Examples</h2> |
| <p>If you are using a Proxy server, you will need to set the following System |
| Properties when starting the VM:</p> |
| <pre> |
| http.proxyHost |
| http.proxyPort |
| ftp.proxyHost |
| ftp.proxyPort |
| </pre> |
| <br> |
| <h3>Absolute <a href="../ShowSource.jsp?filename=/import/Absolute.jsp"><img src="../images/code.gif" |
| width="24" height="24" |
| border="0"></a> |
| <a href="Absolute.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| Using an Absolute URL to import a resource. <br> |
| <h3>Relative <a href="../ShowSource.jsp?filename=/import/Relative.jsp"><img src="../images/code.gif" |
| width="24" height="24" |
| border="0"></a> |
| <a href="Relative.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| Using a Relative URL to import a resource. <br> |
| <h3>Absolute (FTP) <a href="../ShowSource.jsp?filename=/import/AbsoluteFtp.jsp"><img |
| src="../images/code.gif" width="24" height="24" border="0"></a> |
| <a href="AbsoluteFtp.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| Using an Absolute URL to import a resource using a different protocol other than |
| HTTP. <br> |
| <h3>Encode <a href="../ShowSource.jsp?filename=/import/Encode.jsp"><img src="../images/code.gif" width="24" |
| height="24" border="0"></a> |
| <a href="Encode.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| URL encoding examples. <br> |
| <h3>String Exposure Absolute <a href="../ShowSource.jsp?filename=/import/ExposeString.jsp"><img |
| src="../images/code.gif" width="24" height="24" border="0"></a> |
| <a href="ExposeString.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| Exposing the content of the resource as a String Object. <br> |
| <h3>String Exposure Relative <a href="../ShowSource.jsp?filename=/import/ExposeStringRelative.jsp"><img |
| src="../images/code.gif" width="24" height="24" border="0"></a> |
| <a href="ExposeStringRelative.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| Exposing the content of a relative URL's resource as a String Object. <br> |
| <h3>Param <a href="../ShowSource.jsp?filename=/import/Param.jsp"><img src="../images/code.gif" width="24" |
| height="24" border="0"></a> |
| <a href="Param.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| Using <param> element to specify request parameters. Also demonstrating how request |
| parameters can be URL encoded (default). (NOTE: Returns error page that shows |
| how request parameters are encoded) <br> |
| <h3>Malformed URL <a href="../ShowSource.jsp?filename=/import/StartSlash.jsp"><img src="../images/code.gif" |
| width="24" height="24" |
| border="0"></a> |
| <a href="StartSlash.jsp"><img src="../images/execute.gif" width="24" height="24" border="0"></a> |
| </h3> |
| A relative URL must start with a "/" in a foreign context. (NOTE: This example |
| will result in a ServletException describing the error condition). <br> |