Rainy days and Java always get me down


I've Moved My Blog

It's currently located at http://www.urlinone.com/blog

I should say "I'm moving my blog." It's a pretty painful process.

Pebble has blown up on me, and it's been many months since I've been able to blog reliably. I've lost posts. And now I've got to figure out how to migrate my past blog posts from Pebble to my new destination without all the URLs changing, lest external links become 404 Not Founds.

Why does everything in the 21st century have to be a three-day project???

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.




Add a comment

Title
Body
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

TrackBack to http://www.leegrey.com/hmm/addTrackBack.action?entry=1089044785000