Excellent. Thank you guys. On Thu, Sep 2, 2010 at 12:15 PM, Justin Edelson <[email protected]>wrote:
> Not quite - JSON gets posted as a form parameter. See > > http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html#ManipulatingContent-TheSlingPostServlet%2528servlets.post%2529-ImportingContentStructures > > You can also do something like this: > > <form method="POST" action="/content/page/first" > enctype="multipart/form-data"> > <input type="text" name="title" /> > <input type="text" name="text" /> > <input type="text" name="sub/text" /> > <input type="text" name="sub/sub1/text" /> > <input type="Submit" /> > </form> > > i.e. just put slashes in the form parameter names and child nodes will > be created as needed. > > Justin > > On 9/2/10 1:12 PM, Ian Boston wrote: > > IIRC you can post a Json file in the body of the post and it becomes the > node tree. > > Ian > > > > On 2 Sep 2010, at 17:42, John Crawford wrote: > > > >> Greetings, > >> > >> I was curious if anyone knows of a way to create an entire branch from a > >> single POST request to the SlingPostServlet? By entire branch, I mean > maybe > >> two or three subnodes. > >> > >> Respectfully, > >> John > > > >
