www-page runs a FlashCONNECT static page application and stores the resulting Web page in the specified file. Unless overridden by the w3HtmlName value pair, the Web page's item-id is the name of the application.
www-page target-file {name=value} program-name
www-page target-file {name=value}
In the second example the program-name(s) is taken from an active select list. This allows the creation of several Web pages at once.
name=value
Any string with an equal sign in it is treated as a name=value pair and can be retrieved within the program by using the w3GetVal() subroutine. Spaces can be included in a value by enclosing the value in double quotes.
w3HtmlName=name
Sets the item-id for the page.
|
Note: |
If the target file is actually a q-pointer to the host
file system, the file permissions of the newly created Web pages may require
changing before the pages can be used. |
|
Caution: |
Be sure that the target file isn't the program source file. |
|
:compile-catalog bp mypage.html |
Make the application available to www-page. |
|
:www-page myhtmlfile a="Some fun" mypage.html |
Build one page called mypage.html. The CGI variable "a" set to "Some fun". |
|
:www-page myhtmlfile w3HtmlName=index.html mypage.html |
Build one page called index.html. The CGI variable "a" is not set. |
|
:select/home/httpd/html/app-pages |
|
|
:www-page /home/httpd/html/app-pages |
Rebuild an entire directory. |