File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Difference b/w Dynamic & Static Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Difference b/w Dynamic & Static Servlets" Watch "Difference b/w Dynamic & Static Servlets" New topic

Difference b/w Dynamic & Static Servlets

Ramgopal Reddy

Joined: Jan 28, 2006
Posts: 22
Greetings of the day!!!

What is the difference b/w dynamic and static servlet?

We can use html pages for the forms. We can generate that page using servlet program also.
Waht is the differnce b/w these two types and why should mostly preferd one is html.

Thanks in advance.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Originally posted by Ramgopal Reddy:
What is the difference b/w dynamic and static servlet?

Servlets are by nature dynamic. I have never heard of the term "static servlet".

Where did you hear these terms?

[Asking smart questions] [About Bear] [Books by Bear]
Sultan Khadar
Ranch Hand

Joined: Sep 12, 2006
Posts: 75
Dear Reddy ,
The terms Static and Dynamic Servlet doesn't exists . Only Static web page and Dynamic Web pages exists . A HTML Page is called as Static Web page and A Servlet or JSP (Some other technology) is used to generate Dynamic Web content , which we refers as Dynamic Web pages.

Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
If you just consider a form then i would go for html.The use of servlets should be minimized for views.They are well suited for controllers.As the requirement in this case is just a form ..i would go for html.If you are desperate to use any java related technology then can go for jsp not servlets.

Rahul Bhattacharjee
LinkedIn - Blog
I agree. Here's the link:
subject: Difference b/w Dynamic & Static Servlets
It's not a secret anymore!