Re: debugging tomcat with eclipse

2005-08-30 Thread Jay Sheth
Thanks a lot. I had to add the source to the path.

Regards,
Jay

On 8/28/05, zheng chengbao <[EMAIL PROTECTED]> wrote:
> 
> i'am using myeclipse,it is very easy to debug
> 
> 2005/8/27, Jay Sheth <[EMAIL PROTECTED]>:
> >
> > HI,
> >
> > It would be great if you could give some hints on how to debug tomcat
> > with eclipse.
> >
> > I have tried the following:
> >
> > * Running tomcat with option jpda start and then running a remote java
> > application to debug but doesn't work.
> > * Running the tomcat application with start option. When I run the
> > webapp, the break point is caught in the code, however it doesn't let
> > me evaluate expression/ see the details of variable, saying "The
> > selected stack frame must be associated with a java project in the
> > workspace to perform an evaluation".
> >
> >
> > The project is already in eclipse. We are copying the jar file to the
> > tomcat lib folder and then running the tomcat app.
> >
> > Any help / pointers would be useful.
> >
> > Thanks,
> > Jay
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
>


debugging tomcat with eclipse

2005-08-26 Thread Jay Sheth
HI,

It would be great if you could give some hints on how to debug tomcat
with eclipse.

I have tried the following:

* Running tomcat with option jpda start and then running a remote java
application to debug but doesn't work.
* Running the tomcat application with start option. When I run the
webapp, the break point is caught in the code, however it doesn't let
me evaluate expression/ see the details of variable, saying "The
selected stack frame must be associated with a java project in the
workspace to perform an evaluation".
 

The project is already in eclipse. We are copying the jar file to the
tomcat lib folder and then running the tomcat app.

Any help / pointers would be useful. 

Thanks,
Jay

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



Re: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Thanks a lot. Got it. As you said, the naming conventions were
followed, but I made a typo in the property attribute.

Sorry for the trouble.

Jay

On 8/16/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Jay Sheth wrote:
> 
> >HI,
> >When i do :
> >
> >
> >
> >
> >it says not getter for employeeName in bean rtsummary.
> >'recurringTaskSummary' is a vector and not a bean.
> >I tried using the attribute type="SpRecurringTaskSummary" but got the
> >same error.
> >
> >I think I am missing the big picture or something basic in logic:iterate.
> >
> >
> (1) The 'type' attribute expects a full classname, but that's probably
> not relevant here.
> (2) What he was saying was that the Vector's objects must follow
> JavaBean naming conventions.
> 
> 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: accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
HI,
When i do :




it says not getter for employeeName in bean rtsummary. 
'recurringTaskSummary' is a vector and not a bean. 
I tried using the attribute type="SpRecurringTaskSummary" but got the
same error.

I think I am missing the big picture or something basic in logic:iterate.

Thanks,

Jay


On 8/16/05, Stéphane Zuckerman <[EMAIL PROTECTED]> wrote:
> Hi Jay,
> > session.setAttribute("recurringTaskSummary",v_recurringTaskSummary),
> 
> > SpRecurringTaskSummary [...] has certain variables such as
> > EmployeeName, EmployeeRef etc.
> >
> > I am using logic:iterate as follows:
> > 
> > 
> > 
> >
> > The output is name of objects. However I want to somehow access the
> > variables employeename, employeeref etc. How do I do that ?
> 
> Just do something like :
> 
> 
>
> 
> 
> Don't forget to use the bean naming conventions, though.
> 
> --
> Stéphane ZUCKERMAN
> 
> -
> 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]



accessing variables using logic:iterate

2005-08-16 Thread Jay Sheth
Hi,
Currently I have a action class which does
session.setAttribute("recurringTaskSummary",v_recurringTaskSummary),
where v_recurringTaskSummary is a vector of type
SpRecurringTaskSummary which has certain variables such as
EmployeeName, EmployeeRef etc.

I am using logic:iterate as follows:




The output is name of objects. However I want to somehow access the
variables employeename, employeeref etc. How do I do that ?

Thanks,
Jay

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



RE: validate() not called haunts

2005-08-10 Thread Jay Sheth
well,
I have given up on calling the validate(), I have checked method sign etc...

now i am renaming the validate to another method name e.g.
validate_fields. I am calling the validate_fields from action. and
using addErrors in action to add messages to jsp.

Thanks,
Jay

