This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes servlet called multiple times Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "servlet called multiple times" Watch "servlet called multiple times" New topic
Author

servlet called multiple times

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
my FirstServlet class is mapped to url pattern "/" (without quotation mark), so when I tried to call from browser with url localhost/myapp, I notice the service method was invoked three times. why is this? the content of the service method is a one liner : System.out.println("invoked");
the jsp has nothing inside :

why is this?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: servlet called multiple times
 
Similar Threads
How to pass input values to the JSP using POST method
href and onbeforeunload
Why the getter method of managed-bean was invoked twice?
Where to invoke AJAX code to ask user if they want to extend session?
How to pass input values to the JSP using POST method