Actually i had to put a content to make it work..
I have another problem, i want to read a file filled with name of pages
to create them dynamically.
new File('C:\\arbre2.txt').withReader{ reader ->
  while (reader.readLine() != null) {println (reader.readline())}}
and i got this :
java.io.FileNotFoundException: c:arbre2.txt (Le chemin d'acces specifie est
introuvable)
it seems than '/' or '\' are removed and i cant put my file path.
Maybe i should use a specific directory?
My questions are not really interesting for this list..
Does another mailing-list for rookies exists?
Sorry for bothering but i need to do this in emergency.
Gerem
-----Message d'origine-----
De : devs-bounces(a)xwiki.org [mailto:devs-bounces@xwiki.org]De la part de
Jean-Vincent Drean
Envoye : mardi 26 aout 2008 10:13
A : XWiki Developers
Objet : Re: [xwiki-devs] Error 3201 in 3
We'd need more details about the error you get (stacktrace), not only
the error code.
Thanks,
JV.
On Tue, Aug 26, 2008 at 9:52 AM,  <gerem44(a)free.fr> wrote:
  Hello people,
 Im stuck with this error, i have superadmin rights but i cant
 create a newdoc using velocity or groovy script.
 It worked once and then nothing.
 <%
 pagename = "Main.Page1"
 newdoc = xwiki.getDocument(pagename)
 newdoc.setContent("")
 newdoc.setTitle("Page1")
 newdoc.save()
 %>
 thx for help.
 Gerem
 _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs
 
--
Jean-Vincent Drean
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs