hi! maybe the reason is that in your html you have references to some other resources. if a client loads your html, it also needs to request these other resources (e.g. images, css-files) from your server, your servlet is mapped to get all requests in its context so it also gets those requesting other files. this would explain n calls to your servlet, if n resources are referenced in the html code your servlet served, not thousands of them...
hope this helps! -mw At 15:35 16.04.2002 +1000, you wrote: >Hello all, >I wanted to serve everything in the root >directory(html, jsp) through this EntryServlet, in >which I do some counting and various stuff. > >I thought the way to map a servlet to the root was: > ><servlet> > <servlet-name>entry</servlet-name> > <servlet-class>common.EntryServlet</servlet-class> ></servlet> > ><servlet-mapping> > <servlet-name>entry</servlet-name> > <url-pattern>/*</url-pattern> ></servlet-mapping> > > >But when I do that, I think it makes recursive call to >itself, because my debug message in doGet message gets >printed on the tomcat console like a thousand times >and tells me that stack overflowed. > >What am I doing wrong? > > >http://messenger.yahoo.com.au - Yahoo! Messenger >- A great way to communicate long-distance for FREE! > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
