aruna sameera wrote:But my question: is it possible to use jsp as suissness logic and servlet for visual representation.
Sure! In the same way that you can use the back of a stapler to bang in a nail, or use the blade of a saw to cut your birthday cake.
Tools can always be mis-used.
The question is: why would you willingly use the wrong tool for a job when the proper tool is readily available?
P.S. "suissness logic"? Do you not proofread your posts?
This helps you in that your posts are less likely to be misunderstood, and therefore get more and better responses.
aruna sameera wrote:I foud in some book says
JSP pages are meant for visual presentation.
Business logic is deferred to servlets.
and servlet for authentication, authorization, database validation;
But my question: is it possible to use jsp as suissness logic and servlet for visual representation.
This question was asked to me by the CEO in a final round of interview . (I think he had byhardened the answer somewhere)
In reply to this question i said that the view will be changing continuously as the client wishes , so its best to keep it in jsp as it requires no compilation .
He said it is becuase its difficult to use out.println statements in servlets for view purpose.