Map-backed ActionFormã®æ±ã
Strutsã®ActionFormã¯ã
Map-backed ActionFormï¼ãããããã¯ãã¢ã¯ã·ã§ã³ãã©ã¼ã ï¼ã¨ãã
List-backed ActionFormï¼ãªã¹ãããã¯ãã¢ã¯ã·ã§ã³ãã©ã¼ã ï¼ã¨ã使ãã¦ä¾¿å©ã
http://struts.apache.org/1.3.8/userGuide/building_controller.html#map_action_form_classes
使ãæ¹ãªããã¯å
¬å¼ã®ããã¥ã¡ã³ããåç
§ã
ã§ãS2Strutsã§ããã®Map-backed ActionFormã使ãå ´åã
JSPå´ã®è¨è¿°ã¯ãããã¥ã¡ã³ãéã
<html:text property="xxx(yyy)" />
ã¨ããè¨è¿°ã§OKã ãã©ã
ActionFormå´ã®è¨è¿°ã¯ããã¥ã¡ã³ãéãã«ãããªãã
public String getXxx(String key) { return xxxMap.get(key); } public void setXxx(String key, String value) { return xxxMap.put(key, value); }
ã¨ããå½¢å¼ã¯ãã¡ã§
public String getXxx() { return xxxMap; }
ã«ããªãã¨ãå¤ãå
¥ããªãï¼ã¨ãããã¨ã©ã¼ã«ãªãï¼ã
å°ãªãã¨ããS2Struts-1.3.0-RC1ã§ã¯ããããç¶æ³ã¿ããã