At least with µjax we have more control over the client than with
standard web forms, and even then, a concatenation of two
ServletFilters* and a hidden field could make a POST request into a
PUT request. So the server-side development can clearly separate the
concepts.
* ServletFilters: 1st changes Request-Parameters with a certain naming
pattern into request headers. This overcomes the disability of web
browsers to set headers programatically.
2nd uses a header like X-HTTP-Method to override the HTTP method.
Lars
On 17.12.2007, at 23:03, Felix Meschberger wrote:
Am Freitag, den 14.12.2007, 19:59 +0100 schrieb Tobias Bocanegra:
Why not use something like custom headers like X-HTTP-Method and a
servlet filter to wrap PUTs in POSTs?
As we control the client API, this is a cleaner way to do this IMHO.
but we do not control the client. the goal is to use simple html
forms...
That is only partly true of course: We define a protocol to use when
sending data or requesting content to be stored or created. So, if we
require a specific parameter (agreed, that headers more involved and
won't work with simple forms), it is just part of the protocol...
Regards
Felix
--
Lars Trieloff
[EMAIL PROTECTED]
http://weblogs.goshaky.com/weblogs/lars