Hi Matthias,

> I guess you meant with "parameter" a @QueryParam annotated variable? I tried 
> so and added something like this:
>
> public String createBlog(@DefaultValue("me") @QueryParam("alias") String 
> alias) {...}
No, not @QueryParam. Query parameter are detected from the URL.
A possibility is @FormParam.
> The reason might be that the parameters are not parsed correctly. I followed 
> you hint and debugged everything. And I guess there is something wrong within 
> the Restlet/Jax-R. The parameter I send with my request are just put in front 
> of HTTP method. So the resource cannot be found. With the following link you 
> can see a screenshot from the debugger window. The highlighted line might be 
> a bug in the framework?! http://matthias.wilkau-hasslau.net/restlet_post.png 
> So you can see that the parameter "m" with its value "blogId" is set in front 
> of the POST. Is this supposed to be like that?
Yes, you are right, that looks not good. What are the data sou send?
> Can you reproduce it or do you have a running version of a Restlet 
> application with Jax-Rs resources that you could send me? So, if the mistake 
> is on my side I could figure it out by my own?
Sorry, not here. Take a look into the project org.restlet.test, package 
org.restlet.test.jaxrs.resources . There are a lot of example resources. 
Their should also be one with post.

Good luck
    Stephan

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

Reply via email to