• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference b/w Dynamic & Static Servlets  RSS feed

 
Ramgopal Reddy
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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?
 
Sultan Khadar
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.
 
Rahul Bhattacharjee
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!