Jspwiki configuration process and simple application

Source: Internet
Author: User
1. install Tomcat, version 4, and later. Note that it is best to select a folder without spaces during installation and put it in the root directory. For example, D:/tomcat55 /. This is mainly because some wiki plug-ins have requirements for this. 2. download jspwiki: http://www.jspwiki.org/wiki/jspwikidownloaddownload file: jspwi%2.2.33-bin.zip 3. copy the jspwiki In the compressed package. war to Tomcat's webapps, rename it as your Wiki name, for example, tomwiki. war 4. start Tomcat. Enter http: // 127.0.0.1: 8080/tomwiki/tomcat in the browser to deploy your Wiki and automatically create a tomwiki folder under webapps, including JSP files and configuration information, the jspwiki under the WEB-INF. properties records the most important configuration information, which can be found at http: // 127.0.0.1: 8080/tomwiki/install. JSP. At the same time, Tomcat will automatically create a data folder for your Wiki. in Linux, It is/P/web/www-data/jspwiki. In Windows, it is D: /P/web/www-data/tomwiki (assuming Tomcat is installed on disk D) 5. enter http: // 127.0.0.1: 8080/tomwiki/install. JSP configures your Wiki. After Successful Configuration, jspwiki will be modified. properties file. (1 ). application name: tomwiki (2 ). base URL: http: // 127.0.0.1: 8080/tomwiki/(3 ). file Storage:/P/web/www-data/tomwiki/(4 ). work Directory:/tmp/(5 ). log Files:/tmp/tomwiki. log 6.decompress the jspwiw.2.2.33-bin.zip file in jspwiw.samplepages.zip to your data directory D:/P/web/www-data/tomwiki. Restart tomcat to create a simple wiki. Note that if you use a Chinese template, do not do this. For more information, see clause 8 (use template). 7. Modify the jspwiki. properties file directly. Jspwiki. pageprovider = filesystemprovider -- page storage method. We recommend that you use versioningfileprovider to provide the simple version control function jspwiki. usepagecache = true -- page cache. The default value is jspwiki. filesystemprovider. pagedir =/P/web/www-data/jspwiki/-- the location where the Wiki content is stored, that is, the location where a bunch of TXT files are located. encoding = UTF-8 -- if you want to use Chinese, the comment before this configuration item must be removed from jspwiki. translatorreader. allowhtml = false -- whether to allow HTML in wiki. We strongly recommend that you do not allow it because wiki is co-edited. If someone maliciously uses JS, it will be miserable. Jspwiki. templatedir = default -- Wiki template. You can download the template from jspwiki, put it in the templates directory, and change the name here to get jspwiki. translatorreader. inlinepattern.1 = *. JPG -- if you want to allow wiki to support more image formats, modify jspwiki here. lucene. analyzer = org. apache. lucene. analysis. CJK. cjkanalyzer-supports Chinese search 8. the jspwiki template allows you to use a third-party template to replace the "defalut" template that comes with the release package. Mgr and nexb are popular. The Chinese template library is star_zh_cn. download jspwiki_zh_cn.zip and decompress. copy the templates/star_zh_cn directory to {tomwiki}/templates. B .. copy the TXT file under the wikipages directory to the "Wiki webpage directory" of tomwiki. "Wiki For the web directory, see {tomwiki}/WEB-INF/jspwiki. jspwiki in the properties file. filesystemprovider. pagedir value. c. modify {tomwiki}/WEB-INF/jspwiki. jspwiki in the properties file. the templatedir property value is star_zh_cn.d. (restart) Start the web server. 9.use wordto edit pages that support jspwiki. use wordmacro jspwikivbato download jspwikivba.zip and decompress it to obtain aword2jspwiki. BAS. you only need to enter Alt + F11 in the word interface to open the built-in Visual Basic Editor, and then press Ctrl + m to import "aword2jspwiki. bas ", save and exit. Then you can use this macro to convert it. For example, open a Word document to be converted and select Alt + F8. In the displayed dialog box, select "awordtojsp"
After clicking "run", the macro starts to execute the conversion task. After the conversion task is completed, the text content converted to jspwiki format is saved in the clipboard. paste it directly in the jspwiki editing box. After saving, the converted effect can be displayed in the Wiki. Some changes may still need to be made after the conversion, but the workload is much less than 10. simple Application of jspwiki:. add page: click a link that has not been edited to go To the Edit page. Save it after editing. Note that there is a dotted line under the text of the page link that has not been edited. B. delete page: click "More Info" or "More information" in the lower right corner to go to the version history information on the page. Click "delete page" to delete the page, note that deletion is locked in many cases. C. Edit page: The editing page is displayed. Generally, text editing is the same as Notepad. Common problems include: # title: adding an exclamation point before font size: for example "!!! Www.tom.com ". display the largest font # Link: Enter the wiki page name in [] for internal links. For example, add "http: // ", for example," [tomonline | www.tom.com] "# image: [http: // 61.135.158.241/AD/player.gif] or click" Attach file "or" add attachment ", upload an image # Word Macro: Input text under word to the supported format on the jspwiki page and save it to the clipboard. Use the plug-in.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.