wood burning stoves 2.0*
The moose likes Tomcat and the fly likes How to Monitoring Tomcat for read Methods which Executed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to Monitoring Tomcat for read Methods which Executed?" Watch "How to Monitoring Tomcat for read Methods which Executed?" New topic
Author

How to Monitoring Tomcat for read Methods which Executed?

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi friends..

I have any problem.. Iam trying to build simple Ajax application by using XMLHttpRequest and Servlet..
I am really confused how to know that the action which executed by XMLHttpRequest in my method .. could ran well or not..
Iam confused to know that the method executed appropriate with my plan..

iam using Tomcat 6..
is it possible to monitor tomcat for read any methods and parameters which handled by tomcat?

Thanks in advance...

Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

An Ajax request is just like any other request. Why do you need to know the difference?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Thanks @Bear for your reply..

Actually, i just want to know whether my method could ran well or not..
i have write some Ajax's method which call Servlet and pass parameters..
but i can't "debug" the Ajax's Method , so i don't know that the Ajax's method could ran well or not...
i thought maybe it could solved by monitoring tomcat to see whether the Ajax's method work appropriate with my plan or not..

or maybe is there any tools for debugging Javascript?
i wanna trace it per line of code..

Thanks in advance @Bear..
srinivas srinivasmeenavalli
Ranch Hand

Joined: Jul 13, 2008
Posts: 65
best way of debugging AJax is javascript alsert windows.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
A great tool to check on the operation of JavaScript and the rest of a browser's treatment of your data is the Firefox browser and one of the many free plugins, for example FireBug.

Bill
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

srinivas srinivasmeenavalli wrote:best way of debugging AJax is javascript alsert windows.

Not really; as mentioned Firebug is a great tool for debugging JavaScript. Some IDEs now have browser integration that allow JS debugging from directly within the IDE as well.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

srinivas srinivasmeenavalli wrote:best way of debugging AJax is javascript alsert windows.

Alerts are, in fact, the worst way to try and debug JavaScript. Not only do they give little information, they actually get int he way when dealing with tim-sensitive issues and events.

Use a debugger as William and David have pointed out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Monitoring Tomcat for read Methods which Executed?