That sound like another problem than what you wrote about first :-) But anyway
ActionErrors has both an add(String, ActionMessage), defined in the superclass ActionMessages, and an add(String,ActionError) , defined in ActionErrors class which just calls the superclass version. That call works fine sinse ActionError inherits from ActionMessage.
Regards
At 13:28 2003-11-03 -0800, you wrote:
Hi,
Turns out that even though the documentation says I should use ActionErrors.add(String, ActionMessage), using (String, ActionError) solved the problem! Any ideas why?
Ramesh.
-----Original Message----- From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 1:11 PM To: Struts Users Mailing List Subject: Re: ActionErrors configuration
You should have the name of the jsp with the form (or possible the action that leads to the form page, with the .do extension) as the input. So your action would have input="/systemDetails.jsp" if that is the name of your jsp page.
Regards
At 13:10 2003-11-03 -0800, you wrote: >Hi, > > > >I am trying to configure my app so that when some of the text fields are >not populated, I show errors and redisplay the same page. The >configuration I have is: > > > > <action path="/systemDetails" >type="com.paycycle.profile.actions.SystemDetailsAction" >name="systemDetailForm" scope="request" input="/systemDetails"> > > . > > </action> > > > >When I try to run the app with this configuration and there are errors, >I get: > > > >The requested resource (/profile/systemDetails) is not available. > > > >Can you help me out here? > > > >Thanks, > > > >Ramesh.
--------------------------------------------------------------------- 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]