• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

two questions about servlet.

 
Anna Wang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, everyone,
1)

Can anybody explain what is the difference between http methods GET and PUT.

2)

About the servlet constructor, usually we don't write our own constructor, right? Why is there an init() method? Why isn't the constructor enough for initializing a servlet? I am confused with constructor, can anybody give me some details?

I am just reading HFSJ. It is a little bit hard to understand some concepts. I may need a lot of help in the future. Thanks a lot in advance.

Anna
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reply to question 2 is in the Servlet FAQ:
http://faq.javaranch.com/view?ServletsFaq
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic