You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stefan Faist <st...@hmi-informatik.de> on 2001/08/10 08:23:00 UTC

error page

Hello all,
I want call a error page when an error happend. In the xxAction it works
fine, but how can I do this in the xxForm?
There I cant't call an forward to call my error page.

Can someone help me?
Thanks in advanced
STEFAN
----------------------------------------------
hmi-Informatik GmbH
Zettachring 6 - D-70567 Stuttgart
E-Mail: stefan.faist@hmi-informatik.de
http://www.hmi-informatik.de


Re: error page

Posted by Pham Thanh Quan <qu...@sdcgrp.com>.
You could declare your error page inside an action mapping in the file
struts-config.xml as follow

    <action    path=".."
               type="..."
               name="..."
               scope="request"
               input="Your_error_page_here">
    </action>

and it will forward to Your_error_page_here when encouter error

Quan

----- Original Message -----
From: Stefan Faist <st...@hmi-informatik.de>
To: Struts <st...@jakarta.apache.org>
Sent: Friday, August 10, 2001 1:23 PM
Subject: error page


> Hello all,
> I want call a error page when an error happend. In the xxAction it works
> fine, but how can I do this in the xxForm?
> There I cant't call an forward to call my error page.
>
> Can someone help me?
> Thanks in advanced
> STEFAN
> ----------------------------------------------
> hmi-Informatik GmbH
> Zettachring 6 - D-70567 Stuttgart
> E-Mail: stefan.faist@hmi-informatik.de
> http://www.hmi-informatik.de
>
>