Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-26) was last changed on 27-Mar-2009 15:09 by Janne Jalkanen  

This page was created on 30-May-2003 16:49 by JanneJalkanen

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 40 changed one line
Simple.
Simple. If you have a HttpServletRequest handy, you can just go
At line 42 changed one line
WikiPage page = new WikiPage( "SamplePage" );
WikiContext wikiContext = myWikiEngine.createContext( request, WikiContext.VIEW );
}}}
Another option is to create one for yourself with:
{{{
WikiPage page = myWikiEngine.getPage( "SamplePage" );
At line 50 added one line
wikiContext.setRequestContext( WikiContext.VIEW );
At line 46 changed one line
Alternatively, you can use the {{WikiEngine.getPage( String pagename )}} -method to get the WikiPage.
Alternatively, you can use the WikiPage constructor -method to get the WikiPage. This is not recommended, however, because using getPage() gives you the benefits of the built-in caches.
Version Date Modified Size Author Changes ... Change note
26 27-Mar-2009 15:09 5.52 kB Janne Jalkanen to previous Please don't post questions in the middle, they are very confusing to others.
25 27-Mar-2009 04:00 5.763 kB 69.26.32.67 to previous | to last
24 21-Jan-2009 10:42 5.52 kB 80.62.161.39 to previous | to last Fixed typo in code example.
23 18-Apr-2007 09:51 5.519 kB David Au to previous | to last restored; please use the Sandbox for testing
22 18-Apr-2007 07:54 5.519 kB 202.144.61.68 to previous | to last
21 18-Apr-2007 07:53 5.523 kB 202.144.61.68 to previous | to last
« This page (revision-26) was last changed on 27-Mar-2009 15:09 by Janne Jalkanen