Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to check jsp calls in browser?

 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry but not following you. Would you please explain it again?
 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eventually what i need to know is, how to debug a jsp file?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fire up a debugger, and connect to the servlet container in question? Most IDEs support JSP debugging these days.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope your JSP files aren't filled with Java code, are they?
 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure, but it had Fox somewhere in it's name.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic