2013年10月8日 星期二

location hash explaination


Reference:
網頁設計筆記(二十一) 一頁式網頁 location.hash
mozilla Window.location
jQuery hashchange event

css float and clear property

1. Explaintion:
The float proper can set the div or other as the layout that out of the regular, which is such a hidden man in the content, and others is not see this float block,
and the other content will layout there self deployment which ignore the float block and behaviour, ex wrap the div, which such there is no float block exist.

The clear proper is set to the other content block, that will know there has a float block, and it will new a layout to deploy itself



Reference:
w3c 
修正 CSS 對於 float 區塊, 使用 clear:both 無效的解法
 Overflow清除Float效果的妙用


2013年10月7日 星期一

struts2 OGNL value Get Method

1. Problem:
there are some difference method to get struts2 value such as $, #,
but what is the difference between them??


2. Solution:
  • objectName: object in the ValueStack (default/root object in the OGNL context), such as an Action property
  • #objectName: object in the ActionContext but outside of the ValueStack, specifically...
  • %{ OGNL expression } is used to force OGNL evaluation of an attribute that would normally be interpreted as a String literal.

Reference:
whats-the-difference-between-and-signs-in-struts-tags