[mapserver-users] Query error messages
Matthew Hatcher
MJHatcher@space.qinetiq.com
Mon, 9 Sep 2002 14:59:52 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C25809.2B793970
Content-Type: text/plain;
charset="ISO-8859-1"
Thanks.
Can't believe I missed something that obvious! But I'm now going to make it
a little harder for you all! Assuming that an error occurs and the page is
diverted to the url specified, is there any way to find out what the error
was? I presume (haven't checked the code) that MapServer does a simple
redirect to the page specified, rather than using it as a template, so it
wouldn't be possible to use a template variable or would it?
Matt.
-----Original Message-----
From: Marc Jacquin [mailto:jacquin@geosys-inc.com]
Sent: 09 September 2002 13:05
To: Matthew Hatcher; mapserver-users@lists.gis.umn.edu
Subject: RE: [mapserver-users] Query error messages
Matt,
Check the ERROR [url] keyword in the Web object.
Marc
-----Original Message-----
From: owner-mapserver-users@lists.gis.umn.edu
[mailto:owner-mapserver-users@lists.gis.umn.edu]On Behalf Of Matthew Hatcher
Sent: lundi 9 septembre 2002 09:57
To: mapserver-users@lists.gis.umn.edu
Subject: [mapserver-users] Query error messages
Hi everyone.
This is probably a really optimistic question, but is there any way to
customise the error messages you get from a query without using MapScript?
What I want to do is have a query that yields no results go to a custom page
of my choice, rather than simply show the "Search returned no results"
message.
Is this possible?
Cheers,
Matt Hatcher
**********************************************************************
The information contained in this email and any subsequent
correspondence is private and is intended solely for the
intended recipient(s). For those other than the intended
recipient(s) any disclosure, copying, distribution, or any
action taken or omitted to be taken in reliance on such
information is prohibited and may be unlawful.
**********************************************************************
------_=_NextPart_001_01C25809.2B793970
Content-Type: text/html;
charset="ISO-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Tahoma size=2><SPAN
class=953310014-09092002>Thanks.</SPAN></FONT></DIV>
<DIV><FONT face=Tahoma size=2><SPAN
class=953310014-09092002></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma size=2><SPAN class=953310014-09092002>Can't believe I
missed something that obvious! But I'm now going to make it a little harder for
you all! Assuming that an error occurs and the page is diverted to the url
specified, is there any way to find out what the error was? I presume (haven't
checked the code) that MapServer does a simple redirect to the page specified,
rather than using it as a template, so it wouldn't be possible to use a template
variable or would it?</SPAN></FONT></DIV>
<DIV><FONT face=Tahoma size=2><SPAN
class=953310014-09092002></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma size=2><SPAN
class=953310014-09092002>Matt.</SPAN></FONT></DIV>
<DIV><FONT face=Tahoma size=2><SPAN
class=953310014-09092002></SPAN></FONT> </DIV>
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Original Message-----<BR><B>From:</B> Marc Jacquin
[mailto:jacquin@geosys-inc.com]<BR><B>Sent:</B> 09 September 2002
13:05<BR><B>To:</B> Matthew Hatcher;
mapserver-users@lists.gis.umn.edu<BR><B>Subject:</B> RE: [mapserver-users] Query
error messages<BR><BR></FONT></DIV>
<DIV><SPAN class=460230312-09092002><FONT face=Arial color=#0000ff
size=2>Matt,</FONT></SPAN></DIV>
<DIV><SPAN class=460230312-09092002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=460230312-09092002><FONT face=Arial color=#0000ff size=2>Check
the ERROR [url] keyword in the Web object.</FONT></SPAN></DIV>
<DIV><SPAN class=460230312-09092002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=460230312-09092002><FONT face=Arial color=#0000ff
size=2>Marc</FONT></SPAN></DIV>
<DIV><SPAN class=460230312-09092002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=460230312-09092002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
owner-mapserver-users@lists.gis.umn.edu
[mailto:owner-mapserver-users@lists.gis.umn.edu]<B>On Behalf Of </B>Matthew
Hatcher<BR><B>Sent:</B> lundi 9 septembre 2002 09:57<BR><B>To:</B>
mapserver-users@lists.gis.umn.edu<BR><B>Subject:</B> [mapserver-users] Query
error messages<BR><BR></FONT></DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma size=2>Hi
everyone.</FONT></SPAN></DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma size=2>This is probably a
really optimistic question, but is there any way to customise the error
messages you get from a query without using MapScript?</FONT></SPAN></DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma size=2>What I want to do
is have a query that yields no results go to a custom page of my choice,
rather than simply show the "Search returned no results"
message.</FONT></SPAN></DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma size=2>Is this
possible?</FONT></SPAN></DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma
size=2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=00085807-09092002><FONT face=Tahoma size=2>Matt
Hatcher</FONT></SPAN></DIV>
<DIV> </DIV><CODE><FONT
size=3><BR><BR>**********************************************************************<BR>The
information contained in this email and any subsequent<BR>correspondence is
private and is intended solely for the <BR>intended recipient(s). For those
other than the intended<BR>recipient(s) any disclosure, copying, distribution,
or any <BR>action taken or omitted to be taken in reliance on such
<BR>information is prohibited and may be
unlawful.<BR>**********************************************************************<BR></BLOCKQUOTE></FONT></CODE></BODY></HTML>
------_=_NextPart_001_01C25809.2B793970--