What is the difference between JSP and Servlet?
Answer Posted / satyabrata
Both servlet and jsp are web components. But servlet is
best suited for request processing, handling the business
logic while jsp is suitable for content generating .Its
easy to include html tag in jsp rather than servlet.Also
jsp is compiled to servlet when first loaded to
webserver.So in many framework servlet act as a controller
while jsp as a view.Also implicit object and action
elements available in jsp but not in servlet.
| Is This Answer Correct ? | 103 Yes | 15 No |
Post New Answer View All Answers
What is the advantage of using getProperty action, as compared to the accessor method?
What is the difference between java servlet and jsp?
What are jsp elements?
What are the differences between get and load methods?
Can you use javascript in jsp?
Can you explain what is jsp page life cycle?
When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]
What are the elements of a jsp page?
What is el in jsp?
How many tags are provided in jstl?
What is jsp and its features?
What are standard actions in JSP?
What is jsp net?
How do you delete the session data?
What is a hidden comment in jsp?