WorldWander logo
Main

The Road Behind

Venezuela
Trinidad
Curacao
Galapagos
Ecuador
Peru
Bolivia
Paraguay
Argentina
Chile
Hong Kong
Thailand North
Thailand South
Malaysia
Cambodia
Singapore
Nepal
Kathmandu
Royal Trek
Nepal Trek
India
India Palace
Udaipur
Bangalore
Greece
Islands
Rhodes
Camping
Olympia
Turkey
Istanbul
Bath
Bursa
Cappadocia
Bodrum
South Africa
Garden Route
Cape Town
Namibia
Fish River
Etosha
Botswana
Zimbabwe
Wedding
Great Ruins
Germany
Bathroom
Netherlands
Spain
Madrid
Seville
Granada
Gibraltar
Morocco
Portugal
Sintra
France
Normandy
Egypt
Pyramids
Nile
Aswan
Abusimbel
Luxor
Valley of Kings
Alexandria
Red Sea
Jordan
Kings Valley
Aman
Palestine

The Road Ahead

Isreal
Czech Republic
Austria
Italy
Switzerland
England
Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences


Referenced by
JSPWikiTags
PageSizeTag




JSPWiki v2.2.33


AttachmentsIteratorTag


Iterates through the attachments of the current page.

The variable that is created is an instance of the Attachment class, which has the following methods:

  • String getName() - Returns the fully-fledged WikiName of the attachment.
  • String getFileName() - Returns the filename.
  • long getSize() - Size of the attachment in bytes.
  • String getParentName() - WikiName of the parent page.
  • String getAuthor() - Name of the last author.
  • int getVersion() - Current version.
  • Date getLastModified() - Date of the latest modification.

The current page always becomes the attachment referred to by the variable.


Usage

<wiki:AttachmentsIterator id="<variable name>">

JSP code
</wiki:AttachmentsIterator>

Parameters

id
Name of the iterator variable to create.

Example

         <table width="90%">
         <wiki:AttachmentsIterator id="att">
             <tr>
             <td><wiki:LinkTo><%=att.getFileName()%></wiki:LinkTo></td>
             </tr>
         </wiki:AttachmentsIterator>
         </table>

Lists the attachments. Note how the LinkToTag refers to the currently iterated attachment, so that if you have two attachments (Foobar1 & Foobar2), the list might show up something like this:

<table>
   <tr><td><a href="attach?page=Foobar1">Foobar1</a></td></tr>
   <tr><td><a href="attach?page=Foobar2">Foobar2</a></td></tr>
</table>



Go to top  
This page last changed on 22-Mar-2003 23:15:42 EST by unknown.
Please make one.