Thierry, hello again:

your currect javadoc:
http://www.restlet.org/documentation/2.0/jee/ext/org/restlet/ext/servlet/ServerServlet.html

and your book:
http://www.manning.com/louvel/

makes an impression that "the correct way" to use component inside a servlet 
(mode 3) is to use org.restlet.autoWire=true (the default you force on the 
unknowing) which forces a prepend of all route paths with tomcat servlet 
context;

that was rather misleading;

it took me some time to understand that a better way would be to use 
org.restlet.autoWire=false and pattern mapping like this:

getDefaultHost().attach(/{servletId}/mail, new MailApp());

that allows to avoid cludges with trying to read 
"org.restlet.ext.servlet.offsetPath" and you now get your tomcat offsetPath 
injected as {servletId} for free :-)

I sugest you clarify this in your book, and possibly change default settings to 
org.restlet.autoWire=false

thank you;

Andrei.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2760470

Reply via email to