In an effort to get this resolved before I go home for the weekend, I have zipped up my application and posted it at the following URL http://www.e-bind.com/plantsec.zip (2.5 mb) I run everything here on Tomcat403. There is a datasource defined in the struts-config, but you probably wont need to get that far to see what the problem is... You should be able to drop this into your web-apps directory The issue is not being able to get the error messages back from DynaFormValidator... (Although something is in there) You have my gratitude -----Original Message----- From: Chmura, William B. Sent: Friday, June 21, 2002 9:31 AM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) I did a logic:messagesPresent and it showed that there was some messages present. Unfortunately neither or
produces any output... ARRRGGGGHHHHHHH..... This is driving me absolutely insane... If I can get this working before the weekend starts I will be ecstatic -----Original Message----- From: dwinterfeldt [mailto:dwinterfeldt@yahoo.com] Sent: Thursday, June 20, 2002 5:01 PM To: struts-user Subject: RE: Validator problem (or user problem... not sure which yet) The change from using multiple set-property elements was made right after beta since it wasn't very clear to call setPathname muliple times. The Validator is run through the ActionForm's validate method and returns a standard ActionErrors object. The additional tags that used to come with the Validator were for features now incorporated into Struts. html:messages - Iterate through messages/errors. logic:messagesPresent - check for the presence of a message/error (can pass in an optional property to check if there is a message/error for an individual field) logic:messagesNotPresent - check for the absence of a message/error David --- wbchmura@Ensign-BickfordInd.com wrote: > > the problem I was having was caused by the > struts-config.xml file > defining the plug in like: > > className="org.apache.struts.validator.ValidatorPlugIn"> > value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml"/> > > > I took a look at the struts blank war and copied > that syntax over which > is like this: > > className="org.apache.struts.validator.ValidatorPlugIn"> > value="/WEB-INF/validator-rules.xml"/> > value="/WEB-INF/validator.xml"/> > > > And it started recognizing my rules. Now I cannot > get it to show error > messages, although it does successfully redirect > back until the > validation requirements are met. Does validator > feed the error messages > into the normal html:errors? I noticed it had a > validator taglib at one > point, but I am not sure where it is now that 1.1b > incorporated alot > > > > -----Original Message----- > From: Chmura, William B. > Sent: Thursday, June 20, 2002 9:46 AM > To: struts-user > Subject: RE: Validator problem (or user problem... > not sure which yet) > > > > Where I have this in my validator.xml file... > > ?1 This means it should give me an error if it is > not filled in? > ?2 Should I have to invoke something from the action > to check it, or is > it just like an actionform? > ?3 What else can I try? Its like its all working, > just ignoring my > validate.xml file or something > > depends="required"> > key="registrationForm.firstname.displayname"/> > > > -----Original Message----- > From: Chmura, William B. > Sent: Wednesday, June 19, 2002 4:54 PM > To: struts-user > Subject: RE: Validator problem (or user problem... > not sure which yet) > > > > Nope... Code runs, but it detects no errors... > > AAARRGGGGGHHHHHHH > > -----Original Message----- > From: Raffy.Lata [mailto:Raffy_Lata@ffic.com] > Sent: Wednesday, June 19, 2002 4:29 PM > To: struts-user > Subject: RE: Validator problem (or user problem... > not sure which yet) > > > > Lot's of stuff in your action class, but I see that > you defined a > DynaValidatorForm in your but you are > casting it as a > DynaActionForm in your action class...if you cast it > correctly as a > DynaValidatorForm and then invoke the validate() > method (like in my > previous email), it might correct the problem...try > it... > > > > > > wbchmura@Ensign-BickfordInd.com on 06/19/2002 > 01:24:28 PM > > Please respond to "Struts Users Mailing List" > > > To: struts-user@jakarta.apache.org > cc: > Subject: RE: Validator problem (or user problem... > not sure which yet) > > > > Here is everything: > > Thanks in advance for any solutions! > > > Struts-config.xml > ============================ > > Foundation//DTD > Struts Configuration 1.1//EN" > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> > > property="autoCommit" value="false" /> property="description" value="MySql" /> property="driverClass" > value="org.gjt.mm.mysql.Driver" /> property="maxCount" value="4" /> property="minCount" > value="2" /> value="vuud" > /> /> property="url" > value="jdbc:mysql://localhost/plantsecurity" > /> > > type="org.apache.struts.validator.DynaValidatorForm" > dynamic="true"> > type="java.lang.String" > initial="" /> > type="java.lang.String" > initial="" /> > type="java.lang.String" initial="" /> > type="java.lang.String" > initial="" /> > type="java.lang.String" > initial="" /> > type="java.lang.String" initial="" /> > type="java.lang.String" initial="" /> > initial="Simsbury" > /> > type="java.lang.String" initial="" /> > initial="" /> > > > > > > forward="plantsec.mainmenu"> path="plantsec.mainmenu" redirect="false" > /> > forward="plantsec.todo" /> > > type="com.ebind.plantsec.create.actionCreateNew" > name="formNewRequest" > validate="true" > input="plantsec.create.new" > scope="request"> > > redirect="false" /> > redirect="false" /> > > > type="com.ebind.plantsec.search.actionSearch" /> > type="com.ebind.plantsec.search.actionSearch" /> > type="com.ebind.plantsec.search.actionSearch" /> > type="com.ebind.plantsec.search.actionSearch" /> > === message truncated === __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: