check out:

http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html#ManipulatingContent-TheSlingPostServlet%2528servlets.post%2529-ImportingContentStructures

The JSON format should be able to take in the array in the form {
"paramName": ["value1", "value2"]}

Sarwar


On Sun, Jul 1, 2012 at 7:10 PM, Bhathiya Jayasekara
<[email protected]>wrote:

> Hi,
>
> On Sun, Jul 1, 2012 at 11:33 PM, Raghu Sengar <[email protected]
> >wrote:
>
> > You should be able to pass in a array with your values. It should work.
> Are
> > you getting any errors?
> >
> > For example,
> >
> > String[] values = {"Value1", "Value2"}
> >
> > node.setProperty("mypropname", values);
> >
> This is a JCR API method. What I want is to do this with Sling using an
> http request.
>
> Thanks.
> --Bhathiya
>
>
> >
> > On Sun, Jul 1, 2012 at 4:06 AM, Bhathiya Jayasekara
> > <[email protected]>wrote:
> >
> > > Hi all,
> > >
> > > I want to save a String array as a value of a property in a node. What
> is
> > > the format I should send it?
> > >
> > > To be clear, the related method in Jackrabbit is *public Property
> > > setProperty(String name, String[] values)*
> > >
> > > Thank you.
> > >
> > > --Bhathiya
> > >
> >
>

Reply via email to