RE: Displaying error page

2002-04-24 Thread Bhaskar Gopalan

Thnx.

-gb

-Original Message-
From: Pruthee, Ranjan [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 4:02 PM
To: Struts Users Mailing List
Subject: RE: Displaying error page


U can specify the error page for the failures in struts-config.xml. For
example -

 




 

After u get an error in ur action.perform method, get the error text of the
exception, use
request.setAttribute(errorText) and it will be automatically forwarded to
the error jsp after u call 

mapping.findForward(FAILURE);

In ur jsp u get this error message by calling
request.getAttribute("error")

I hope this helps,

-Ranjan


-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:50 PM
To: Struts Group (E-mail)
Subject: Displaying error page


Hi,

in the action.perform(), I encounter an error and want to display an error
page along
with a dynamic message. Is there any standard way to do this (just like
displaying
the validation error page)? What other ways are possible?

Thnx,
Bhaskar

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Displaying error page

2002-04-22 Thread Joachim Gjesdal

Pruthee, Ranjan wrote:

>
>
>In ur jsp u get this error message by calling
>request.getAttribute("error")
>
or use the  tag :-)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Displaying error page

2002-04-22 Thread Pruthee, Ranjan

U can specify the error page for the failures in struts-config.xml. For example -

 




 

After u get an error in ur action.perform method, get the error text of the exception, 
use
request.setAttribute(errorText) and it will be automatically forwarded to the error 
jsp after u call 

mapping.findForward(FAILURE);

In ur jsp u get this error message by calling
request.getAttribute("error")

I hope this helps,

-Ranjan


-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:50 PM
To: Struts Group (E-mail)
Subject: Displaying error page


Hi,

in the action.perform(), I encounter an error and want to display an error
page along
with a dynamic message. Is there any standard way to do this (just like
displaying
the validation error page)? What other ways are possible?

Thnx,
Bhaskar

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: