The
<dotj:filesize> tag can be used to display the size of a file on disk.
The value displayed can be either in bytes, kilobytes, or megabytes.
In this first set of examples, we just display the filesize of a file in each of the three units.
Filename: /home/dotj1/domains/dotjonline.com/public_html/doc/dotj.pdf
Example 1 - File size: 841021.0 Bytes.
Example 2 - File size: 821.3096 Kilobytes.
Example 3 - File size: 0.8020601 Megabytes.
In this second set of examples, we pretty up the results using the
<dotj:number> tag.
Filename: /home/dotj1/domains/dotjonline.com/public_html/doc/dotj.pdf
Example 4 - File size: 841,021 Bytes.
Example 5 - File size: 821 KB.
Example 6 - File size: 0.8 MB.
In this third set of examples, we point the tags to files within our web application by using the
page attribute.
Page: /doc/dotj.pdf
Example 7 - Page size: 841021.0 Bytes.
Example 8 - Page size: 821.3096 Kilobytes.
Example 9 - Page size: 0.8020601 Megabytes.
Back to Samples page
:
:
:
:
:
:
:
:
Copyright © 2000-2004 dotJ Software Inc. All rights reserved.
|