Hi all,

I have some trouble putting a somewhat nested set of paths working in jax-rs...

The idea is that we have:

@Path("/webstore/")
class WebStore {

  @Path("/users/{name}/")
  User getUser(@PathParam("name") String name) {
    return this.userList.get(name);
  }
}

With this, I can get "/webstore/users/some_one" to retrieve a
particular user called "some_one".

But let's say I also have:

class User {
  @Path("/comments/{id}")
  Comment getComment(@PathParam("id") String id) {
    return this.commentList.get(id);
  }
}

What I want is to be able to get
"/webstore/users/some_one/comments/c_100/", where "some_one" is the
user ID and "c_100" is the comment ID.

I don't think this is working however I change the way I annotate
"User" class. Is it possible?

Thanks!
-Simon

Reply via email to