struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjay Choudhary <java...@yahoo.com>
Subject Re: Error in overiding the validate method of ActionForm
Date Tue, 02 Apr 2002 00:38:42 GMT
I debugged the application and found that this
attribute was missing in struts_config.xml and then I
got your mail. 

Thanks for your help.

-Sanjay

--- Slava_L <lovkiys@esstu.ru> wrote:
> But, have u specified such attrib. like "input =
> <page.jsp> "
> 
> ----- Original Message -----
> From: "Sanjay Choudhary" <java_sc@yahoo.com>
> To: "Struts Users Mailing List"
> <struts-user@jakarta.apache.org>
> Sent: Tuesday, April 02, 2002 8:43 AM
> Subject: Error in overiding the validate method of
> ActionForm
> 
> 
> > > Hi,
> > >
> > > I have ActionForm bean - A which contains
> another
> > > javabean B.
> > >
> > > public class A extends ActionForm
> > > //Attribute
> > >    B b = new B();
> > >
> > > public class B
> > >    String name;
> > >
> > > In the jsp we use
> > > <html:text size="15" property="b.name"/>
> > >
> > > In Class A we also override the valdiate method
> > >
> > > ActionErrors errors
> > > if (b.name == null){
> > >   errors = = new ActionErrors();
> > >   errors.add("b.name",new ActionError("Name
> cannot
> > > be
> > > blank"));
> > > }
> > > return errors;
> > >
> > >
> > > When I put the validate method in my bean I get
> > > error
> > >
> > > No input attribute for mapping path
> > > /delegatordelegatename (This is the Action
> mapping
> > > name).
> > >
> > > without the validate method it works fine.
> > >
> > > Pls. tell me where I am making the mistake.
> > >
> > > -Sanjay
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Greetings - send holiday greetings for
> > > Easter, Passover
> > > http://greetings.yahoo.com/
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:struts-user-help@jakarta.apache.org>
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Greetings - send holiday greetings for
> Easter, Passover
> > http://greetings.yahoo.com/
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message