• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Monitoring Tomcat for read Methods which Executed?

 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An Ajax request is just like any other request. Why do you need to know the difference?
 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
best way of debugging AJax is javascript alsert windows.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic