Lucky Dip Logo
Powered by PlusNet. PlusNet broadband.
Patrick's Lucky Dip
Home > Java > wiki > wiki JSP Pages

Patrick Haston
27 November 2008

wiki JSP Pages

There are only five pages in this application. The application root is wiki, so when you deploy the application the full url will be something like http://server:port/wiki/default.jsp

This section gives a brief overview of the pages, clicking on the link will allow you to download the source code.

default.jsp

This is the home page. If you don't specify a page name, it will show a page called "Welcome". You need to ensure that you have a page called Welcome in the WIKI_PAGE table. The reason it is called default is so that if someone just types http://server:port/wiki into their browser, then the welcome page is still displayed. It is labelled as view on the tab.

discussion.jsp

This page shows any discussions relating to a page. Comments start with a topic (like starting a new thread). Further people can comment on the topic, support a proposed change or oppose it.

history.jsp

This shows a history of the edits to a page (only the ten most recent edits are displayed). If a page is moderated, this is where the page owner can accept a submission.

edit.jsp

This page allows people to edit a page. If you have the rights you can add a new section, re-order the sections or edit an existing section. This is where you add new pages. The syntax for entering links to other pages is simply to surround the page name in square brackets. Page names are case sensitive.

search.jsp

There is a search box on the default view page which leads to this page where the results are displayed.