Okay,
at Restlet-side I use getRequest().getEntityAsForm() instead of
getRequestAttribute() now.
At HttpClient side I had to send the parameters as entity and not HttpParams (I
tried after realising that getRequestAttribute didn't worked for that).
How is this possible?
I'm using Apache HTTPClient to make a POST request, but at my resource are no
parameters set (else the one parsed into the url).
Isn't it possible to make a POST request without using Restlet and putting the
post object into a Representation object?
I'm using 2.0-M3.
How is this possible?
I'm using Apache HTTPClient to make a POST request, but at my resource are no
parameters set (else the one parsed into the url).
Isn't it possible to make a POST request without using Restlet and putting the
post object into a Representation object?
I'm using 2.0-M3.
Parameters as in URL?param1=value1param2=value2... ?
If so, you need to do something like this on your resource's doInit() method:
Form query = getRequest().getResourceRef().getQueryAsForm();
String value1 = query.getFirstValue(param1);
String value2 = query.getFirstValue(param2);
I hope to
4 matches
Mail list logo