Re: Validator Framework Questions

2003-06-15 Thread Thomas Miskiewicz
Dan, > change your strut config to use > org.apache.struts.validator.DynaValidatorForm That helped. Could you or someone please else answer my questions regarding the validator framework itself? Is it part of Struts framework or not (I'm using the 1.1 rc2). What steps are required to setup and use

Validator Framework Questions

2003-06-15 Thread Thomas Miskiewicz
Hello! Reading a Struts book I wanted to give the validator framework a whirl. Since it's poorly described in the book I checked out Struts website. I wonder if when we speak about automatic form validation, then if do we mean the validator from the website http://home.earthlink.net/~dwinterfeldt

Re: Validation Problem

2003-06-08 Thread Thomas Miskiewicz
David, > Well, these validations have already been coded for you and can be > configured in an xml file by using the Validator. I highly recommend you > look into using the validator because it will save you a bunch of time. I'll do soon. I getting acquainted with Struts working with the book Pr

Validation Problem

2003-06-08 Thread Thomas Miskiewicz
Hi! I now have a strange validation problem. I use this ActionForm class: package com.mycompany; import org.apache.struts.action.Action; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.str

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
Hello! > public class PostTest extends Action > { > public ActionForward perform(ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > { >return (mapping.findForward("posttest.success")); > } > > } >

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
> > > > Why? What's wrong with the type? > > name="postTestForm" > > scope="request" > > validate="true" > > type="com.mycompany.PostTestForm"> > You've definately gone wrong with the type here, the > type="..." should specify an Action not a

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
> I am new to Struts and learning myself but from what I have read the > input attribute is for validation if the form/Action fails it will > send it back to the view. My book states: "input - Used to define where the user should be redirected, if a validation error occurs. Usually, the user is red

Re: Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
Marco, > >> input="/WEB-INF/jsp/postTest.jsp" > > name="postTestForm" > > scope="request" > > validate="true" > > type="com.mycompany.PostTestForm"> > > path="/execute/homePageSetup"/> > > > the input elememe

Struts doesn't execute my ActionForm.

2003-06-08 Thread Thomas Miskiewicz
Hi! I have a small HTML-Form with 3 textfields. I've implemented the validation rules in the validate() method of the ActionForm belonging to the html form. Unfortunately Struts isn't using the ActionForm. Why? Here my struts-config.xml http://jakarta.apache.org/struts/dtds/struts-config_1_1.dt