# <render:standalonePortletUrl> Tag

This tag lets you create URLs to floatable portlets. Use this tag to create links to submit requests to portlets hosted by an external portal, such as floating portlets.

Note: If you use this tag in a JSP that is used in a struts or Java Page Flow application, in order for the URL to resolve correctly, Java Page Flow support must be enabled in the portal Web project's WEB-INF/netuix-config.xml file, as shown in the following example. Notice the <enable> element is set to true.

>     <!-- Enable or disable Pageflow support -->
>     <pageflow>
>         <enable>true</enable>
>     </pageflow>

## Syntax

<tagName attribute="value">
</tagName>

## Attributes

var

Optional (String) - The variable that will contain the value of the URL.

scope

Optional (String) -

scheme

Optional (String) - The protocol for the URL. Should be "http" or "https". If you do not use this attribute, the protocol used to make the current request is used.

domain

Optional (String) - Sets the domain of the server to access, such as www.bea.com. If you do not use this attribute, the domain that was used to make the current request is used.

port

Optional (String) - Sets the server port to use for the domain. If you do not use this attribute, the port that was used to make the current request is used.

pathPrefix

Optional (String) - Sets the prefix to the path.

encodeSession

Optional (boolean) - Enables URL rewriting for enconding a session ID in the URL. If the value is set to "false," the URL is not encoded with the session ID. If you do not use this attribute, the default value is "true."

template

Use the template defined within url-template-config.xml when outputting the url for this tag.

## Example

Code to float the current portlet:

    <a href="<render:standalonePortletUrl/>">Float</a>

Related Topics

Creating URLs to Portal Resources