On 8/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> That's right!!! I mean about the method signature!! I meant to write that
> to you and then something else intervened and i forgot.. Yes, so do that
> and let us know..:)
> 
> Geeta
> 
> "Duane Rosengartner" <[EMAIL PROTECTED]> wrote on 08/10/2005
> 02:51:42 PM:
> 
> >  >> p. Now i have got the debugging working. But
> > Since debugging is working, try catching a breakpoint where validate is
> > being called, then step-into...
> > My best guess is the method signatures need to be verified. INO, are you
> > overridding validate or overloading? You may be invoking the superclass
> > validate instead of the intended forms' validate. If all else fails,
> > place a breakpoint/sys.out in Struts' ActionForm.validate to see if it's
> > getting there.
> >
> > Happy debugging,
> > Duane
> >
> > -Original Message-
> > From: Jay Sheth [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 10, 2005 9:23 AM
> > To: Struts Users Mailing List
> > Subject: validate() not called haunts
> >
> > Hi,
> > Thanks for all the help. Now i have got the debugging working. But still
> > the problem remains, validate() not being called. I tried all
> > combinations...I made a simple action and form without any business
> > logic etc...but i dont understand why validate method is being called in
> > only a single form and not being called for any other forms.
> >
> > Most weird error.
> >
> > Even if I call validate from the corresponding action, it does not get
> > called. However if I rename the validate method by another method e..g
> > update then I can call the update method from action.
> >
> > Is there a way that the action errors created can be shown as error by
> > jsp page ?
> >
> > Heres the code ;
> > **action
> > form.update(mapping,request); // form.validate() doesnt get called so i
> > renamed
> > to update()
> >
> > **form
> > public ActionErrors update(ActionMapping mapping, ServletRequest
> > request) {
> >  super.validate(mapping,servlet);
> > errors = new ActionErrors();
> > if (nullOrBlank(m_location)) {
> > errors.add("Location",new
> > ActionError("errors.location.required"));
> >  }
> > return new ActionErrors();
> > }
> >
> > So basically the action class can get the errors, but how should i
> > display that errors on jsp (This is all because validate() not being
> > called).
> >
> > 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]



validate() finally called !!!!!!!

2005-08-10 Thread Jay Sheth
Hi,
Thanks for all the help. Any1 wont believe what a silly mistake. I
forgot to add the  tag in the jsp page.

I found out by when reading doc for the addErrors().

Thanks once again.

Jay

