user705414
user705414

Reputation: 21200

to dynamically generate a web page, which is better?

I heard that jsp is anyway be convevrted to servlet, so is it better to directly use servlets?

Upvotes: 0

Views: 121

Answers (2)

Jigar Joshi
Jigar Joshi

Reputation: 240938

No

Use jsp for view only.

Use Servlet for controller only.

Use service layer to do processing ..etc..

See Also

Upvotes: 3

maks
maks

Reputation: 6006

with jsp it is simpler to make good design with html and css, because in servlets you will use out.println to output every line of html code(e.g. out.println("<head>...</head>"))

Upvotes: 1

Related Questions