Home > Articles

Adding Interactivity to the Calendar Application

  • Print
  • + Share This

Adding Interactivity to the Calendar Application

In This Chapter

  • The Calendar Application Version 1.1

  • Developing the Input Page

  • Enhancing the Monthly Calendar JSP

  • Handling Exceptional Conditions

  • Creating a Yearly Calendar

  • Summary

  • Next Steps

In this chapter you will enhance the application to display the calendar for a user-specified month and year. This constitutes one of the really exciting parts of the Web, where users can send data across to the server and receive relevant information from that data. This type of dynamic content generation is the prequel to the bleeding edge e-business applications.

The Calendar Application Version 1.1

Version 1.0 of the application might display only the current month's calendar. Now you can enhance the application to make it display the calendar for a specified month of a specific year.

To achieve this you need to create another HTML page, input.html, that acts as an input page. The user views this page and provides values for the input fields. These values are passed using the Hypertext Transfer Protocol (HTTP) to a specified application or JSP that processes the form data and generates dynamic content, or the Calendar for the specified month in this case. The screen-flow is displayed in Figure 3.1.

Figure 3.1 Data flows between the HTML pages and JSP

 

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.