Warning: Table './webel02_wcadrupal/cache_page' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_page WHERE cid = 'https://www.webel.com.au/image/firstcup-web-application-javaserver-faces-facelets-application-accesses-dukesageresource-displ' in /home/webel02/public_html/includes/database.mysql.inc on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/webel02/public_html/includes/database.mysql.inc:135) in /home/webel02/public_html/includes/bootstrap.inc on line 736

Warning: Cannot modify header information - headers already sent by (output started at /home/webel02/public_html/includes/database.mysql.inc:135) in /home/webel02/public_html/includes/bootstrap.inc on line 737

Warning: Cannot modify header information - headers already sent by (output started at /home/webel02/public_html/includes/database.mysql.inc:135) in /home/webel02/public_html/includes/bootstrap.inc on line 738

Warning: Cannot modify header information - headers already sent by (output started at /home/webel02/public_html/includes/database.mysql.inc:135) in /home/webel02/public_html/includes/bootstrap.inc on line 739
The firstcup web application is a JavaServer Faces Facelets application that accesses DukesAgeResource to display Duke's age, reads in a date provided by the user, accesses DukesBirthdayBean to calculate who is older, and then displays the difference .. | Webel IT Australia "The Elements of the Web"

The firstcup web application is a JavaServer Faces Facelets application that accesses DukesAgeResource to display Duke's age, reads in a date provided by the user, accesses DukesBirthdayBean to calculate who is older, and then displays the difference ..

Click on the image below to view it full size in an image viewer !
The firstcup web application is a JavaServer Faces Facelets application that accesses DukesAgeResource to display Duke's age, reads in a date provided by the user, accesses DukesBirthdayBean to calculate who is older, and then displays the difference ..

The source text from Your First Cup: An Introduction to the Java EE Platform is a bit confusing in a few respects here, as pedantically annotated in the spirit of UML™ Parsing Analysis.

Firstly, we are told that 'The firstcup web application .. accesses DukesAgeResource to display Duke's age'. Does this mean that the DukesAgeResource can display Duke's age ? Or rather, that Duke's age is retrieved for display by the firstcup application ?

Also, 'The firstcup web application .. accesses DukesBirthdayBean to calculate who is older'. Does this mean there is an operation that returns a person (the Duke or the User), whoever is older ? Or is there a boolean ?

This source text snippets lends itself well to an analysis Activity Diagram, shown next ..