curl -u admin:admin -F_charset_=utf-8 -Fmyprop=value1 -Fmyprop=value2
http://localhost:8000/content/some/node
then, /content/some/node will have a String[] property called myprop with
values {"value1", "value2"}
On Sun, Jul 1, 2012 at 2: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
> > >
> >
>