You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ããããããã°ã ãªããªãã²ã¨ã¤ã«çµããªã大好ããªãã®ãæ¥è¨ã¨ãã¦æ®ãã¦ã¾ãã ã»ã½ãã®ã¿ã¼ ã»IT ã»ãã¯ãã¹ Seasar2 SAStruts Jdk6 tomcat7 ã®ç¨¼åç°å¢ã§ãã³ã³ããã¹ããã¢ã³ãããã¤ãã¦ãã¡ã¢ãªãªã¼ã¯ãçºçãã¦ããPermGenãé£ãã¤ã¶ã ãç¾è±¡ã JDBCã§ä½¿ç¨ãã¦ããã¯ã©ã¹ç¾¤ãTOMCATã®ã¯ã©ã¹ãã¼ãã¼ã«ãã£ã¦ä½¿ç¨ãããããã ã³ã³ããã¹ãã®ã¢ã³ãããã¤ãå®æ½ãã¦ãã¯ã©ã¹ã解æ¾ãããªãããã PermGenãé£ãã¤ã¶ãã¦ããã ã»jdk1.6.0_31 ã»apache-tomcat-7.0.27 ã»s2-framework-2.4.45 ã»sa-struts-1.0.4-sp9 調æ»ã«ããããjvisualvm.exeã§ã¡ã¢ãªç¶æ³ã確èªããçºãTomcatConfigurationã«ä¸è¨ã追å ã -Dcom.sun.management.jmxrem
æ°ç±³ã¨ç§åéã®ããç¼ã ãåºèº«ç¨ã®ç§åéãè²·ãã¾ããã1å°¾250åã§ã 3æã«ãããã¦ãç§åéã®ããã«é ãå³éãé¤æ²¹ã§èª¿å³ãã¦1æéã»ã©æ¼¬ãè¾¼ã¿ãã°ãªã«ã§ç¼ãã¾ãã ç§åéã®ããç¼ã ããã®ãè¦å³ãç¨ãããã¤ã«ãã«èª¿å³ãããã¯ã»ã«ãªãå³ããã§ã è¶ãããªæ°ç±³ã¨ä¸ç·ã« èªå®¶è£½ãæ¼¬ç© åâ¦
SAStruts 㨠S2JDBC ãå©ç¨ããMavenããã¸ã§ã¯ãã® pom.xml ã®ãµã³ãã«ã§ããã ä»åã¯ã Super Agile Strutsãã¥ã¼ãã¢ã« 㨠S2JDBCã®ãã¥ã¼ããªã¢ã« ãå©ç¨ãã¦ããããã©ã«ãæ§æãdiconãã¡ã¤ã«ã¯ãæ¢ã«ç¨æããã¦ããã¨ããåæã§è©±ãé²ããã ã©ã¡ãã®ãã¥ã¼ããªã¢ã«ãmavenããã¸ã§ã¯ãã«ãªã£ã¦ããªãã®ã§ããã¡ãã§mavenããã¸ã§ã¯ãåããå¿ è¦ãããã ä»åã¯ãéçºç¨ã®ãªã½ã¼ã¹ãã©ã«ãã¨å ¬éç¨ã®ãªã½ã¼ã¹ãã©ã«ããåãã¦ããã«ãã®éã«ãããã¡ã¤ã«æå®ã§ ãªã½ã¼ã¹ãã¡ã¤ã«ãåãæ¿ããããããã«ããã ããã¸ã§ã¯ãã®ãã©ã«ãæ§æ src/main/javaJavaã½ã¼ã¹ãã©ã«ã(å ±é) src/test/javaJavaã½ã¼ã¹ãã©ã«ã(ãã¹ãç¨) src/main/resourcesãªã½ã¼ã¹ãã©ã«ã(éçºç¨) src/test/resou
ï¼ï¼ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãhttp://www.skirnir.net/eclipse/updates/3.2/ ï¼ï¼ããã¸ã§ã¯ãâããããã£âMaven2 Additional ã§è¨å®ãæå¹ã«ããã ï¼âï¼ï¼ãã¤ããªã®ã³ãã¼ãã£ã¬ã¯ããªãæå®ããã â»ããã©ã«ã㯠src/main/webapp/WEB-INF/lib ãï¼âï¼ï¼é¤å¤å¯¾è±¡ã®ãã¤ããªãæå®ããã â»ããã©ã«ã㯠servlet-api ã¨ã junit ãï¼âï¼ï¼ã¯ã©ã¹ãã¹ã³ã³ããå¤æ°ãæå®ããã â»ããã©ã«ãã¯m2eclipseåãã«ãªã£ã¦ãã ï¼ï¼ããã¸ã§ã¯ãâMaven2âRefresh WEB-INF/lib ãå®è¡ã ãã㧠Maven ã®ã¯ã©ã¹ãã¹ã³ã³ãããã src/main/webapp/WEB-INF/lib é ä¸ã« jar ãã³ãã¼ãã¦ããã¾ãããã¡ãã m2eclipse ã q4e ã¨ãã« ok
ã¾ãEclipse, Apache Tomcat, Subversiveãå ¥ãã¾ãããã sa-struts-tutorialãå ¥æãã ããã¸ã§ã¯ãã®ãææ¬ãå ¥æãã¾ããzipã解åããããEclipseã«ããã¸ã§ã¯ããã¤ã³ãã¼ããã¾ãã Super Agile Strutsãã¥ã¼ããªã¢ã« sa-struts-tutorial-1.0.x.zip http://sastruts.seasar.org/download.html m2eclipse Plugin EclipseããMaven2ã使ãããã®ãã©ã°ã¤ã³ãå ¥ãã¾ãã ä¸è¨ã®ã¢ãããã¼ããµã¤ããããã©ã°ã¤ã³ããã¦ã³ãã¼ããã¾ãã http://m2eclipse.codehaus.org/update/ http://www.atmarkit.co.jp/fjava/rensai3/eclipseplgn11/eclipseplg
ActionFormã«æ¬¡ã®ãããªããããã£ããã£ãã¨ãã¾ãã public Map<String, Object> map;ãã®mapããããã£ã«Strutsçã«ã¯ã次ã®ãããªæãã§ã¢ã¯ã»ã¹ãã¾ãã <html:text property="map(aaa)"/>SAStruts 1.0.4-sp5ã§ã¯ãã®ãã¿ã¼ã³ã«å¯¾å¿ã§ãã¦ããªãã®ã§ãMapã®ããããã£ã«ã¢ã¯ã»ã¹ããã¨ãã«ã¯ãStrutsã®ã¿ã°ã¯ä½¿ãã¾ããããããã«æ¬¡ã®ããã«æ®éã®inputã¿ã°ã使ã£ã¦ãã ããã <input type="text" name="map.aaa" value="${f:h(map.aaa)}"/>ãã£ãä¿®æ£ããã®ã§ãSAStruts 1.0.4-sp6(次ã®ãªãªã¼ã¹)ãããStrutsã®ã¿ã°ã§ã使ããããã«ãªãã¾ãã https://www.seasar.org/issues/browse/SASTRU
ä¹ ã ã«SAStrutsããã SAStrutsã«éããWebã¢ããªä¸è¬ã§ããã¼ã¿ã®æ´æ°ã»ä½æå¦çã¨è¡¨ç¤ºå¦çãåå²ããããã«ãªãã¤ã¬ã¯ãã使ããããHogeAction#saveã§ä¿åãå®äºããå¾ã«ãFugaAction#indexã¸ãªãã¤ã¬ã¯ãããããã«ããã public class HogeAction { @Execute public String save() { // ... ä½ãä¿åå¦ç return "/fuga?redirect=true"; } } ã§ãsaveãæåããã¨302ã¹ãã¼ã¿ã¹ãè¿ããªãã¤ã¬ã¯ãããã®ã ããCookieã使ããªããã©ã¦ã¶ã§ã¯Locationãããã®å¤ã«jsessionidãä»å ãããã Location: http://localhost:8080/test/fuga;jsessionid=xxxxxxxxxxxxxxxxxxxxxxããã§U
SAStruts ã¢ã¯ã·ã§ã³ã«JSONãè¿ãã¡ã½ãããä½æãã¦ã¿ã - 130åä½ âã§æ¸ããã³ã¼ãã«å¯¾ããæ°ã«ãªã£ãç¹ããã£ã¦ç´ããã¨æãã¾ããããããã¾ãã«ä¿®æ£ç¹ãå¤ãã£ãã®ã§æ°ãã«è¨äºã«ãã¦ã¿ã¾ãã 以åã®ã³ã¼ã Ajaxã§ãªã¯ã¨ã¹ããããå¾æ¥å¡ã®ãªã¹ããJSONå½¢å¼ã§è¿ãã¡ã½ããã§ãã @Execute(validator = false) public String ajaxEmployeeList() { List<Employee> employeeList = employeeService.findByDeptId(form.departmentId); HashMap<String, String> map = new HashMap<String, String>(); for (Employee emp: employeeList) { map.put(emp.id
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}