URLs in scripts

A Web target manages links in HTML pages and JSPs. It remaps the URLs according to the directory structure of the target or deployed site. However, a Web target cannot manage URLs in scripts the way it manages URLs in HTML attributes. Therefore, when you build URLs dynamically in a script, use methods provided in the Web Target object model to get information about the server and directory structure so that the URLs reflect the current environment.

The following methods belong to psDocumentClass and can be used to build a URL dynamically:

Example

To build a URL, your script might include code like this:

"http://" + psDocument.Site() + "/" + filefortoday + ".htm";