common:import

This tag is almost identical to c:import but allows you to specify a timeout.

Parameters

Name Required Default Type Description
id true   String The result is stored in this variable.
url false   Object/String The url to import.
charEncoding false   Object/String Char encoding of the input data.
timeout false   Object/String Sets after how long (milliseconds) the tag should return with error.
         

 

ID-result variable contains: The rendered result as a String-object.

Examples

Read the description on c:import – mostly no need for more examples. The only addition we have made is that it is possible to set request the request timeout.

<%@ taglib uri="infoglue-common" prefix="common" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<common:import id="result" url="http://www.google.com/search">
<common:parameter name="q" value="infoglue"/>
</common:import>



comments powered by Disqus