This tile is included in baseLayout.jsp within web/WEB-INF/tiles-config.xml. Matt Raible included a comment that indicates that the way header is used here demonstrates the use of a Tiles Controller.
Within the <definition> of baseLayout, Matt has the following line:
<put name="header" value=".header.userCount">
Thus, header is refering to yet another tiles definition.
Down below, at line 72, we see where .header.userCount is resolved:
<!-- Header definition - shows user Count using a Controller -->
<definition name=".header.userCount" path="/common/header.jsp"
controllerClass="com.greymatter.webapp.action.UserCounterController" />
Thus, header.jsp displays the number of active users in the top right portion of the page.
The next block of logic in header.jsp checks to see if the logged in user's role is tomcat or admin. If so, the link to the Main Menu is inserted at the top of the page, so it will be available for any page based on baseLayout.jsp.
|
by Bob Dylan
by Rod Stewart |
Who knew there were so many songs called Forever Young??? If you Google for it, you'll find that every artist is contractually obligated to write and publish a song with this title. And they apparently all have to have similar lyrics, in which the phrase "forever young" is repeated multiple times. There's so much I don't understand about contracts. This is a very sweet, simple song. It reminds me of the blessing that Jewish parents give to their children each Friday night: Whether this song is directed from parent to child, from spouse to spouse, or from friend to friend, the generosity and love in the blessing is moving. Is there anything more we could hope for ourselves in our brief time in this world than what is wished for in this song? Is there anything more we could hope for our loved ones? May you stay forever young.
|
I awoke to over 1300 spam messages this morning.
It's just amazing to me how many people think only of themselves and not of the greater good. It's true of the Saddam Husseins and Yassir Arafats of the world. It's true of spammers. It's even true of the morons who proposed and promoted the CAN-SPAM Act. Gee, what a difference that has made.
Everybody's got their agenda, their axe to grind, their own self-interests to look out for.
Next time you do something, try to consider the Greater Good. Is what you are doing going to be positive for you but negatively impact someone else? If so, don't do it. Stop and think of another way to do something good for yourself that also does something good for others. It takes a little more effort, but it's well worth it.
This concept is what makes capitalism work. To do well for myself, I have to create a product or service that is positive and desirable for others. It's so simple, but it's a paradigm that brings about the best in most of us. Nay-sayers will gleefully throw the Enrons and their ilk in my face, but I would say they are an anomaly, not a natural result of capitalism. Besides, they got caught and are going to jail. The United States is a nation of checks and balances, from the three branches of government to the battle between corporate greed and journalistic integrity.
Just do your job with honor and a little thought to how it impacts others. This is all that's required to live in a peaceful world. Is that so much to ask?