Jsp interview questions

142 questions. Tap “Show answer” to check yourself.

Advertisement
  1. How can the output of JSP or servlet page be prevented from being cached by the browser?

  2. Explain JSP directives.

  3. Define Composition.

  4. How to include static files in a JSP page?

  5. Why does _jspService() start with an ‘_’ but other lifecycle methods do not?

  6. Define Expression

  7. Can Static method be Override?

  8. What are standard actions in JSP?

  9. How can a thread safe JSP page be implemented?

  10. Explain the various scope values for tag.

  11. Define JSP Scriptlet.

  12. Explain pge Directives.

  13. Advertisement
  14. Differentiate between and .

  15. How can I maintain session in JSP Page in the bases of user name and password:

  16. How to restrict page errors display in a JSP page?

  17. Explain client and server side validation?

  18. Explain the advantages of jsp?

  19. Explain static method?

  20. What is the requirement of a tag library?

  21. Explain jsp:plugin action?

  22. What are the lifecycle phases of a jsp?

  23. How is jsp used in the mvc model?

  24. Differentiate between response.sendredirect(url) and ?

  25. Is jsp technology extensible?

  26. Advertisement
  27. What is translation phase?

  28. Explain jsp technology?

  29. How can multiple submits due to refresh button clicks be prevented?

  30. Perform a browser redirection from a jsp page?

  31. Can a subsequent request be accessed with one’s servlet code, if a request attribute is already sent in his jsp?

  32. What is a output comment?

Advertisement