[Opensource] Struts1.1 and validation
Michael Rimov
rimovm at centercomp.com
Fri Nov 14 15:06:43 PST 2003
At 10:12 PM 11/13/2003, you wrote:
>I am trying to incorporate struts 1.1 validation into expresso
>
>
>I have my config file specified as
>
>default = DefaultForm which extends ActionForm
>
><action path="/Login" type="com.cal.controller.LoginCont" name="default"
>scope="request" validate="false">
> <forward name="promptLogin" path="/jsp/generic_detail_page.jsp"/>
>
>For struts validation -
>i create my own validation bean and need to reference it in my config.xml as
>
><action path="/Login" type="com.cal.controller.LoginCont" name="loginForm"
>scope="request" validate="true">
> <forward name="promptLogin" path="/jsp/generic_detail_page.jsp"/>
>loginForm = LoginForm which extends ValidationForm
>
>when i do this - on calling the state (promptLogin) i get a
>classCastException as LoginForm is not of type DefaultForm.
Eddie,
I need a stack trace there. I use other forms in several 5.3 projects, so
you shouldn't be getting that class cast exception. My guess its that the
'validate' flag is triggering some code somewhere in Expresso.
We'll get this worked out!
-Mike
More information about the Opensource
mailing list