A possible solution might be to 
1. Set validate="false" for your action.
2. Configure forwards for each of your error pages
2. Explicitly call form.validate() in your action 
3. Call saveErrors() if validation fails
4. Redirect to the appropriate forward

Lance.

-----Original Message-----
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] 
Sent: 14 November 2006 11:41
To: Struts Users Mailing List
Subject: Re: setInput method of ActionMapping

As for my understanding this cantnot be set after the struts-config is 
loaded.,


----- Original Message ----- 
From: "chamal desilva" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, November 14, 2006 7:37 AM
Subject: setInput method of ActionMapping


> Hi,
>
>
> I want to call
>
> mapping .setInput() method inside my validate method
> of a form bean.
>
> But it throws an Exception.
>
> ====================================================
> java.lang.IllegalStateException: Configuration is
> frozen at
> org.apache.struts.config.ActionConfig.setInput(ActionC
> ====================================================
>
> Please help me to correct this issue.
>
> Thanking You,
> Chamal.
>
>
>
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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]




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

Reply via email to