Win a copy of Pipeline as Code this week in the Cloud/Virtualization 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

What is faster

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is faster for web pages ?

JSF
JSP
or servlets

and I want to ask you, can servlets be alone, only with them to make a website ?
Can servlets work together witch JSF - if can is that way faster than only a servlet web site ?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSF is probably slower than the others.

JSF has phases and one of them restores the whole component tree in the server side.

This might be an issue if your app has performance requirements.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vladislav Rashkov wrote:What is faster for web pages ?

JSF
JSP
or servlets

and I want to ask you, can servlets be alone, only with them to make a website ?
Can servlets work together witch JSF - if can is that way faster than only a servlet web site ?



It depends what you do with them. And of course, ultimately JSP and JSF are just Servlet based.
 
Jahar Heard
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok thanks, so servlets can work alone, and they are faster then the other . Right ?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. What KIND of web pages? How complex? How many resources go into one page?

2. What KIND of speed? Total refresh of entire page versus dynamic refresh of essential parts? You can give the impression of speed by good design of the HTML.

The design is more important than the technology that serves the resources. Compare the user impression of a page that takes 5 seconds to load:

A. Shows a blank screen for 5 seconds, then boom everything is there
B. Shows a starting framework almost instantly, then fills in images, text etc over the rest of the 5 seconds.

Bill
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vladislav Rashkov wrote:Ok thanks, so servlets can work alone, and they are faster then the other . Right ?



Yes servlets can work alone.

No, under real conditions I wouldn't say servlets are faster than JSP (don't know about JSF). The first run through the JSP normally compiles it to a servlet, such that there is no difference between the two - and the compilation step can be done before hand if you wanted to.

And an all servlet web app is much harder to write, read, and maintain than one that uses both JSP and servlets as appropriate (JSPs for page rendering, Servlets for flow control). I have no experience with JSF so I can't compare there.
 
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic