You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Osvaldo Pina <os...@gmail.com> on 2009/01/16 17:22:57 UTC

Creating a new page

  Hi,


  I'm developing a plugin that creates new wiki pages. Taking a look at how
a page is created I guess that this would be enough:

       WikiPage myNewPage = new WikiPage(wikiContext.getEngine(),
myNewPageName);

       wikiContext.setPage(myNewPage);

        wikiContext.getEngine().saveText(wikiContext, "Content for my new
page" ) ;

   Am I correct?

    Tanks,
    Osvaldo Pina.