Products Downloads


French version


 

 

This function is used to retrieve the real path from a virtual path.

The path returned is the absolute path of the web application root to which the virtual path is concatenated. The format of the resulting path may vary according to the http server's execution platform.

 

Context

  1. Adelia Web client

 

Parameters

ALPHA (n)

VirtualPath

Virtual path

ALPHA (n)

RealPath

Resulting real path

BOOL

ReturnCode

Returns:

*TRUE   if the function was executed successfully,

*FALSE  if it was not.

 

Example

ALPHA(64)

VirtPth

ALPHA(256)

RealPth

BOOL

RetCode

 

Retrieval of the web application's location on the HTTP server

VirtPth = *BLANK

CALL_CLASS 'VaToolBx' 'VaToolBxAwsGetRealPath' VirtPth RealPth RetCode

 

If the application server used is TOMCAT 4.1, the path returned could be the following for a given execution context:

"C:\Program Files\Apache Group\Tomcat 4.1\webapps\MySite" (for a Windows server)

 

VirtPth = '/Images/Picture.gif'

CALL_CLASS 'VaToolBx' 'VaToolBxAwsGetRealPath' VirtPth RealPth RetCode

 

"C:\Program Files\Apache Group\Tomcat 4.1\webapps\MySite\Images\Picture.gif" (for a Windows server)

 

List of the VaToolBx functions by topic

 

 

↑ Top of page