Explain the difference between jsp and servlet?
Answer / Arunesh Ranjan
JSP (JavaServer Pages) is a technology for developing dynamic web content that allows developers to create pages using HTML, Java, and special JSP scripting elements. Servlets, on the other hand, are standalone Java programs that run on the server side and handle requests and responses directly.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain session tracking and its importance?
What are setComment and getComment methods in Cookies?
1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?
Is it possible to have a constructor inside the servlet?
What method is used to create database connection in servlets?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
Can we use javascript in Servlets?
explain filters in java?
When jsessionid is created?
What is URL Encoding?
What is httpservlet and how it is different from genericservlet?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?