You don't need to have "tomcat work with eclipse" to debug action
classes. All you need is to make changes to the tomcat startup file to
enable JDWP debugging on a socket, and then tell eclipse to start
debugging at the socket and hostname if on a different host or
localhost if same box. Set a breakpoint in your project's source, and
you'll be all set.

see the first few links here: http://www.google.com/search?q=xrunjdwp+tomcat

-ed

On 8/8/05, Jay Sheth <[EMAIL PROTECTED]> wrote:
> I cannot do that, since the 2 forms are having different fields.
> 
> Somehow the tomcat 5.5.9 doesnt work with eclipse for my project. I am
> using ui to start tomcat.
> 
> thanks anyways.
> 
> Jay
> 
> On 8/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Do you use an IDE for development? Like eclipse or something? If you
> > don't, I would suggest you do because then you could set breakpoints and
> > debug that way.. System.out.printlns aren't the best way to debug - as you
> > are probably finding out..:)
> >
> > One more thing you could do is the following: change the
> > MaintainRecurringTasksPageForm in struts-config.xml to also point to
> > tasks.form.UpdateOverridePageForm. Restart to ensure you change "took" and
> > try again. Do you hit the validate method now?
> >
> >
> >
> >
> > Jay Sheth <[EMAIL PROTECTED]>
> > 08/08/2005 04:12 PM
> > Please respond to
> > "Struts Users Mailing List" <user@struts.apache.org>
> >
> >
> > To
> > Struts Users Mailing List <user@struts.apache.org>
> > cc
> >
> > Subject
> > {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
> >
> >
> >
> >
> >
> >
> > checked that...
> >                                 <form-bean
> > name="MaintainRecurringTasksPageForm"
> > type="tasks.form.MaintainRecurringTasksPageForm"/>
> >
> >                                 <form-bean name="UpdateOverridePageForm"
> > type="tasks.form.UpdateOverridePageForm"/>
> >
> > Any other hints ? Is there a way to debug or something...?
> >
> > Just one more thing to tell...I have mapped the form for
> > updateoverridepageform in validation.xml but not mapped
> > maintain**form. Even if i map that doesnt help...
> >
> > I think there is some other mistake...but hard to find...any other
> > hints would help.
> >
> > Jay
> >
> >
> > On 8/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Hi Jay:
> > >
> > > So the form beans you are using in both cases are different. So are you
> > > sure these two form bean names are mapped to the correct classes in your
> > > struts-config.xml?
> > >
> > > i.e. check what <form-bean name="UpdateOverridePageForm".. and
> > <form-bean
> > > name="MaintainRecurringTasksPageForm".. map to and see if you haven't
> > made
> > > a mistake there..
> > >
> > > hth,
> > > Geeta
> > >
> > >
> > >
> > >
> > > Jay Sheth <[EMAIL PROTECTED]>
> > > 08/08/2005 03:57 PM
> > > Please respond to
> > > "Struts Users Mailing List" <user@struts.apache.org>
> > >
> > >
> > > To
> > > Struts Users Mailing List <user@struts.apache.org>
> > > cc
> > >
> > > Subject
> > > {Spam?} Re: {Spam?} validate() not called
> > >
> > >
> > >
> > >
> > >
> > >
> > > 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]
> > >
> > >
> > > --
> > > 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]
> >
> >
> > --
> > 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]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to