I have a SlingServlet working with a fixed length path, using 
sling.servlet.paths=/var/cars.

Under this I have a fixed format hierarchy consisting of make, model, year. I 
can populate by passing make, model, year and data as POST parameters.
curl -u admin:admin -F make=fiat -F model=124 -F year=1970 -F data=@filename 
localhost:8080/var/cars/

I'd like to handle POSTs to any path below the servlet's base path, e.g.:
/var/cars/{make}/{model}/{year}
eg:
curl -u admin:admin  -F date=@filename localhost:8080 
/var/cars/content/fiat/124/1970

I don't see a way to specify paths beyond the base without something kludgy 
like appending the make/model/year after a selector, i.e.:
/var/cars.json/fiat/124/1970

What's the recommended SlingServlet solution for pushing data into a sparse 
tree with lots of path name components?

-Bruce

Reply via email to