Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Difference b/w Dynamic & Static Servlets

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic