This section covers the following topics:
This section applies to SYSWEB only.
To change the transport send buffer width:
Change the upper bound of the variable RETURN_PAGE in the parameter data area W3PARM.
Use this value for the parameter NWW_INOUT_LENGTH in the initialization file used for the Natural Web Server Extension program and the initialization of the value ##HTTP_RETURN_PAGE_PART in the Local Data Area W3LIMITS.
This defines the maximum length of the transport buffer.
Recatalog all W3* sources from library SYSWEB.
Recatalog all subprograms that are to be called using the
Natural Web Server Extension,
all NAT-*, HTTP* and NAT-* programs from the library
SYSWEB.
To change the received data buffer width:
Initialize ##HTTP_ENVIRONMENT_MAX in the local data area W3LIMITS.
This defines the maximum length of received data.
This value must be less than or equal to the maximum length of the transport buffer (see above).
Recatalog all W3* sources from the library SYSWEB.
Recatalog all subprograms which are to be called using the
Natural Web Server Extension,
all NAT-*, HTTP* and NAT-* programs from library
SYSWEB.
To change your return page:
Initialize ##HTTP_RETURN_PAGE_MAX in the local data area W3LIMITS.
This defines the maximum length of return page.
Recatalog all W3* sources from library SYSWEB.
Recatalog all subprograms that are to be called using the
Natural Web Server Extension,
all NAT-*, HTTP* and NAT-* programs from the library
SYSWEB.
If a Natural error occurs and the default ON ERROR block is specified, W3ERROR will be called and a predefined error page will be generated.
If you want to change this error page, change the Subroutine W3ERROR-TEMPLATE (SYSWEB/W3ERRTMP or SYSWEB3/W3ERRTMP accordingly).
This program generates a complete HTML page.
If a Natural error occurs and the default ON ERROR block is specified, W3ERROR will be called and a predefined error page will be generated.
If you want to change this error page to an XML-conform HTML, proceed as follows:
Uncatalog the subroutine (SYSWEB/W3ERRTMP or SYSWEB3/W3ERRTMP accordingly).
Open the subroutine SYSWEB/W3ERXTMP or SYSWEB3/W3ERXTMP accordingly).
Rename W3ERROR-TEMPLATE-XML to W3ERROR-TEMPLATE.
Stow the program.
This program now generates a complete XML-conform HTML page.
For a conversion to HTML, special characters have to be replaced by the correct HTML representation.
The subroutine W3-ASCII-HTML-TABLE (SYSWEBP/W3AS2HT) contains the settings for the replacement of characters.
W3INIT and W3-TEXT-TO-HTML will call W3-ASCII-HTML-TABLE.
It is possible to save up to 128 replacements.
If HEX values are used for the definition (e.g. quote), a value for the ASCII and one for the EBCDIC character set has to be defined. Otherwise the file is not portable.
For URL decoding, some special characters have to be replaced by the correct URL-conform representations.
The subroutine H3-ASCII-URL-TABLE (SYSWEB/H3AS3URL or SYSWEB3/H3AS3URL accordingly) contains the settings for the replacement of characters.
H3-ASCII-URL-TABLE will be called by H3-TEXT-TO-URL.
It is possible to save up to 128 replacements.
If HEX values are used for the definition (e.g. quote), a value for the ASCII and one for the EBCDIC character set has to be defined. Otherwise the file is not portable.