JSP pages are mainly used for displaying the view, and all business logic and models must be implemented in servlets or classes of models. We must pass parameters to the JSP page through attributes and then use them to create an HTML response on the JSP page. Most JSPs contain HTML code and, in order to help designers understand the code of a JSP page and develop them, provide action, JSP EL, JSP Standart Tag Library elements. These elements must be used instead of scriptlets to create a bridge between JSP HTML and JSP java parts.
Posted Date:- 2021-08-18 12:02:21
Can constructor be used instead of init(), to initialize servlet?
How to restrict page errors display in a JSP page?
How can the output of JSP or servlet page be prevented from being cached by the browser?
What are context initialization parameters?
How is JSP used in the MVC model?
How can we handle the exceptions in JSP ?
How can I implement a thread-safe JSP page? What are the advantages and Disadvantages of using it?
What is difference between hide comment and output comment?
What do you meant by the output comment in the JSP context?
How to restrict the caching of the JSP/servlet output on the client side?
What is the right way to declare a method in a JSP page?
Define the scopes available with the <jsp: useBean>?
How can Automatic creation of session be prevented in a JSP page?
What is a JSP Custom Tag and what are the components does it have?
What do you know about writing custom jsp tags?
Explain handling of runtime exceptions.
How many types of tags exist in the JSTL library?
How can you pass information from one jsp to included jsp ?
Is it possible for one JSP to extend another java class if yes how?
What are the difference between JspWriter and Servlet PrintWriter?
What are the difference between ServletContext and PageContext?
How we can include the result of another page in JSP?
What do you know about jsp tags? Explain how you understand the Action tag and JSP Action Elements.
Why is it not recommended to use script elements in jsp?
How to configure init parameters for JSP?
What do you know about PageContext and what are the advantages of using it?
Why are implicit objects not available in a regular JSP page?
Can you explain the MVC model and the use of JSP in it?
What are the advantages of JSP?
What are features of JSP that make it an essential web-based technology?
How can a servlet refresh automatically if some new data has entered the database?
In the Servlet 2.4 specification SingleThreadModel has been deprecated, why?
How many JSP scripting elements are there and what are they?
What Class.forName will do while loading drivers?
What do you understand by the term scriptlet?
Can you tell us how could you disable a script?
Can you highlight the functionality of the include function in brief?
Can constructor be used instead of init(), to initialize servlet?
What are the advantages of JSP over Servlet?
How to restrict page errors display in a JSP page?
How can the output of JSP or servlet page be prevented from being cached by the browser?
How can multiple submits due to refresh button clicks be prevented?