Meaningless Drivel is fun!*
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
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: 1000
    
    2
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: 3479

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

Joined: Aug 20, 2011
Posts: 1000
    
    2
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: 1000
    
    2
eventually what i need to know is, how to debug a jsp file?
Ulf Dittmer
Marshal

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


Ping & DNS - my free Android networking tools app
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

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

Joined: Aug 20, 2011
Posts: 1000
    
    2
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: 41839
    
  63
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: 1000
    
    2
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: 1000
    
    2
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: 12783
    
    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
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1000
    
    2
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: 61206
    
  66

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: 1000
    
    2
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?