Java Reference
In-Depth Information
Click the reload button a few times and watch the count go up. You will see that each page
increments the other page's instance; both of these pages share the same instance of the
Counter bean. They will share this instance until the JSP engine is shut down.
In this chapter, we covered how JSP beans are scoped. You should feel comfortable with the
different types of JSP scope. You should also understand how the life of a JSP bean is deter-
mined by its scope.
In the next chapter we will take a look at how you handle errors that occur in your JSPs.
Search WWH ::

Custom Search