Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences

Edit this page


Referenced by
JSPWikiTags
PageSizeTag




JSPWiki v2.2.33

[RSS]


Hide Menu

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

JSP code

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   Edit this page   More info...   Attach file...
This page last changed on 06-Nov-2006 13:52:58 MST by unknown.