I am using the system.out. in both classes validate() and checking it out. The working codes struts config & class:
<action path="/updateOverride" type="tasks.action.UpdateOverridePageAction" scope="request" name="UpdateOverridePageForm" attribute="UpdateOverridePageForm" parameter="updateOverride" validate="true" input="/jsp/tasks/UpdateOverridePage.jsp"> <forward name="success" path="/jsp/tasks/UpdateOverridePage.jsp" /> </action> public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println("validate in update called"); -- This does come in the logs. The not working code : <action path="/maintainRecurringTasks" type="tasks.action.MaintainRecurringTasksPageAction" scope="request" name="MaintainRecurringTasksPageForm" attribute="MaintainRecurringTasksPageForm" parameter="maintainRecurringTasks" validate="true"> <forward name="success" path="/jsp/tasks/MaintainRecurringTasks.jsp" /> </action> public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println("validate in main tain called "); ...basically the same. Even though I use input="/jsp/tasks/MaintainOverridePage.jsp"> it does not help. Basically some silly mistake which i dont understand. Jay On 8/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Jay, > > So how do you know that validate() isn't being called? Have you placed a > break point in your validate and execute methods? Can you send us the > snippets from struts-config.xml for both the classes and tell us which > works and which doesn't? > > Geeta > > > > > Jay Sheth <[EMAIL PROTECTED]> > 08/08/2005 03:31 PM > Please respond to > "Struts Users Mailing List" <user@struts.apache.org> > > > To > Struts Users Mailing List <user@struts.apache.org> > cc > > Subject > {Spam?} validate() not called > > > > > > > Hi, > I am trying to use the validate() by extending the > org.apache.struts.validator.ValidatorForm class. > > The problem is that the validate() is being called for one form class > which I have created, however it is not being called for another > similar form class. There are no errors which compiling etc...so i > dont get to know why it is not being called. > > Any hints on how to debug as to why it is not called ? > > The snippet struts-config.xml is : > <action > path="/maintainRecurringTasks" > type="tasks.action.MaintainRecurringTasksPageAction" > scope="request" > name="MaintainRecurringTasksPageForm" > attribute="MaintainRecurringTasksPageForm" > parameter="maintainRecurringTasks" > validate="true"> > <forward name="success" > path="/jsp/tasks/MaintainRecurringTasks.jsp" /> > </action> > > Thanks, > > Jay > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > > CONFIDENTIALITY NOTICE:This email is intended solely for the person or > entity to which it is addressed and may contain confidential and/or > protected health information. Any duplication, dissemination, action > taken in reliance upon, or other use of this information by persons or > entities other than the intended recipient is prohibited and may violate > applicable laws. If this email has been received in error, please notify > the sender and delete the information from your system. The views > expressed in this email are those of the sender and may not necessarily > represent the views of IntelliCare. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]