<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">$B5HED(B(@zephiransas)$BMM(B</span><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px"><br></span></font></div>
<div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px">$BDI5-$7$F$$$?$@$-$"$j$,$H$&$4$6$$$^$9!#(B</span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px">$BL5;v=PMh$^$7$?!#(B</span></font></div>
<div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px">$BG0$N$?$a%=!<%9$b5-:\CW$7$^$9!#(B</span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px">$B!VAGD>$K<BAu!WJY6/$K$J$j$^$7$?!#$"$j$,$H$&$4$6$$$^$9!#(B</span></font></div>
<div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px">$B!&(BIndexAction</span></font></div><div>
<font color="#222222" face="arial, sans-serif"><span style="font-size:14px">--------------------------------------</span></font></div><div><font color="#222222" face="arial, sans-serif"><div><span style="font-size:14px">import java.util.LinkedHashMap;</span></div>
<div><span style="font-size:14px">import java.util.Map;</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">import javax.annotation.Resource;</span></div><div><span style="font-size:14px"><br>
</span></div><div><span style="font-size:14px">import org.seasar.struts.annotation.ActionForm;</span></div><div><span style="font-size:14px">import org.seasar.struts.annotation.Execute;</span></div><div><span style="font-size:14px"><br>
</span></div><div><span style="font-size:14px">import errsample2.form.ValidatorForm;</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">public class IndexAction {</span></div>
<div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>@ActionForm</span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>@Resource</span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>protected ValidatorForm validatorForm;</span></div>
<div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>//IndexAction$B$K%I%m%C%W%\%C%/%9$NCM$r%;%C%H$9$k%U%#!<%k%I$r@k8@$9$k(B</span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>public Map<String, Integer>carSizeMap;</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br>
</span></div><div><span style="font-size:14px"> @Execute(validator = false)</span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>public String index() {</span></div>
<div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"> <span class="Apple-tab-span" style="white-space:pre">        </span>return initSize();</span></div>
<div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>}</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"> @Execute(validator = false)</span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>public String initSize() {</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"> <span class="Apple-tab-span" style="white-space:pre">        </span>//$B;n$7$KG[Ns$K$$$l$F$_$k!#(B</span></div>
<div><span style="font-size:14px"> <span class="Apple-tab-span" style="white-space:pre">        </span>carSizeMap = new LinkedHashMap<String, Integer>();</span></div><div><span style="font-size:14px"> <span class="Apple-tab-span" style="white-space:pre">        </span>carSizeMap.put("$B%F%9%H#1(B", new Integer(1));</span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>carSizeMap.put("$B%F%9%H#2(B", new Integer(2));</span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>carSizeMap.put("$B%F%9%H#3(B", new Integer(3));</span></div>
<div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span> return "index.jsp";</span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span>}</span></div>
<div><br></div><div><span style="font-size:14px"> @Execute(validator = true, input = "initSize")</span></div><div><span style="font-size:14px"> public String insert() {</span></div><div><span style="font-size:14px"><br>
</span></div><div><span style="font-size:14px"> return "index.jsp";</span></div><div><span style="font-size:14px"> }</span></div><div><br></div><div><span style="font-size:14px">}</span></div><div style="font-size:14px">
<br></div></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14px">$B!&(Bindex.jsp</span></font></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px">--------------------------------------</span></div>
<div><font color="#222222" face="arial, sans-serif"><div><span style="font-size:14px"><%@page pageEncoding="UTF-8"%></span></div><div><span style="font-size:14px"><!DOCTYPE html></span></div><div><span style="font-size:14px"><html lang="ja"></span></div>
<div><span style="font-size:14px"><head></span></div><div><span style="font-size:14px"><meta charset=UTF-8"></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><title>$B?75,EPO?(B</title></span></div>
<div><span style="font-size:14px"></head></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><body></span></div><div><span style="font-size:14px"><br></span></div>
<div><span style="font-size:14px"><p>$BEPO?%G!<%?(B</p></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><html:errors /></span></div><div><span style="font-size:14px"><br>
</span></div><div><span style="font-size:14px"><s:form></span></div><div><span style="font-size:14px"><table></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span><tr></span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">                </span><td></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">                </span>$B%5%$%:(B</span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">                </span></td></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">                </span><td></span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">                </span><html:text property="TestText"></html:text></span></div><div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">                </span></td></span></div>
<div><span style="font-size:14px"><span class="Apple-tab-span" style="white-space:pre">        </span></tr></span></div><div><span style="font-size:14px"></table></span></div><div><span style="font-size:14px"><input type="submit" name="insert" value="$B%5%V%_%C%H(B"/></span></div>
<div><span style="font-size:14px"></s:form></span></div><div><span style="font-size:14px"></body></span></div><div><span style="font-size:14px"></html></span></div></font><div><br></div><div>$B!&(BValidatorForm</div>
<div>-------------------------------------------------</div><div><div><br></div><div>import org.seasar.struts.annotation.Required;</div><div><br></div><div><br></div><div>public class ValidatorForm {</div><div><br></div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>@Required</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>public String TestText;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>public String bodySizeId = "";</div>
<div><br></div><div><br></div><div>}</div></div><br><div class="gmail_quote">2012$BG/(B12$B7n(B4$BF|(B 15:50 Takafumi Yoshida <span dir="ltr"><<a href="mailto:yoshida@optics-net.com" target="_blank">yoshida@optics-net.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">$B5HED(B(@zephiransas)</blockquote></div><br></div>