File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Difference b/w Dynamic & Static Servlets" Watch "Difference b/w Dynamic & Static Servlets" New topic
Author

Difference b/w Dynamic & Static Servlets

Ramgopal Reddy
Greenhorn

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.


Ram's
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60047
    
  65

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] [Bear's FrontMan] [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.

Regards,
Sultan.
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: http://aspose.com/file-tools
 
subject: Difference b/w Dynamic & Static Servlets
 
Similar Threads
Difference b/w static and dynamic Classification
HIbernate - wats the static and dynamic eager fetching in hibernate?
attributes and listener hfsj question 10
different requests for what purpose?
Difference between Tomcat and Apache Web Server