<div>$B>.NS$5$s!"(BInterceptor$B$KBP$9$k(BDTO$B$N(BDI$B$K$D$$$F$O$*@$OC$K$J$j$^$7$?!#(B<br>Interceptor$B$NLdBj$N;~!"K\7o$bF1;~$KH/@8$7$F$$$^$7$?!#(B</div>
<div>Interceptor$B$N7o$,2r7h$7$^$7$?$N$G!"(B@RemoveSession$B$,(B<br>$B5!G=$7$J$$7o$K$D$$$F$"$i$?$a$FEj9F$5$;$FD:$-$^$9!#(B</div>
<p><br>$B!Z=hM}35MW(B($B%F%9%H<j=g(B)$B![(B<br>$B!!(B1.login2.html$B$rI=<($7!"%m%0%$%s$7$^$9!#(B<br>$B!!(B2.$B%a%K%e!<2hLL$KLa$j$^$9(B<br> 3.$B%m%0%*%U%\%?%s$,I=<($5$l$k$N$G!"%/%j%C%/$7$^$9!#(B<br> <br>$B!ZLdBj![(B<br>$B!!!&%m%0%*%U%\%?%s$r%/%j%C%/$9$k$H(B doLogout()$B$,8F$S=P$5$l$^$9$,!"(B<br>$B!!!!(BloginUserDto$B$O:o=|$5$l$^$;$s!#(B<br> $B$D$^$j!"(B@RemoveSession(name="loginUserDto")$B$,5!G=$7$F$$$^$;$s!#(B
<br> $B!&K\7o$b(BS2Container-2.4.10,Teeda-1.0.4$B$G$O@5>o$KF0:n$7$^$9$,!"(B<br> S2Container-2.4.13,Teeda-1.0.7$B$G$O(B@RemoveSession$B$,5!G=$7$^$;$s!#(B</p>
<p>$B!Z(Blogin2.html$B![(B<br>...$B>JN,(B...<br><form class="loginForm" method="POST"><br><div id="isLoggedin"><br><p>$B%m%0%$%s:Q$_$G$9(B</p><br><input id="doLogout" type="submit" value="$B%m%0%*%U(B"/>
<br></div><br><div id="isNotLoggedin"><br><table border="2"><br><tr><td class="table_td">$B%f!<%6(BID</td><td><input id="userId" type="text"/></td></tr>
<br><tr><td class="table_td">$B%Q%9%o!<%I(B</td><td><input id="password" type="password"/></td></tr><br><tr><td colspan="2" align="center">
<br><input id="doLogin" type="submit" value="$B%m%0%$%s(B" style="{cursor:hand}"/><br></td></tr><br>...$B>JN,(B...</p>
<p>$B!Z(BLogin2Page$B![(B</p>
<p>package test.web.login2;</p>
<p>...$B>JN,(B(import)...</p>
<p>public class Login2Page {</p>
<p>... $B>JN,(B($B%W%m%Q%F%#!"%2%C%?!<!"%;%C%?!<(B)....</p>
<p> private LoginUserDto loginUserDto; //Dto$B$r(BDI$B$9$k(B<br> public void setLoginUserDto(LoginUserDto loginUserDto) {<br> this.loginUserDto = loginUserDto;<br> }</p>
<p> public String doLogin() {<br>...$B>JN,(B($B%m%0%$%s%A%'%C%/!"%m%0%$%s>pJs$N(BloginUserDto$B$X$N3JG<(B)...<br> }</p>
<p> @RemoveSession(name="loginUserDto")<br> public String doLogout() {<br> System.out.println("#### start doLogout() ####");<br> return null;<br> }<br>}</p>
<p>$B!Z(BLoginUserDto.java$B![(B<br>package test.web.dto;<br>import org.seasar.framework.container.annotation.tiger.*;</p>
<p>@Component(instance = InstanceType.SESSION)<br>public class LoginUserDto {</p>
<p> private String userId; <br> private boolean authed; <br>...$B>JN,(B($B%2%C%?!<!"%;%C%?!<(B)...<br>}</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>