• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to Monitoring Tomcat for read Methods which Executed?

 
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • 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...
 
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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: 494
Eclipse IDE Postgres Database Java
  • 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..
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
best way of debugging AJax is javascript alsert windows.
 
Author and all-around good cowpoke
Posts: 13078
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
 
Author
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
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic