RE: Validating forms with the validator

2002-06-07 Thread Robert Taylor

I haven't used DynaValidatorForm as of yet, so I'm not quite sure.
But it may have something to do with Craigs comment on the limitation
of DynaBeans and some of the conversion utilities.

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg33138.html

Sorry, I'm not much help here.

robert

> -Original Message-
> From: William W [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Validating forms with the validator
>
>
> Hi !
>
> What Am I doing wrong ?
> I changed the struts-config to use it with DynaValidatorForm.
> I had
>
>  type="org.apache.struts.webapp.validator.RegistrationForm"/>
>
> And now I have
>
>  name="registrationForm"
> dynamic="true"
> type="org.apache.struts.validator.DynaValidatorForm">
> 
> 
> 
>  type="org.apache.struts.webapp.validator.CityStateZip"/>
> 
> 
> 
>
> And I'm having the error
>
> javax.servlet.ServletException: BeanUtils.populate
>   at org.apache.struts.util.RequestUtils.populate(Compiled Code)
>   at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestP
> rocessor.java:795)
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor
> .java:244)
>   at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
>   at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>   at
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
>   at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
>   at org.apache.tomcat.core.Handler.service(Compiled Code)
>   at
> org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
>   at
> org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
>   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>   at
> org.apache.tomcat.modules.server.Http10Interceptor.processConnecti
> on(Http10Interceptor.java:176)
>   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
> Code)
>   at java.lang.Thread.run(Thread.java:479)
> Root cause:
> java.lang.IllegalArgumentException: No bean specified
>   at
> org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Compiled
> Code)
>   at org.apache.commons.beanutils.BeanUtils.setProperty(Compiled Code)
>   at org.apache.commons.beanutils.BeanUtils.populate(Compiled Code)
>   at org.apache.struts.util.RequestUtils.populate(Compiled Code)
>   at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestP
> rocessor.java:795)
>   at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor
> .java:244)
>   at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
>   at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>   at
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
>   at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
>   at org.apache.tomcat.core.Handler.service(Compiled Code)
>   at
> org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
>   at
> org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
>   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>   at
> org.apache.tomcat.modules.server.Http10Interceptor.processConnecti
> on(Http10Interceptor.java:176)
>   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
> Code)
>   at java.lang.Thread.run(Thread.java:479)
>
>
>
>
> >From: "Robert Taylor" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: Validating forms with the validator
> >Date: Fri, 7 Jun 2002 13:28:05 -0400
> >
> >I downloaded and ran the struts-validator.war example that comes with
> >Struts1.1b1.
> >
> >I had two issues:
> >
> >I had to remove the extra password definition in the struts-html.tld
> >and I had to add the jakarta-regexp-1.2.ja

RE: Validating forms with the validator

2002-06-07 Thread William W

Hi !

What Am I doing wrong ?
I changed the struts-config to use it with DynaValidatorForm.
I had



And now I have










And I'm having the error

javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(Compiled Code)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:795)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled 
Code)
at java.lang.Thread.run(Thread.java:479)
Root cause:
java.lang.IllegalArgumentException: No bean specified
at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Compiled 
Code)
at org.apache.commons.beanutils.BeanUtils.setProperty(Compiled Code)
at org.apache.commons.beanutils.BeanUtils.populate(Compiled Code)
at org.apache.struts.util.RequestUtils.populate(Compiled Code)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:795)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled 
Code)
at java.lang.Thread.run(Thread.java:479)




>From: "Robert Taylor" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: Validating forms with the validator
>Date: Fri, 7 Jun 2002 13:28:05 -0400
>
>I downloaded and ran the struts-validator.war example that comes with
>Struts1.1b1.
>
>I had two issues:
>
>I had to remove the extra password definition in the struts-html.tld
>and I had to add the jakarta-regexp-1.2.jar to the WEB-INF/lib directory.
>
>After that, it worked fine.
>
>robert
>
> > -Original Message-
> > From: William W [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 07, 2002 1:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: Validating forms with the validator
> >
> >
> >
> > Hi All,
> > I'm trying to use the "Struts Validator"
> > (http://home.earthlink.net/~dwinterfeldt/overview.html), but there are 
>no
> > examples with Struts 1.1 b1.
> > Somebody have some example (.war) ?
> > Thanks !
> > William.
> >
> >
> > _
> > Get your FREE download of MSN Explorer at
> > http://explorer.msn.com/intl.asp.
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: Validating forms with the validator

2002-06-07 Thread Thomas, Gigen

Has anyone tried using the validator with nested tags ?

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 10:28 AM
To: Struts Users Mailing List
Subject: RE: Validating forms with the validator


I downloaded and ran the struts-validator.war example that comes with
Struts1.1b1.

I had two issues:

I had to remove the extra password definition in the struts-html.tld
and I had to add the jakarta-regexp-1.2.jar to the WEB-INF/lib directory.

After that, it worked fine.

robert

> -Original Message-
> From: William W [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 1:20 PM
> To: [EMAIL PROTECTED]
> Subject: Validating forms with the validator
>
>
>
> Hi All,
> I'm trying to use the "Struts Validator"
> (http://home.earthlink.net/~dwinterfeldt/overview.html), but there are no
> examples with Struts 1.1 b1.
> Somebody have some example (.war) ?
> Thanks !
> William.
>
>
> _
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp.
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


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




RE: Validating forms with the validator

2002-06-07 Thread Robert Taylor

I downloaded and ran the struts-validator.war example that comes with
Struts1.1b1.

I had two issues:

I had to remove the extra password definition in the struts-html.tld
and I had to add the jakarta-regexp-1.2.jar to the WEB-INF/lib directory.

After that, it worked fine.

robert

> -Original Message-
> From: William W [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 1:20 PM
> To: [EMAIL PROTECTED]
> Subject: Validating forms with the validator
>
>
>
> Hi All,
> I'm trying to use the "Struts Validator"
> (http://home.earthlink.net/~dwinterfeldt/overview.html), but there are no
> examples with Struts 1.1 b1.
> Somebody have some example (.war) ?
> Thanks !
> William.
>
>
> _
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp.
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


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




Validating forms with the validator

2002-06-07 Thread William W


Hi All,
I'm trying to use the "Struts Validator" 
(http://home.earthlink.net/~dwinterfeldt/overview.html), but there are no 
examples with Struts 1.1 b1.
Somebody have some example (.war) ?
Thanks !
William.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: