| Author |
Confusion between the use of JSP
|
vineet chauhan
Greenhorn
Joined: Oct 30, 2010
Posts: 1
|
|
I read that JSP are used for presentation and servlets for writing business logic . But the jsp are themselves converted into servlets. Then why we are we using jsp if they are converted back into servlets again.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56204
|
|
|
The fact that JSPs leverage servlets is an implementation detail. It should in no way affect how they are used.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Ram Narayan.M
Ranch Hand
Joined: Jul 11, 2010
Posts: 244
|
|
Yes... JSP was brought for Presentation Logic... And writing Business Logic in Servlets is a bad design... Then, that business logic cannot be re-used. Servlets makes the decision of redirection to other pages based on the condition.
JSP is basically a Servlet which has the life-cycle of initialization, servicing the request and destroyed...
|
SCJP 6 [SCJP - Old is Gold]
|
 |
 |
|
|
subject: Confusion between the use of JSP
|
|
|