Skip To Content

Athabasca University

Section 8.1 JSF Fundamentals

Learning Objectives

After you have completed this section, you should be able to

  • define servlets, JavaServer Pages (JSP), and JavaServer Faces applications
  • explain how JSF applications are accessed from web clients and processed on the server.
  • create and deploy JSF applications.
  • use implicit objects and Java to create dynamic web pages.
  • explain how they can be used on a website.

Activities

Study Questions

  1. What are servlets?
  2. Compared with server-side CGI, what are the advantages of using Java servlets, JSP, and JSF?
  3. What Java extension packages do you need for Java servlets and server pages?
  4. What is the request–response model of communication?
  5. What are the relationships between Java servlets and server pages?
  6. What interface of which Java extension package does any servlet have to implement?
  7. What methods does the Servlet interface have?
  8. What is the life cycle of a Java servlet?
  9. What classes are defined in the Java servlet package?
  10. What class is commonly used in a web-based servlet?
  11. What methods does the GenericServlet class provide?
  12. What methods does the HttpServlet class provide?
  13. What are the HttpServletRequest and HttpServletResponse interfaces? Where are they defined?
  14. How do you install Tomcat on your computer and integrate it with the web server you installed at the beginning of the course?
  15. How do you handle HTTP get requests in servlets?
  16. Where do you deploy a web application under Tomcat?
  17. How do you handle HTTP get requests containing data in servlets?
  18. How do you handle HTTP post requests in servlets?
  19. What are the differences between the HTTP get and post requests?
  20. In servlets, how do you redirect requests from a web client to other resources?
  21. How are cookies used in session tracking and in generating personalized web pages?
  22. How do you do session tracking with HttpSession?
  23. To develop multi-tier web applications, how do you use JDBC from servlets?
  24. What is JSP?
  25. How does JSP extend Java servlets?
  26. What advantages does JSP have compared with Java servlets?
  27. How is a request from a web browser for a JSP processed on the web server?
  28. How do you embed Java statements in a JSP page?
  29. In the context of a JSP page, what implicit objects are provided to access servlet capabilities?
  30. What are the scopes of implicit objects?
  31. How do you declare a Java variable in JSP?
  32. What are JSP standard actions?
  33. Why do you need these JSP standard actions?
  34. How do you call JSP standard actions in a web page?
  35. What can you do using the <jsp:include> action?
  36. What can you do using the <jsp:forward> action?
  37. What can you do using the <jsp:plugin> action?
  38. What can you do using the <jsp:param> action?
  39. What can you do using the <jsp:useBean> action?
  40. What can you do using the <jsp:setProperty> action?
  41. What can you do using the <jsp:getProperty> action?
  42. How do you implement an advertisement rotator inside a web page using JSP or other website technology you have learned so far?
  43. What are directives?
  44. What JSP directives can you use to specify page settings?
  45. How are JSP directives delimited in JSP pages?
  46. What can you do with the JSP page directive?
  47. What attributes does the page directive have? How do you use these directives?
  48. What can you do with the JSP include directive?
  49. What are custom tag libraries?
  50. How do you access JSP custom tag libraries from within JSP pages?
  51. What are the advantages of using custom tags compared with using action <jsp:useBean> and JavaBean?
  52. What is NetBeans?
  53. How do you use the taglib directive?
  54. What attributes does the taglib directive have?
  55. What is a tag library descriptor?
  56. How do you implement custom tags?
  57. How do you use JSP custom tags in a web page?
  58. What are custom tag handlers?
  59. How do you define a custom tag handler in Java?
  60. How do you define custom tags with attributes in a custom tag handler?
  61. How do you use custom tags with attributes?
  62. How can you use custom tags to process the element body?
  63. What additional methods are required to process the element body using custom tags?

Review

Do the self-review exercises at the end of Chapter 26.

Summary

Read the Chapter 26 summary.

Updated May 06 2022 by FST Course Production Staff