Sun Java System Web Server 7.0 Update 6 Administrator's Configuration File Reference

length

The length function returns the length of its argument, that is, a number representing the length of the string.

Syntax

length(string)

Arguments

The following table describes the argument for the expression function.

Table A–11 length Argument

Argument 

Description 

string

The string for which the expression function computes the length. 

Example

The following obj.conf code can be used to send a 404 Not found error to clients that request URIs longer than 255 bytes:

<If length($uri) > 255)>
PathCheck fn="deny-existence"
</If>