[TOC] [Prev] [Next] [Bottom]

<@CLASSFILEPATH>

Syntax

<@CLASSFILEPATH [ENCODING=encoding]>

Description

Returns the path to the current Tango class file, excluding the Tango class file name, but including the trailing slash.

This meta tag is useful for creating links that reference an application file, <@INCLUDE> file, or image file in the same directory as the currently executing Tango class file.

The path returned is relative to the Web server root directory.

Outside of a method call, this meta tag returns nothing.

Examples

<A HREF="<@CGI><@CLASSFILEPATH>homer.taf?function=form">
</A>

This example calls the homer.taf file, located in the same directory as the currently executing Tango class file.

<@INCLUDE FILE="<@CLASSFILEPATH>header.html">

This example includes the header.html file, located in the same directory as the currently-executing Tango class file.

<IMG SRC="<@CLASSFILEPATH>logo.gif">

This example references the logo.gif file, located in the same directory as the currently executing Tango class file.

See Also

Encoding Attribute
<@APPFILE>
<@CGI>
<@CLASSFILE>
<@INCLUDE>
TCFSearchPath
<@URLENCODE>



[TOC] [Prev] [Next] [Bottom]

docs@pervasive.com
Copyright © 1999, Pervasive Software. All rights reserved.