20031211 Thursday December 11, 2003

Export JSPWiki pages to HTML using Hula This morning, I discovered Hula - a Java client API to the WikiRPCInterface. The nice feature I really like is that it allows you to export your wiki pages to static html. Here's how to set it up on your JSPWiki:

  • Uncomment the XML RPC servlet-mappings in web.xml.
  • Download Hula.
  • Rename hula.zip to hula.jar and put it into JSPWiki's WEB-INF/lib.
  • Copy apps/*.jsp to webapps/JSPWiki/.
You can use my trimmed down version if you like, it only has hula.jar and the JSPs.

Now I can write all my AppFuse documentation on the wiki and bundle it with the downloads - very nice. Posted in Java at Dec 11 2003, 11:52:03 AM MST 3 Comments

Comments:

I had to change the printwikistart.jsp slightly to make it work. Here are my settings: Servlet mapping in web.xml: <servlet-mapping> <servlet-name>XMLRPC</servlet-name> <url-pattern>/RPC2/</url-pattern> </servlet-mapping> In the printwikistart.jsp I changed the line: mClient = new RPCClient("http://"+request.getServerName()+"/wiki/RPC2/"); to: mClient = new RPCClient("http://"+request.getServerName()+":8080/InexwareWiki/RPC2/"); where 'InexwareWiki' is the name of our webapp. The code should probably be modified to get the webapp name and port number dynamically, but this is just to show what I had to change. /Thomas Nicholls

Posted by Thomas on December 15, 2003 at 04:52 AM MST #

Oops, that comment ended up being very badly formated. Basically I just had to change the two JSPs, since they supposed that my webapp was running on port 80 with the webapp name 'wiki'.

Posted by Thomas on December 15, 2003 at 05:00 AM MST #

I'm the author of Hula, and color me pleased that someone is actually using it and enjoying it. I'll let people know that a new version is out that now natively includes hula.jar and also includes a Table Of Contents printing style, by which you pick a page to display, and that page plus every page it directly references will be displayed (see here for an example).

Posted by Mahlen Morris on January 01, 2004 at 12:47 PM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud