RE: Re: post in putUser Bookmark throws error

2009-04-18 Thread webpost
yes...it does not have acceptrepresentation method. But then why it has been implemented as PUT rather than POST? User creation should always be POSt, right? PUT is always used for Updates, right?? Thanks! --

post in putUser Bookmark throws error

2009-04-16 Thread webpost
Hi, I changed the Bookmark example C:\restlet-1.1.4\src\org.restlet.example\org\restlet\example\book\rest\ch7\ApplicationTest.java from Put to Post in putUser method as shown below: public static void putUser(String userName, String password, String fullName, String email) {

Re: post in putUser Bookmark throws error

2009-04-16 Thread Thierry Boileau
Hello, this may be because the UserResource does not handle POST requests. Did you try to rename UserResource#storeRepresentation to UserResource#acceptRepresentation? Best regards, Thierry Boileau Hi, I changed the Bookmark example