RE: Problem with PUT / POST and web forms
Hi Rodrigo, Have you been through all tutorial parts, especially parts 11 and 12? http://www.restlet.org/documentation/1.1/tutorial#part11 There is nothing special about PUT or POST. Look at the Resource Javadocs for more information about the processing methods (acceptRepresentation and storeRepresentation). Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Rodrigo K. [mailto:[EMAIL PROTECTED] Envoyé : jeudi 18 septembre 2008 03:28 À : discuss@restlet.tigris.org Objet : RE: Problem with PUT / POST and web forms Thank's Jérôme, but this example does not use Router or Resources. I have a JSP that does submit a form for the service REST using Router and Resources. I can't understand how to use Router and Resources with webform (JSP/HTML) PUT and POST method. Regards, Rodrigo Kieffer Wed, 17 Sep 2008 14:59:33 +0200, Jerome Louvel [EMAIL PROTECTED] escreveu: Hi Rodrigo, Could you check the sample code provided in the Restlet distribution? See especially: - org.restlet.example.misc.SimpleClient - org.restlet.example.misc.SimpleServer Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Rodrigo K. [mailto:[EMAIL PROTECTED] Envoyé : jeudi 11 septembre 2008 01:04 À : discuss@restlet.tigris.org Objet : Problem with PUT / POST and web forms Hi, I'm having trouble making a PUT / POST a data sent a web form, could please post a example of how to do? I'm using Restlet 1.0.10. Thank's, Rodrigo Kieffer PS: Sorry for my English (Google Translator).
RE: another question: how to configure resource priority
Hi Alex, Routers having different routing modes, BEST is the default. You could try using FIRST mode instead, making sure that / is attached last. Alternatively, you could attach you Directory as the default target, using the Router#attachDefault() method. Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org/ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com/ http://www.noelios.com _ De : Alexei Sokolov [mailto:[EMAIL PROTECTED] Envoyé : jeudi 18 septembre 2008 08:36 À : discuss@restlet.tigris.org Objet : another question: how to configure resource priority Hello, I could not find the answer to this question: how do I configure resource priority? Suppose I have a Restlet which serves url /doSomething. How do I configure my application to serve that url using configured Restlet and map /* to serve static content from some directory on filesystem? Thanks, Alex
bad experience with restlets
Well, I can't figure out how to do very simple things with restlets. I get NPE in RC1, I cannot configure restlets the way I want and wiki does not have anything useful on it. So much for breaking away from servlets. Sorry, but maybe when restlets reach v. 2.0 I will give it another try. Alex
Re: bad experience with restlets
Hi Alex, Sorry to hear of your bad experience but I have to speak up to defend Restlet. I've not seen a cleaner, easier to follow framework with so much flexibility before. I'm not sure how you were starting off, but I found that running standalone was the easiest to get going and understand. It certainly helped to be able to breakpoint and follow the code. Once you understand how Restlet handles and routes requests you should be in a good position to get more complicated. Regards, Michael. On Fri, Sep 19, 2008 at 11:33 AM, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, I can't figure out how to do very simple things with restlets. I get NPE in RC1, I cannot configure restlets the way I want and wiki does not have anything useful on it. So much for breaking away from servlets. Sorry, but maybe when restlets reach v. 2.0 I will give it another try. Alex
Re: bad experience with restlets
I second Michael's thoughts. I looked at restlets half a dozen or so times over the past year or so before finally taking the plunge a couple of weeks ago. While I might not say it's the easiest framework I've ever used, it is very nice once you get the hang of it. It took a couple of days of fiddling, but now I do all kinds of great stuff with it and I just love it. Alex, what were you trying to do? I found that following the First Steps, First Resource and Tutorial, step by step, was very helpful. I actually went back and forth between the First Steps and the First Resource a few times before I really got the hang of it. http://www.restlet.org/documentation/1.1/firstSteps http://www.restlet.org/documentation/1.1/firstResource http://www.restlet.org/documentation/1.1/tutorial Hope it helps. --Erik On Thu, Sep 18, 2008 at 11:47 PM, Michael Terrington [EMAIL PROTECTED] wrote: Hi Alex, Sorry to hear of your bad experience but I have to speak up to defend Restlet. I've not seen a cleaner, easier to follow framework with so much flexibility before. I'm not sure how you were starting off, but I found that running standalone was the easiest to get going and understand. It certainly helped to be able to breakpoint and follow the code. Once you understand how Restlet handles and routes requests you should be in a good position to get more complicated. Regards, Michael. On Fri, Sep 19, 2008 at 11:33 AM, Alexei Sokolov [EMAIL PROTECTED] wrote: Well, I can't figure out how to do very simple things with restlets. I get NPE in RC1, I cannot configure restlets the way I want and wiki does not have anything useful on it. So much for breaking away from servlets. Sorry, but maybe when restlets reach v. 2.0 I will give it another try. Alex