Re: Reg : Exception Handling

2006-09-01 Thread Li

return mapping,findforward("failure");


should it be : return mapping.findforward("failure"); (you use ',' here, it
should be '.')


On 9/1/06, Rokariya, Raman <[EMAIL PROTECTED]> wrote:


Make sure that you have a mapping in Struts-Config.xml also, for the
respective
action-mapping with the forward="failure"

/Raman Rokariya

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Friday, September 01, 2006 1:11 PM
To: Struts Users Mailing List
Subject: Re: Reg : Exception Handling


Karthikn ha scritto:
> Hi,
>
> I am new user. I am implementing exception handling in my
> application.
> In my action class I have try, catch block.
> in the catch block
>
> catch(Exception e)
>
>   {
>
> return mapping,findforward("failure");
>
> }
>
> I defined the failure forward in my struts-config.xml.
> But the problem is that forward is not getting executed.
> Can u please help on this.
>

Can you post your action mapping and your forward?

P.S.. The next time do not leave so much blank lines or no one will read

your email :-)

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


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





--
When we invent time, we invent death.


RE: Reg : Exception Handling

2006-09-01 Thread Rokariya, Raman
Make sure that you have a mapping in Struts-Config.xml also, for the
respective 
action-mapping with the forward="failure"

/Raman Rokariya

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 01, 2006 1:11 PM
To: Struts Users Mailing List
Subject: Re: Reg : Exception Handling


Karthikn ha scritto:
> Hi,
>
> I am new user. I am implementing exception handling in my
> application.
> In my action class I have try, catch block.
> in the catch block
>
> catch(Exception e)
>
>   {
>
> return mapping,findforward("failure");
>
> }
>
> I defined the failure forward in my struts-config.xml.
> But the problem is that forward is not getting executed.
> Can u please help on this.
>   

Can you post your action mapping and your forward?

P.S.. The next time do not leave so much blank lines or no one will read

your email :-)

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


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



Re: Reg : Exception Handling

2006-09-01 Thread Antonio Petrelli

Karthikn ha scritto:

Hi,

I am new user. I am implementing exception handling in my
application.
In my action class I have try, catch block.
in the catch block

catch(Exception e)

  {

return mapping,findforward("failure");

}

I defined the failure forward in my struts-config.xml.
But the problem is that forward is not getting executed.
Can u please help on this.
  


Can you post your action mapping and your forward?

P.S.. The next time do not leave so much blank lines or no one will read 
your email :-)


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