Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic Servlet Queries

 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Servlet Experts,
I had a few clarifications on Servlets since I'm new to it..your help will be needed.

1> How do 2 web applications communicate with each other using Servlets(other than using Web services).?

2> what do you mean by a servlet implementing a SingleThreadModel Interface.? provide an example.?

3> what are the difference's between GET and POST methods of Request ?

4> what is Load-on-startup in servlets? where and why is it used ?

--
Deepak Lal
[ October 18, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not post in all bold text. I have revised your post for you.
 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me out with the answers...im new to servlets.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Web services are a good way. Just posting URLs to each other is another (which is what web services are anyways, just with more formality).

2) It's deprecated and should not even be acknowledged.

3) Different HTTP methods. One is intended for fetching resources, the other for posting data.

4) Controls order of loading servlets.
[ October 18, 2008: Message edited by: Bear Bibeault ]
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple research would yield answers to those questions. What do you understand and what parts confuse you about the material you found when you searched tutorials and the web for answers?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic