Example with templating engine?

2007-06-21 Thread Rintcius Blok
Hi, I was looking for an example app using a templating engine like velocity or freemarker but could not find anything. Does anyone know of such an example? Thanks, Rintcius

RE: Usage ox JaxbRepresentation in restlet 1.1 beta

2007-06-21 Thread Jerome Louvel
Hi Evgeny, Could you send us the stack trace that you get? Note that the JaxbRepresentation hasn't been tested seriously yet. Best regards, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Evgeny Shepelyuk > Envoyé : mercredi 20 juin 2007 18:53 > À : d

Entity validation always true. Bug?

2007-06-21 Thread Peter Lacey
All, I have a resource for which I'm generating a strong ETag and a Last-Modified header. I first GET the resource without any conditions (no If-None-Match and no If-Modified-Since). I next GET it again supplying the ETag and get a 304 response as appropriate. I then update the resource an

Re: REST client and browser handle 404 differently

2007-06-21 Thread Thierry Boileau
Hello Jim, could you install the livehttpheaders mozilla extension (http://livehttpheaders.mozdev.org/) and give us the reponse headers sent by both servers when using Mozilla as a client? best regards, Thierry Boileau * * I am using Restlet 1.0.1. It is being used in Tomcat 6 with Spring.

Re: Getting the base URI from within a container

2007-06-21 Thread Jerome Louvel
Hi Stian, As an application can be attached to multiple virtual hosts, there are potentially multiple root URIs. So, the only reliable way to get this information is from the Request object, via the getRootRef() method. Best regards, Jerome Stian Soiland a écrit : Since I'm generating the

Getting the base URI from within a container

2007-06-21 Thread Stian Soiland
Since I'm generating the URIs in my documents as absolute links, I need some kind of mechanism to find what is the base URI for my application. In particular when deploying as a WAR file, the URI is determined by the name of the WAR file, so blah.war would be deployed as for example: ht

REST client and browser handle 404 differently

2007-06-21 Thread Jim Pace
I am using Restlet 1.0.1. It is being used in Tomcat 6 with Spring. My Restlet is invoked from a Servlet using a ServletConverter. My Restlet handles a scenario where it can't map a URI to a resource (database lookup fails) by setting the Status in the Response to Status.CLIENT_ERROR_NOT_FOUND (