toString (XSPUrl - JavaScript™)
Gets the URL as a string.
Defined in
XSPUrl (JavaScript)Syntax
toString() : string
Return value | Description |
---|---|
string |
A string representation of the URL. |
Example
This example gets the current URL as a string.function p(stuff) {
print("<<<" + stuff + ">>>");
}
var url : XSPUrl;
try {
url = context.getUrl();
p("toString = " + url.toString());
} catch(e) {
p("Error = " + e);
}
Print output from the example might be as follows:
<<<toString = http://myhost.ibm.com:9081/lwp/PA_1_0_4M1/form1.xsp?WP_BUSINESS_OBJECT_DATA=rp0707test1&WP_BUSINESS_OBJECT=ejb%2Fcom%2Fibm%2Fworkplace%2Fdesigner%2Fejb%2FDesignerComponent&action=openDocument&database=rp0707test1&schema=Schema_form1&id=3fb64b538bda0&autoedit=true>>>