common:urlBuilder

This tag creates urls to pages in InfoGlue or outside.

Parameters

Name Required Default Type Description
id true    Object/String The result is stored in this variable.
baseURL false    Object/String If stated you can add your own base to the url. Http://mysite... not commonly used.
query false   Object/String Used if you wish to add your own query string
excludedQueryString false   Object/String Used to exclude query string parameters, commaseparated string
fullBaseUrl false   Object/String State this if you wish the url to be absolute.
disableNiceURI false   Object/String State this if you wish to disable NiceUrl for this url.

 

ID-result variable contains: A String-object.

Examples

<%@ taglib uri="infoglue-common" prefix="common" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<common:urlBuilder id="currentUrl" fullBaseUrl="true"/>

This results in the current full url.

<%@ taglib uri="infoglue-common" prefix="common" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<common:urlBuilder id="url" excludedQueryStringParameters="apa,bepa">
<common:parameter name="extraparameter1" value="foo"/>
<common:parameter name="extraparameter2" value="bar"/>
</common:urlBuilder>

This results in the current full url without the parameters apa and bepa but with two new parameters.



comments powered by Disqus