Wednesday, November 11, 2009

Something posted long time ago on another blog site. Move it to here :)

Tips of using JSTL
June 1, 2004
Sometimes you will need to get an attribute from request or session. it's easy to use:

core:out value='${requestScope.attributeName}"

But, if the attribute's name is something like "aaa.bbb.ccc", you will have trouble. coz the JSTL will think you are trying to get a value ccc from object bbb from object ccc.

To dear with "." in such situation, use bracket, like this:

core:out value="${requestScope['aaa.bbb.ccc']}"

then it works, sweet, isn't it?

Just started

Started to try this as it can recognize I'm a Google user. Hopefully it's as good as all other fantastic Google products.

Hopefully it can support 中文...

Will see what I will put here.