Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-09 Thread Jay Sheth
HI,
I have a problem here too. I dont understand how to configure this for
tomcat5.5.9 which uses the UI for running it. The link which you
mentioned has remedy for older tomcat, which uses files for
configuration.

Any help would be great.

Jay

On 8/8/05, Ed Griebel [EMAIL PROTECTED] wrote:
 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

Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-09 Thread Ed Griebel
I haven't used 5.5.9, but my guess is that the gui is just a
pointy-clicky front end for some scripts and one can still launch it
with a shell script or batch file. Maybe take a look in
tomcat_home/bin for launcher scripts.

On 8/9/05, Jay Sheth [EMAIL PROTECTED] wrote:
 HI,
 I have a problem here too. I dont understand how to configure this for
 tomcat5.5.9 which uses the UI for running it. The link which you
 mentioned has remedy for older tomcat, which uses files for
 configuration.
 
 Any help would be great.
 
 Jay
 
 On 8/8/05, Ed Griebel [EMAIL PROTECTED] wrote:
  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

Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-09 Thread GRamani
Well, not only that, if you want eclipse to play nice with tomcat (and 
have eclipse obey break points and what not), then you in fact start 
tomcat from within eclipse, right? I have been doing this for a while now 
so I don't see what the problem could be..?

Would something like this link help:
http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/

Geeta




Ed Griebel [EMAIL PROTECTED] 
08/09/2005 01:26 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?} Re: {Spam?} validate() not called






I haven't used 5.5.9, but my guess is that the gui is just a
pointy-clicky front end for some scripts and one can still launch it
with a shell script or batch file. Maybe take a look in
tomcat_home/bin for launcher scripts.

On 8/9/05, Jay Sheth [EMAIL PROTECTED] wrote:
 HI,
 I have a problem here too. I dont understand how to configure this for
 tomcat5.5.9 which uses the UI for running it. The link which you
 mentioned has remedy for older tomcat, which uses files for
 configuration.
 
 Any help would be great.
 
 Jay
 
 On 8/8/05, Ed Griebel [EMAIL PROTECTED] wrote:
  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

Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-09 Thread Ed Griebel
No, not at all, it doesn't matter where tomcat is started from. As
long as tomcat was started with JDWP debugging, you can connect up
with any recent java debugger. Your tomcat can be in China and your
debugging session in NYC, it just doesn't matter, and it certainly
doesn't have to be in the same JVM.

Try googling for JDWP and/or JPDA, or see
http://java.sun.com/products/jpda/ or
http://jakarta.apache.org/tomcat/faq/development.html

-ed

On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Well, not only that, if you want eclipse to play nice with tomcat (and
 have eclipse obey break points and what not), then you in fact start
 tomcat from within eclipse, right? I have been doing this for a while now
 so I don't see what the problem could be..?
 
 Would something like this link help:
 http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
 
 Geeta
 


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



Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-09 Thread GRamani
oh ok I see where you are coming from.. I didn't know about this remote 
debugging thing so it's good info..:) However, I didn't think the original 
poster had this situation at all.. or maybe i grossly 
misunderstood...(been known to happen..;))




Ed Griebel [EMAIL PROTECTED] 
08/09/2005 01:43 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?} Re: {Spam?} Re: {Spam?} validate() not 
called






No, not at all, it doesn't matter where tomcat is started from. As
long as tomcat was started with JDWP debugging, you can connect up
with any recent java debugger. Your tomcat can be in China and your
debugging session in NYC, it just doesn't matter, and it certainly
doesn't have to be in the same JVM.

Try googling for JDWP and/or JPDA, or see
http://java.sun.com/products/jpda/ or
http://jakarta.apache.org/tomcat/faq/development.html

-ed

On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Well, not only that, if you want eclipse to play nice with tomcat (and
 have eclipse obey break points and what not), then you in fact start
 tomcat from within eclipse, right? I have been doing this for a while 
now
 so I don't see what the problem could be..?
 
 Would something like this link help:
 
http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/

 
 Geeta
 


-
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.


Re: {Spam?} Re: {Spam?} validate() not called

2005-08-08 Thread GRamani
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

Re: {Spam?} Re: {Spam?} validate() not called

2005-08-08 Thread Jay Sheth
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

Re: {Spam?} Re: {Spam?} validate() not called

2005-08-08 Thread Dave Newton

Jay Sheth wrote:


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...
 


What do the validation.xml configs look like?

Dave



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



Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-08 Thread GRamani
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

Re: {Spam?} Re: {Spam?} validate() not called

2005-08-08 Thread Jay Sheth
I have mapped only for the update**form (the one which works)...
formset

form name=UpdateOverridePageForm

field property=duration
depends=requiredif
arg0   key=errors.duration.required/
var
var-namefield[0]/var-name
var-valueedit_delete/var-value
  /var
  var
var-namefieldTest[0]/var-name
var-valueEQUAL/var-value
  /var
  var
var-namefieldValue[0]/var-name
var-value2/var-value
  /var
var
var-namefieldValue[0]/var-name
var-value2/var-value
  /var
  
/field

field property=earliest_start
depends=requiredif
arg0   key=errors.arrive.required/
var
var-namefield[0]/var-name
var-valueedit_delete/var-value
  /var
  var
var-namefieldTest[0]/var-name
var-valueEQUAL/var-value
  /var
  var
var-namefieldValue[0]/var-name
var-value2/var-value
  /var
/field

field property=latest_start
depends=requiredif
arg0   key=errors.complete.required/
var
var-namefield[0]/var-name
var-valueedit_delete/var-value
  /var
  var
var-namefieldTest[0]/var-name
var-valueEQUAL/var-value
  /var
  var
var-namefieldValue[0]/var-name
var-value2/var-value
  /var
/field

field property=location
depends=requiredif
arg0   key=errors.location/
var
var-namefield[0]/var-name
var-valueedit_delete/var-value
  /var
  var
var-namefieldTest[0]/var-name
var-valueEQUAL/var-value
  /var
  var
var-namefieldValue[0]/var-name
var-value2/var-value
  /var
/field

/form

/formset 

I had also mapped for the maintain...but removed it...it doesnt work
even with it...

for maintain it was similar with one more field..

Jay

On 8/8/05, Dave Newton [EMAIL PROTECTED] wrote:
 Jay Sheth wrote:
 
 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...
 
 
 What do the validation.xml configs look like?
 
 Dave
 
 
 
 -
 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]



Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-08 Thread Jay Sheth
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

Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called

2005-08-08 Thread Ed Griebel
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