Sunday 24 August 2008

A beautiful story from the 2008 Beijing Olympics

I gotta admit I am a "Sport Junkies", I enjoy watching most sports. If you ask me about Olympics, my mind will just sprung up with various images and stories and basically I can go on and on about it. : P (due to my sporty childhood background and one past dream of mine....another day to tell)

And of course I have been following the 2008 Beijing Olympics whenever possible. Here's one beautiful story that I will mark as one to remember for from this year's Olympics game:

Olympic hero loses life savings (an article from New Zealand Herald)

The main point I want to emphasize from this article is not about pitying the great Hayden Roulston about him losing his saving. The thing I want to emphasize lies on page 2 of the article, about the good deeds the "tight five" has done in supporting the athlete. It really does remind one that despite some of the cruelties in this world, there are still tremendous lot of love, benevolence, faith and trust amongst the people in this world. : ) Or in Chinese I would use the saying "ไบบ้–“ๆœ‰ๆƒ…"! Good on you Hayden Roulston for sticking to it and good on the "tight five" for doing the good deeds!!!

The NZ 2008 track cycling team in qualifying race (Sam Bewley, Westley Gough, Marc Ryan, and Jesse Sergent)

Hayden Roulston in one of his Olympics race

Images Reference: http://www.olympic.org.nz

Thursday 14 August 2008

JSTL Core Tag Library: case sensitivity and finding last element in forEach

Prelude:
Have been a really good girl recently after being moved into a new team at work! : P Working with newer technologies and finally getting to apply all the knowledge and details I studied from my Java SCWCD exam!!! Yip it feels pretty good and pretty practical too! : ) I already have noted down quite a few things that I have noted down to blog in the future. Meanwhile let me go back to the wonder world of the JSTL Core Tag Library first........


Case Sensitivity:
Actually this is related to using tags on a JSP page rather than just the core tag library. The case of the tags matter on a JSP page. For example:
If you use write on your page, the tag will not be recognised!
This is because the actual tag is defined as . So case sensitivity matters when using tag library.

forEach and Finding the Last Element in a Collection:
The tag has an attribute varStatus which allow you to obtain information such as the current index the loop is currently at. If you use varStatus.last, it will return true if the current index is the last element in the collection. For example:
<c:foreach var="current" items="${bean.collection}" varstatus="status">
${current.value}<c:if test="${not status.last}">,</c:if>
</c:foreach>
The above code will add comma to the end of every item in the collection EXCEPT for the last one. So the varStatus is actually very useful indeed. : P very handy!

Friday 8 August 2008

Beijing Olympics Opening

Yeah after 4 years it's Olympics year again!!! Yes this time at Beijing as they said it's "One World One Dream" (realisation of hundred years dream).

Here's a little something I read from Gizmodo (ref: Gizmodo):
The Olympic Torch Transformed Over History



Personally my favourite is the one from torch Sydney (and I seen the real mock one in the Sydney Olympics ground too, it looks awesome)!!!!