Hi,

I'm trying to get the send parameters on a @Post request, but the result is 
always null.

My approach is (still works on another resource): 

Form form = new Form();
        Representation requestEntity = getRequestEntity();
        if (getRequestEntity().getSize() > 0) {
            FormUtils.parse(form, requestEntity);
        }
        String param = form.getFirstValue("param");

But param is always null.

Using 

 HttpServletRequest servletRequest = ServletUtils.getRequest(getRequest());
        String param = servletRequest.getParameter("param");

works, but I don't want to go via the ServletRequest.

Any suggestions?

Thanks,

Adrian

I'm using 2.0-RC2

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2598040

Reply via email to