On 8/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Gareth Evans <[EMAIL PROTECTED]> wrote on 08/10/2005 10:28:31 AM:
> 
> > You could manually set the errors in the page within your action
> > with the method
> >
> > addErrors( request , form.update(mapping,request) );
> >
> > the addErrors method is already defined in the class Action.
> 
> It is saveErrors(request,..etc. isn't it?
> Also, I think you're supposed to ActionMessages instead of ActionErrors..
> 
> Geeta
> 
>

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



validate() not called haunts

2005-08-10 Thread Jay Sheth
Hi,
Thanks for all the help. Now i have got the debugging working. But
still the problem remains, validate() not being called. I tried all
combinations...I made a simple action and form without any business
logic etc...but i dont understand why validate method is being called
in only a single form and not being called for any other forms.

Most weird error. 

Even if I call validate from the corresponding action, it does not get
called. However if I rename the validate method by another method e..g
update then I can call the update method from action.

Is there a way that the action errors created can be shown as error by
jsp page ?

Heres the code ; 
**action
form.update(mapping,request); // form.validate() doesnt get called so i renamed
to update()

**form
public ActionErrors update(ActionMapping mapping, ServletRequest request) {
 super.validate(mapping,servlet);
errors = new ActionErrors();
if (nullOrBlank(m_location)) {  
errors.add("Location",new
ActionError("errors.location.required"));
}
return new ActionErrors();
} 

So basically the action class can get the errors, but how should i
display that errors on jsp (This is all because validate() not being
called).

Jay

On 8/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 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" 
> 
> 
> To
> Struts Users Mailing List 
> 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.
> 
>

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



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" 
> > >
> > >
> > > To
> > > Struts Users Mailing List 
> > > cc
> > >
> > > Subject
> > > {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
> > >
> > >
> > >
> > >
> > >
> > >
> > > checked that...
> > >  > > name="MaintainRecurringTasksPageForm"
> > > type="tasks.form.MaintainRecurringTasksPageForm"/>
> > >
> > >  > > 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  > >  > > > 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" 
> > > >
> > > >
> > > > To
> > > > Struts Users Mailing List 
> > > > 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:
> > > >
> > > >  > > >path="/updateOverride"
> > > >type="tasks.action.UpdateOverridePageAction"
> > > >scope="request&

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" 
> 
> 
> To
> Struts Users Mailing List 
> cc
> 
> Subject
> {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
> 
> 
> 
> 
> 
> 
> checked that...
>  name="MaintainRecurringTasksPageForm"
> type="tasks.form.MaintainRecurringTasksPageForm"/>
> 
>  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   > 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" 
> >
> >
> > To
> > Struts Users Mailing List 
> > 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:
> >
> >  >path="/updateOverride"
> >type="tasks.action.UpdateOverridePageAction"
> >scope="request"
> >name="UpdateOverridePageForm"
> >attribute="UpdateOverridePageForm"
> >parameter="updateOverride"
> >validate="true"
> >  input="/jsp/tasks/UpdateOverridePage.jsp">
> > >   path="/jsp/tasks/UpdateOverridePage.jsp" />
> >
> >
> > 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 :
> >  >path="/maintainRecurringTasks"
> >type="tasks.action.MaintainRecurringTasksPageAction"
> >scope="request"
> >name="MaintainRecurringTasksPageForm"
> >attribute="MaintainRecurringTasksPageForm"
> >parameter="maintainRecurringTasks"
> >validate="true">
> > >   path="/jsp/tasks/MaintainRecurringTasks.jsp" />
> >
> >
> > 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 ");
> >
> &

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







field[0]
edit_delete
  
  
fieldTest[0]
EQUAL
  
  
fieldValue[0]
2
  

fieldValue[0]
2
  
  





field[0]
edit_delete
  
  
fieldTest[0]
EQUAL
  
  
fieldValue[0]
2
  





field[0]
edit_delete
  
  
fieldTest[0]
EQUAL
  
  
fieldValue[0]
2
  





field[0]
edit_delete
  
  
fieldTest[0]
EQUAL
  
  
fieldValue[0]
2
  




 

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?} validate() not called

2005-08-08 Thread Jay Sheth
checked that...




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  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" 
> 
> 
> To
> Struts Users Mailing List 
> 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:
> 
> path="/updateOverride"
>type="tasks.action.UpdateOverridePageAction"
>scope="request"
>name="UpdateOverridePageForm"
>attribute="UpdateOverridePageForm"
>parameter="updateOverride"
>validate="true"
>  input="/jsp/tasks/UpdateOverridePage.jsp">
>   path="/jsp/tasks/UpdateOverridePage.jsp" />
>
> 
> 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 :
> path="/maintainRecurringTasks"
>type="tasks.action.MaintainRecurringTasksPageAction"
>scope="request"
>name="MaintainRecurringTasksPageForm"
>attribute="MaintainRecurringTasksPageForm"
>parameter="maintainRecurringTasks"
>validate="true">
>   path="/jsp/tasks/MaintainRecurringTasks.jsp" />
>
> 
> 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" 
> >
> >
> > To
> > Struts Users Mailing List 
> > 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 :
> >  >path="/maintainRecurringTasks"
> >type="tasks.action.MaintainRecurringTasksPageAction"
> >scope="request"
> >name="Main

Re: {Spam?} validate() not called

2005-08-08 Thread Jay Sheth
I am using the system.out. in both classes validate() and checking it out.

The working codes struts config & class: 

 



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 : 




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" 
> 
> 
> To
> Struts Users Mailing List 
> 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 :
> path="/maintainRecurringTasks"
>type="tasks.action.MaintainRecurringTasksPageAction"
>scope="request"
>name="MaintainRecurringTasksPageForm"
>attribute="MaintainRecurringTasksPageForm"
>parameter="maintainRecurringTasks"
>validate="true">
>   path="/jsp/tasks/MaintainRecurringTasks.jsp" />
>
> 
> 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]



validate() not called

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




Thanks,

Jay

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



Re: retrieving message from application.resources file

2005-08-08 Thread Jay Sheth
thnks a lot. it worked !!!

Jay

On 8/8/05, Gareth Evans <[EMAIL PROTECTED]> wrote:
>  From an Action class you can use:
> String dateFormat = getResources( request ).getMessage( "global.format.date" 
> );
> 
> Or from anywhere else:
> String dateFormat = MessageResources.getMessageResources( 
> "ApplicationResources" ).getMessage(
> "global.format.date" )
> 
> I'm not sure how well this works with struts modules?
> 
> Gareth
> 
> 
> Jay Sheth wrote:
> 
> > Hi,
> > I need to read a property global.format.date = dd/mm/ in a form
> > class (eg logonform.java) from application.properties file.
> >
> > How do i do tht ?
> >
> > thanks,
> > Jay
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> Gareth Evans
> 
> MSoft eSolutions Limited
> Technology Centre
> Inward Way
> Rossmore Business Park
> Ellesmere Port
> Cheshire
> CH65 3EN
> 
> --
> Tel:+44 (0)870 0100 704
> Fax:+44 (0)870 9010 705
> E-Mail: [EMAIL PROTECTED]
> Web:www.msoft.co.uk
> 
> --
> Terms:
> Please note that any prices quoted within this e-mail are subject to VAT.
> All program details and code described in this e-mail are subject to
> copyright (c) of MSoft eSolutions Limited and remain the intellectual
> property of MSoft eSolutions Limited.
> Any proposal or pricing information contained within this e-mail are
> subject to MSoft eSolutions' Terms and Conditions
> --
> Disclaimer:
> This message is intended only for use of the addressee. If this message
> was sent to you in error, please notify the sender and delete this
> message. MSoft eSolutions Limited cannot accept responsibility for viruses,
> so please scan attachments. Views expressed in this message do not
> necessarily reflect those of MSoft eSolutions Limited who will not
> necessarily be bound by its contents.
> 
> 
> -
> 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]



retrieving message from application.resources file

2005-08-08 Thread Jay Sheth
Hi,
I need to read a property global.format.date = dd/mm/ in a form
class (eg logonform.java) from application.properties file.

How do i do tht ?

thanks,
Jay

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



retrieving message from application.resources file

2005-08-08 Thread Jay Sheth
Hi,
I need to read a property global.format.date = dd/mm/ in a form
class (eg logonform.java) from application.properties file.

How do i do tht ?

thanks,
Jay

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