$B$R$,MM!"(Bnumasawa$BMM$4JVEz$"$j$,$H$&$4$6$$$^$9!#(B<div><br></div><div>index$B$N=EMW@-$r$"$^$jM}2r$G$-$F$$$^$;$s$G$7$?!!4@!!(B</div><div><br></div><div>IndexAction$B$H(Bindex.jsp$B$KL>A0$rJQ99$7$F2r7h$7$^$7$?!#(B</div><div>$B$"$j$,$H$&$4$6$$$^$7$?!#(B<br><br><div class="gmail_quote">2012$BG/(B11$B7n(B15$BF|(B 17:54 Hideaki Numasawa <span dir="ltr"><<a href="mailto:numasawa@synergybox.co.jp" target="_blank">numasawa@synergybox.co.jp</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>numasawa $B$H$b$&$7$^$9!&#w!&(B</div><div><br></div><div>>@Execute(validator=true, input="index2.jsp")</div><div class="im">
<div>>public String sendMessage(){</div><div>>MessageService.registMessage(userName, text);</div><div>>return "?redirect=true";</div>
<div>>}</div><div><br></div></div><div>$B$N(B</div><div><br></div><div>>return "?redirect=true";</div><div><br></div><div>$B$GH/@8$7$F$$$kM=46$,$7$^$9$,!&!&!&(B</div><div>$BF~NO9`L\%A%'%C%/$r9T$C$F$$$k$,BP>]$,$$$J$$$N$G@5>o%k!<%H$HH=CG(B</div><div><br></div>Index2Action#index $B$,B8:_$7$^$;$s$7!#(B<div>
<br><div class="gmail_quote">2012$BG/(B11$B7n(B15$BF|(B 11:10 $B66K\2BH~(B <span dir="ltr"><<a href="mailto:asanohizashi@gmail.com" target="_blank">asanohizashi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
$B$O$8$a$^$7$F!"(B<div>$B$^$@%W%m%0%i%`$r;O$a$F(B4$B%v7n$N<T$G$9!#(B</div><div>$B<RFb;n83$G7G<(HD%7%9%F%`$r$D$/$k$3$H$K$J$j(B</div><div><br></div><div><a href="http://www.youtube.com/watch?v=tkk3GyTwb8w" target="_blank">http://www.youtube.com/watch?v=tkk3GyTwb8w</a></div><div><br></div>
<div>$B$NF02h$r;29M$K7G<(HD$r:n$C$F$$$?$N$G$9$,(B</div>
<div>$B:G8e$N(Bpublic String sendMessage()$B$N$H$3$m$K(B@Execute(input="index.jsp")$B$r$D$1$k$H#4#0#4%(%i!<$,I=<($5$l$F$7$^$$$^$9!#(B</div><div>$B$=$NItJ,$r%3%a%s%H$G$O$:$9$H2hLL$OI=<($5$l$^$9!#(B</div><div>$B$$$m$$$mD4$Y$F$_$?$N$G$9$,!"860x$,$o$+$i$::$$C$F$$$^$9!#(B</div><div><br></div><div><br></div><div>$B%U%!%$%kL>$O(Bindex.jsp$B"*(Bindex2.jsp$B!"(BIndexAction.java$B"*(BIndex2Action.java$B$H$J$C$F$*$j$^$9(B</div>
<div><br></div><div>$B:n6H4D6-$O(B</div><div>windows 7</div><div>Eclipse Java EE IDE for Web Developers</div><div>dolteng$B%W%m%8%'%/%H(B</div><div>MySQL$B$G$9(B</div><div><br></div><div>Index2Action.java$B"-(B</div><div><br></div><div><br></div><div>
<div>package net.bbs.action;</div><div><br></div><div>import java.util.List;</div><div><br></div><div>import net.bbs.entity.Message;</div><div>import net.bbs.service.MessageService;</div><div><br></div><div>import org.seasar.struts.annotation.Execute;</div>
<div><br></div><div>public class Index2Action {</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>public String userName;</div><div>
<span style="white-space:pre-wrap">        </span>public String text;</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span></div>
<div><span style="white-space:pre-wrap">        </span>public List<Message> messages;</div><div><span style="white-space:pre-wrap">        </span>@Execute(validator=false)</div><div><span style="white-space:pre-wrap">        </span>public String index2(){</div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>messages = MessageService.loadMessages();</div><div><span style="white-space:pre-wrap">                </span></div>
<div><span style="white-space:pre-wrap">                </span>return "index2.jsp";</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div><br></div><div><span style="white-space:pre-wrap">        </span>@Execute(validator=true, input="index2.jsp")$B!!"+$3$3$G#4#0#4%(%i!<$,$G$^$9(B</div>
<div><span style="white-space:pre-wrap">        </span>public String sendMessage(){</div><div><span style="white-space:pre-wrap">                </span>MessageService.registMessage(userName, text);</div><div>
<span style="white-space:pre-wrap">                </span>return "?redirect=true";</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div>}</div></div><div><br></div>
<div><br></div><div>index2.jsp$B"-(B</div><div><div><%@page pageEncoding="UTF-8"%></div><div><html></div><div><head></div><div><title>$B4JC1$J7G<(HD(B</title></div><div></head></div><div><body></div>
<div><div>$B4JC1$J7G<(HD(B</div></div><div><div></div><div><form action="${/sendMessage}" method="POST"></div><div><input type="text" name="userName" placeholder="$BL>A0(B" /></div>
<div><br /></div><div><textarea name="userName" placeholder="$BK\J8(B"></textarea></div><div><input type="submit" /></div><div></form></div><div><br></div><div></div></div>
<div><c:forEach var="message" items="${messages }"></div><div><div style="border:solid 1px #333"></div><div><div style="floot:left;width:100px">${f:h(message.userName) }</div></div>
<div><div style="floot:left;margin-left:10px">${f:br(f:h(message.text)) }</div></div><div><br style="clear:both"/></div><div></div></div><div></c:forEach></div><div></body></div>
<div></html></div></div><div><br></div><div>$B$h$m$7$/$*4j$$$$$?$7$^$9!#(B</div>
<br></div></div><div class="im">_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
<br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/</div><div>_/ </div><div>_/ $B%7%J%8!<%\%C%/%93t<02q<R(B</div><div>_/ SI$B;v6HIt!!>B_7(B $B=(L@(B</div>
<div>_/ EMail$B!'(B <a href="mailto:numasawa@synergybox.co.jp" target="_blank">numasawa@synergybox.co.jp</a> </div>
<div>_/ </div><div>_/ $BEl5~ET?7=I6hBg5WJ](B2-4-15 $B%5%s%i%$%:?7=I(B 7F</div><div>_/ TEL$B!'(B03-5155-2771</div><div>_/ FAX$B!'(B03-5155-2772</div><div>_/ </div><div>_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/</div><div><br></div><br>
</font></span></div>
<br>_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
<br></blockquote></div><br></div>