colin wang wrote:JSP will be translated into servlet.
That is an implementation detail that has no bearing on when JSPs should be used and when servlets should be used.
Tianrong Dai wrote:your means that servlet can do everything what jsp can do?
Not really. JSPs can use mechanisms such as the JSTL, EL, custom tags, tag files, and other mechanisms geared towards creating views. Mimicking these in a servlet would not only be difficult, but foolish.