File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how to check jsp calls in browser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to check jsp calls in browser?" Watch "how to check jsp calls in browser?" New topic
Author

how to check jsp calls in browser?

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
hi,

can anyone tell me, how to check which page is calling which jsp in browser?
is there any plugin or add on for that?

Thanks
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Sorry but not following you. Would you please explain it again?
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
Okay, let say : i opened one webpage, i need to know which jsp file and method is called in that page, how can i do that?
all this i need, to debug our application.
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
eventually what i need to know is, how to debug a jsp file?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Fire up a debugger, and connect to the servlet container in question? Most IDEs support JSP debugging these days.


Ping & DNS - updated with new look and Ping home screen widget
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

I hope your JSP files aren't filled with Java code, are they?
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
Hussein Baghdadi wrote:I hope your JSP files aren't filled with Java code, are they?


Yes they are filled with java code.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Then pretty soon Bear will come down on you and ask why on earth you're still doing that Java code has no place in a JSP.
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
Ulf Dittmer wrote:Then pretty soon Bear will come down on you and ask why on earth you're still doing that Java code has no place in a JSP.


:P
yeah i know in almost each thread he said this. :P
but are using java in so many jsp's in our product and can't change it right away.
i remembered in one thread (started by someone else), bear replied one firefox addon, but not able to re-cal
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
Not sure, but it had Fox somewhere in it's name.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
I hope you are using a browser instrumented with plugins so that you can find out exactly how the HTML is constructed by your JSP and what the browser requests contain.

Say FireFox with FireBug and Live HTTP headers - there may be better plugins but those are what I have.

Bill

Java Resources at www.wbrogden.com
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
Yup, i got it.
in chrome also it's quite easy, we can check it easily by going into network tab in the developers tools. :)

Thanks all. :) :)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

OK, so I don't need to repeat how bad a practice it is to be using scriptlets! Difficulty in debugging is just one of the very many reasons that they have been obsolete for over 12 years.

The plugin I mentioned was HttpFox and it will show you all the requests and response made; but not method calls. You'll need to use a debugger as Ulf has already mentioned.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
Bear Bibeault wrote:OK, so I don't need to repeat how bad a practice it is to be using scriptlets! Difficulty in debugging is just one of the very many reasons that they have been obsolete for over 12 years.

The plugin I mentioned was HttpFox and it will show you all the requests and response made; but not method calls. You'll need to use a debugger as Ulf has already mentioned.



Yeah HttpFox..
Thanks bear.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to check jsp calls in browser?
 
Similar Threads
Spell check on webpage
JSP lifecycle
Spell check on webpage
Checking browser version & JavaScript enabled
HTTPS: behind the scenes with real life example