Two questions immediately come to mind from what you documented: 1. Does com.hp.ipg.ne.pgpm.forms.orgForm extend org.apache.struts.validator.ValidatorForm or org.apache.struts.validator.ValidatorActionForm
2. The 'input="org_edit.jsp" is context sensitive. Can you reach org_edit.jsp from the same level as your /org_insert.do action? *** This sounds like the problem since you wrote you're seeing a blank html page, as if it cannot find the JSP page. Regards, David -----Original Message----- From: LACKEY,DAVID (HP-PaloAlto,ex1) [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 1:58 AM To: Struts Users Mailing List Subject: Struts & Validator question All, I posted this a few hours ago on the jakarta-commons list and have not come up with a solution yet. I decided to commit the sin of x-posting it here since this may very well be a struts issue. I hope this is not a newbie question. I have RTFM several times. I suspect I must be missing something simple. I have installed Tomcat 4.1.29 and Struts 1.1 with the Validator included. I have configured my installation as follows struts-config.xml: <form-bean name="orgForm" type="com.hp.ipg.ne.pgpm.forms.orgForm"/> . . . <!-- Insert a new Org into the database --> <action path="/org_insert" name="orgForm" type="com.hp.ipg.ne.pgpm.actions.orgInsertAction" scope="request" validate="true" input="org_edit.jsp" > <forward name="show_list" path="/org_list.do" /> <forward name="error" path="/GeneralError.do" /> </action> . . . <message-resources parameter="com.hp.ipg.ne.pgpm.application"/> . . . <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/> </plug-in> Validation.xml: <form-validation> <formset> <form name="orgForm"> <field property="orgCode" depends="required"> <arg0 key="orgForm.OrgCode"/> </field> </form> </formset> </form-validation> Application:properties: errors.required={0} is required. In the org_edit.jsp file contains the following code snippet: <logic:messagesPresent> <bean:message key="errors.header"/> <ul> <html:messages id="error"> <li><bean:write name="error"/></li> </html:messages> </ul><hr> </logic:messagesPresent> I have stepped through the execution several times and see the validator being activated. I even see the failed validation (empty field). However, after the failed validation, it seems validator is unable to construct a proper forward to send me back to the JSP page where the error was entered (or not entered in this case). I am simply forwarded to a nearly blank page with minimal <html> and <body> tags. I have tried changing the input parameter to point at a global & local forward as well as an Action forward. None of them succeed. However, when pointed at a forward the browser does display a message indicating that the server was unable to look up a mapping for an action named "/misc". The characters "misc" do not appear anywhere in my struts-config.xml file. I am guessing this must be some kind of default behavior. Any thoughts would be appreciated. David Lackey [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]