How to pass pojo object as parameter to rest web service from prototypejs 
client.

Assume i have web service like this.

@Path("/postItem")@Produces({ MediaType.APPLICATION_XML, 
MediaType.APPLICATION_JSON })public Item postItem(Item item) {
  return new item;}

>From client side using prototypejs library how to pass pojo object as 
parameter to rest web service.

If parameter is of type string or integer i would have passed it as query 
param but it is pojo object in case.

I am about the syntax creation of the pojo object and then passing it to 
rest web service from prototypejs.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to