Weijian Fang wrote:
Hi,
Is there a way to test whether a wiki page exists inside a JSP page?
e.g., using those <wiki:xxx> markup?
There's a couple of different ways, like checking if a page is missing:
<wiki:NoSuchPage page="PageName">
<p>Missing page!</p>
</wiki:NoSuchPage>
and checking if the page exists:
<wiki:PageExists page="PageName">
<p>Page exists!</p>
</wiki:PageExists>
There's probably a few more but that will likely do the trick.
You can find examples in the JSPs delivered with JSPWiki. There
are lots of them.
Murray
...........................................................................
Murray Altheim <murray07 at altheim.com> === = =
http://www.altheim.com/murray/ = = ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = =
Boundless wind and moon - the eye within eyes,
Inexhaustible heaven and earth - the light beyond light,
The willow dark, the flower bright - ten thousand houses,
Knock at any door - there's one who will respond.
-- The Blue Cliff Record