W3C Jigsaw
All Resources All filters

PostableResource

The PostableResource class is the basic resource class for handling the HTTP POST method. Its main purpose is to decode the form parameters.

It defines two boolean attributes that allow to control how this decoding should be done. If the overide attribute is true, then the decoder will overide parameter values as they are defined (hence, if your form defines two form field with the same name, you will only be able to get the value of the last one). The convert-get attribute specifies whether you want the form decoder to silently convert GET requests to their equivalent POST form.


Inherits

The PostableResource class inherits from the following classes:


Attributes description

The Postableresource defines the following attributes:


overide
semantics
Should the form content decoder overide the parameters values as they are defined. When this flag is set to true, and if your form uses multiple form fields having the same name, then you will only get the last assignment to the field. If this flag is set to false, then you should check the values returned by the form decoder: if they are instances of java.lang.String[], the value has multiple value, otherwise, the simple java.lang.String value has been returned.
type
This attribute is a editable  BooleanAttribute.
default value
This attribute defaults to false.


convert-get
semantics
Whether the resource should silently convert GET requests to their appropriate POST form when needed. When this flag is turned to true, the resource will convert the GET action of forms to their equivalent POST form.
type
This attribute is an editable  BooleanAttribute.
default value
This attribute defaults to true.


Jigsaw Team
$Id: w3c.jigsaw.forms.PostableResource.html,v 1.1 1996/04/23 19:12:57 abaird Exp $