Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

plz guide me- one-instance-per-servlet

 
Amit Madan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have read this in servletprogramming book.
" each registered name for servlet is associated with one instance of the servlet."
plz guide me in details what is mean by "registered name " .
thx
 
haitham raik
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the registration here means that the servlet is declared in the web.xml as the following:
<web-app>
...
<servlet>
<servlet-name>servlet name</servlet-name>
<servlet-class>servlet.name</servlet-class>
</servlet>
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by haitham raik:
I think the registration here means that the servlet is declared in the web.xml as the following:
<web-app>
...
<servlet>
<servlet-name>servlet name</servlet-name>
<servlet-class>servlet.name</servlet-class>
</servlet>


right.
just attested haitham's response, now you can take it for sure.
cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic