JamesBranam's Blog

Tuesday Dec 02, 2008

Understanding Scope and Managed Beans

Hi all,

Today I'd like to continue a blog series in which I highlight Web application tutorials for NetBeans 6.5. A few changes have been made to tutorials, so be sure to check them out again.

This eighth entry in the series will cover the tutorial, "Understanding Scope and Managed Beans".

In this tutorial, you use the NetBeans IDE with Visual Web JSF application development functionality to create an application that demonstrates how to use application, session, and request scopes to manage your application's objects. Scope is the availability (or context) of an object and its intended life span in a web application.

The web application that you create in this tutorial uses an object in application scope to tally votes, and uses an object in session scope to ensure that a user votes only once per session. The application uses a request scope object to display the time that the user submitted the vote. The time is stored in request scope, because the application does not need the value after the response is sent to the client browser. F 1.2 (Woodstock) drop-down list, and the application displays a table that shows all the trip records for that person.

This is actually two tutorials in one. Have fun with it.

Cheers!

--James

Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referrers