i guess neither of the password fields are null
----- Original Message -----
From: "Nishant" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, November 08, 2004 5:58 PM
Subject: Re: problem in validate


> ya but how can i solve it it seems to be perfect
>
>
>
>  public ActionErrors validate(ActionMapping mapping,
>             HttpServletRequest request) {
>
>   ActionErrors errors = super.validate(mapping, request);
>
>   if (!password.equals(password2)) {
>    errors.add("password2",
>      new ActionError("error.password.match"));
>   }
>   return errors;
> Nishant Patil
> Software Engineer
> Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
> West Avenue , Kalyani Nagar,
> Pune - 411 006
> Tel: 91-20-4041700  -355
> Email: [EMAIL PROTECTED]
> Website: www.cybage.com
> There's a difference between knowing the path, and walking the path
> ----- Original Message -----
> From: "Koushik" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, November 08, 2004 5:58 PM
> Subject: Re: problem in validate
>
>
> > null pointer exception is coming from the validate method of ur form
bean
> > ----- Original Message -----
> > From: "Nishant" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 08, 2004 5:51 PM
> > Subject: problem in validate
> >
> >
> > hi all,
> > i am gettin this error .
> > 11/08 17:47:50 error
> > java.lang.NullPointerException
> >         at
com.cybage.RegistrationForm.validate(RegistrationForm.java:98)
> >         at
> > org.apache.struts.action.RequestProcessor.processValidate(RequestProc
> > essor.java:942)
> >         at
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> > va:255)
> >         at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> > 2)
> >         at
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> >
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
> >         at
> > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
> >         at
> > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
> > 249)
> >         at
> > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
> > 527)
> >         at
> jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
> >         at
> > jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
> > l.java:349)
> >         at
> > jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
> > ava:457)
> >         at
> > jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
> > java:295)
> >         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> >
> >
> >
> > my validator.xml file contains ---
> >
> > <form name="registrationForm">
> >   <field property="fromAddress"
> >                      depends="required,email">
> >                  <arg0   key="prompt.fromAddress"/>
> >              </field>
> >
> >             <field property="fullName"
> >                     depends="required">
> >               <arg0     key="prompt.fullName"/>
> >             </field>
> >
> >             <field property="replyToAddress"
> >                     depends="email">
> >                 <arg0   key="prompt.replyToAddress"/>
> >             </field>
> >
> >             <field property="username"
> >                     depends="required">
> >               <arg0     key="prompt.username"/>
> >             </field>
> >
> >  </form>
> >
> > and in my struts-config.xml have plugins like
> >
> >
> >   <plug-in className="org.apache.struts.plugins.ModuleConfigVerifier"/>
> >
> >   <plug-in className="com.cybage.memory.MemoryDatabasePlugIn">
> >     <set-property property="pathname" value="/WEB-INF/database.xml"/>
> >   </plug-in>
> >
> >   <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> >     <set-property property="pathnames"
> >                      value="/WEB-INF/validator-rules.xml,
> >                             /WEB-INF/validation.xml"/>
> >   </plug-in>
> >
> >
> > i aint able to find out why i am getting this error message
> > can neone help !>?
> > Nishant Patil
> > Software Engineer
> > Cybage Software Pvt. Ltd. (A CMM Level 3 Company)
> > West Avenue , Kalyani Nagar,
> > Pune - 411 006
> > Tel: 91-20-4041700  -355
> > Email: [EMAIL PROTECTED]
> > Website: www.cybage.com
> > There's a difference between knowing the path, and walking the path
> >
> >
> > ---------------------------------------------------------------------
> > 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