Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 41812 invoked from network); 24 Jul 2008 10:20:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 10:20:01 -0000 Received: (qmail 63751 invoked by uid 500); 24 Jul 2008 10:20:01 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 63746 invoked by uid 500); 24 Jul 2008 10:20:01 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 63731 invoked by uid 99); 24 Jul 2008 10:20:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 03:20:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of murray07@altheim.com designates 69.90.72.72 as permitted sender) Received: from [69.90.72.72] (HELO athens.clusterspan.net) (69.90.72.72) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 10:19:04 +0000 Received: (qmail 25171 invoked from network); 24 Jul 2008 06:18:29 -0400 Received: from ip-118-90-115-28.xdsl.xnet.co.nz (HELO ?192.168.1.64?) (118.90.115.28) by athens.clusterspan.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 24 Jul 2008 06:18:29 -0400 Message-ID: <488856F2.2020502@altheim.com> Date: Thu, 24 Jul 2008 22:18:26 +1200 From: Murray Altheim User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: jspwiki-user@incubator.apache.org Subject: Re: Is there a way to test whether a wiki page exists inside a JSP page? References: <5d3b96380807240250x446597darefbf2b633e378648@mail.gmail.com> In-Reply-To: <5d3b96380807240250x446597darefbf2b633e378648@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Weijian Fang wrote: > Hi, > > Is there a way to test whether a wiki page exists inside a JSP page? > e.g., using those markup? There's a couple of different ways, like checking if a page is missing:

Missing page!

and checking if the page exists:

Page exists!

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 === = = 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