The Pic Show Plugin is a very simple plugin to creates a page containing a table of all the specified pictures in the attachments.

Syntax: #

[{INSERT PicShowPlugin cols='<cols>' height='<height>' width='<width>' type='<type>' class='<class>' style='<style>' showName='<showName>' thumbnail='<thumbnail>'}]


cols (optional)

Defines the picture amount in one row. Default is all in one row.
height (optional)

Defines the height of each picture. Default is original.
width (optional)

Defines the width of each picture. Default is original.
type (optional)

Specify the type of the pictures. Devided by the comma. Default is 'JPG,PNG,GIF'. (Case insensitive)
class (optional)

The css class of the table.
style (optional)

The style of the pictures.
showName (optional)

Whether show the file name as the caption under each picture. Default is "false".
thumbnail (optional)

Whether create the thumbnails in the serverside. Default is "false".


Step 1) Add com.newland.jspwiki.plugin to your jspwiki.plugin.searchPath in

Step 2) Add the PicShowPlugin.class and Thumb.class to your classes using the path com.newland.jspwiki.plugin.

Step 3) Put the Thumb.jsp in your JSPWiki web root directory.

The plugin should now be ready for use.

I write the Thumb.jsp file for easy deploy. The other way is to use servlet, you can rewrite it into servlet.

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
PicShowPlugin.class 4.8 kB 2 14-Nov-2006 11:27 penghui
Thumb.class 3.0 kB 1 14-Nov-2006 11:28 penghui
Thumb.jsp 0.1 kB 1 14-Nov-2006 11:28 penghui
screenshot.JPG 32.8 kB 1 03-Nov-2006 05:59
« This page (revision-8) was last changed on 24-Jan-2008 10:25 by