[mapserver-users] mapfile web object error
Steve Lime
Steve.Lime at dnr.state.mn.us
Fri Nov 6 09:33:36 PST 2009
There ERROR parameter has no effect in mapscript unless you choose to do so yourself. In that environment
you have total control over error messages.
The CGI is a different story. In that environment the ERROR parameter is used. It's also treated like a template
so you can pass the MapServer error buffer on to your default error page as an argument. For example you
could do something like:
WEB
...
ERROR 'http://my.site.com/error.html?message=[errmsg_esc]'
END
and then in your page you could display the message or parse it to display a custom message.
Is that what you're after?
Steve
>>> On 11/6/2009 at 11:08 AM, in message <4AF3F582.CED1.00DF.0 at wapa.gov>, "Eric
Weisbender" <Weisbend at wapa.gov> wrote:
> How can I include the default web error object message in my custom web error
> page. In the map file under the Web object there is a place to
> redirect/create your own error page. If you don't specify the error html
> page you get the standard mapserver error. This is in all versions of
> mapserver and it doesn't matter if you are running cgi or mapscript because
> it a map file web object definition. Any help would be appreciated.
>
> Thanks,
> EW
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list