Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes servlet called multiple times Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
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://aspose.com/file-tools
 
subject: servlet called multiple times