<div>SessionScope$B$r;H$C$FG'>Z%A%'%C%/$r9T$J$&%5%s%W%k$b:n@.$7$^$7$?$,!"(B</div>
<div>$B$=$N>l9g$O!"4D6-(B1$B!"4D6-(B2$B$H$b@5>o$KF0:n$7$^$7$?!#(B<br><br>&nbsp;</div>
<div><span class="gmail_quote">07/06/06 $B$K(B <b class="gmail_sendername">Kenji Yamaguchi</b> &lt;<a href="mailto:k.yamaguchi@ts.infocom.co.jp">k.yamaguchi@ts.infocom.co.jp</a>&gt; $B$5$s$O=q$-$^$7$?(B:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">$B$*@$OC$K$J$j$^$9!#(B<br>$B;38}$G$9!#(B<br><br>$B$3$N7o!"$O(B<br><a href="https://www.seasar.org/issues/browse/TEEDA-305">https://www.seasar.org/issues/browse/TEEDA-305
</a><br>$B$NLdBj$G$O$J$$$G$7$g$&$+!)(B<br>$B0c$C$F$$$?$i$9$$$^$;$s!#(B<br><br>-----Original Message-----<br>From: <a href="mailto:seasar-user-bounces@ml.seasar.org">seasar-user-bounces@ml.seasar.org</a> [mailto:<a href="mailto:seasar-user-bounces@ml.seasar.org">
seasar-user-bounces@ml.seasar.org</a>] On Behalf Of Shinpei Ohtani<br>Sent: Wednesday, June 06, 2007 10:09 AM<br>To: <a href="mailto:seasar-user@ml.seasar.org">seasar-user@ml.seasar.org</a><br>Subject: [Seasar-user:8094] Re:S2Container$B$H(BTeeda$B$N%P!<%8%g%s$rJQ99$9$k$H(BInterceptor$B$K(BDI$B$5$l$^$;$s(B
<br><br>$BBgC+$G$9!#(B<br><br>$B$O$:$7$F$$$k$+$b$7$l$^$;$s$,!"(B<br>$B!&(BLoginInterceptor2 $B$OK\Ev$KF0$$$F$$$^$9$G$7$g$&$+!)(B<br>$B%G%P%C%0%]%$%s%H$r$"$F$F$_$F$/$@$5$$!#(B<br>$B!&(Bcustomizer.dicon$B$,2?$+$*$+$7$$$+$b$7$l$^$;$s!#(B<br>$B$3$A$i$O8+$;$F$$$?$@$1$l$P2?$+$o$+$k$+$b$7$l$^$;$s!#(B<br>$B!&4D6-(B2$B$G(BTeeda$B$d(BS2$B$N8E$$(Bjar$B$,(BWEB-INF$B$N2<$K;D$C$F$$$?$j$7$^$;$s$+!)(B<br><br><br>
<br>07/06/06 $B$K(B $B55ED0lO:(B&lt;<a href="mailto:kameda.ichiro@gmail.com">kameda.ichiro@gmail.com</a>&gt; $B$5$s$O=q$-$^$7$?(B:<br>&gt; $B55ED$H?=$7$^$9!#(B<br>&gt; $B=i$a$FEj9F$7$^$9!#(B<br>&gt; $B59$7$/$*4j$$$7$^$9!#(B<br>&gt;<br>&gt; AOP$B$K$h$kG'>Z%A%'%C%/$N%5%s%W%k$r:n$C$F$$$^$9!#(B<br>&gt; S2Container$B$H(BTeeda$B$N%P!<%8%g%s$rJQ99$7$?$i!"(B
<br>&gt; $B%W%m%0%i%`$,@5>o$KF0:n$7$J$/$J$j!"860x$,J,$+$j$^$;$s!#(B<br>&gt; $B3'MM$N$465<($r;r$j$?$/Ej9F$7$^$7$?!#(B<br>&gt;<br>&gt; $B"#4D6-(B1(S2Container-2.4.10$B$H(BTeeda-1.0.4)<br>&gt;&nbsp;&nbsp; s2-extension-2.4.10.jar,s2-framework-2.4.10.jar,s2-tiger-2.4.10.jar<br>&gt;&nbsp;&nbsp; teeda-core-1.0.4.jar
,teeda-extension-1.0.4.jar,teeda-tiger-1.0.4.jar<br>&gt;&nbsp;&nbsp; $BB>B??t(B<br>&gt;<br>&gt; $B"#4D6-(B2(S2Container-2.4.13$B$H(BTeeda-1.0.7)<br>&gt; s2-extension-2.4.13.jar,s2-framework-2.4.13.jar,s2-tiger-2.4.13.jar<br>&gt; teeda-ajax-1.0.7.jar,
teeda-core-1.0.7.jar,teeda-extension-1.0.7.jar,teeda-tiger-1.0.7.jar<br>&gt;&nbsp;&nbsp; $BB>B??t(B<br>&gt;<br>&gt; $B"#%W%m%0%i%`9=@.(B<br>&gt;&nbsp;&nbsp; LoginInterceptor2.java<br>&gt;&nbsp;&nbsp; LoginUserDto.java&nbsp;&nbsp;&nbsp;&nbsp;@Component(instance = InstanceType.SESSION)$B$G(B<br>&gt;&nbsp;&nbsp;$B%;%C%7%g%s$KJ]4I(B
<br>&gt; login2.html&nbsp;&nbsp;&nbsp;&nbsp; ----&gt;Login2Page.java<br>&gt;<br>&gt; $B%m%0%*%U$O(B@RemoveSession(name=&quot;loginUserDto&quot;)<br>&gt;&nbsp;&nbsp; logincheck2.html----&gt;Logincheck2Page.java<br>&gt;<br>&gt; $B"#%F%9%H$N35MW(B<br>&gt; $B!&(Blogin2.html$B$GF~NO$7$?%m%0%$%s>pJs$r(BLogin2Page$B$G%A%'%C%/$7(B
<br>&gt; $B7k2L$r(BLoginUserDto$B$K%;%C%H$7!"%;%C%7%g%s$KJ]4I$7$^$9!#(B<br>&gt;&nbsp;&nbsp; $B!&(Blogincheck2.html$B$O%F%9%HMQ(Bhtml$B$G!"2hLL>e$N(Bsubmit$B%\%?%s$r(B<br>&gt; $B2!2<$9$k$H(BLogincheck2Page$B$N(BdoAuth()$B%a%=%C%I$r8F$S=P$7$^$9!#(B<br>&gt; $B!&(BdoAuth()$B%a%=%C%I$K$O(BAOP$B$,E,MQ$5$l$F$*$j!"(BLoginInterceptor2$B$,(B<br>&gt; LoginUserDto$B$N%m%0%$%s>pJs$r%A%'%C%/$7!"G'>Z(BOK$B$H%(%i!<$K(B
<br>&gt; $BBP1~$7$F2hLL$KA+0\$7$^$9!#(B<br>&gt;<br>&gt; $B"#4D6-(B1$B$O@5>o$KF0:n$7$^$9!#(B<br>&gt;<br>&gt; $B"#4D6-(B2$B$N>l9g!"(B<br>&gt;<br>&gt; 1.LoginInterceptor2$B$K(BLoginUserDto$B$,(BDI$B$5$l$J$$(B(null)$B$?$a!">o$KG'>Z%(%i!<$K$J$j$^$9(B<br>&gt; Logincheck2Page$B$K$O(BDI$B$5$l$^$9(B<br>&gt;&nbsp;&nbsp; 2.Login2Page$B$N%m%0%*%U$G(BLoginUserDto$B$,%;%C%7%g%s$+$i:o=|$5$l$^$;$s(B
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; @RemoveSession(name=&quot;loginUserDto&quot;)$B$,Mx$+$J$$(B<br>&gt;<br>&gt; $B"#%=!<%9(B<br>&gt;<br>&gt; $B!Z(BLoginInterceptor2$B![(B<br>&gt; package test.interceptor;<br>&gt;<br>&gt; $B!D(B $B>JN,(B $B!D(B<br>&gt;<br>&gt; public class LoginInterceptor2 implements MethodInterceptor {
<br>&gt;<br>&gt;&nbsp;&nbsp; private LoginUserDto loginUserDto;<br>&gt;<br>&gt;&nbsp;&nbsp; public void setLoginUserDto(LoginUserDto loginUserDto){<br>&gt; this.loginUserDto = loginUserDto; }<br>&gt;<br>&gt;&nbsp;&nbsp; public Object invoke(MethodInvocation invocation) throws Throwable {
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if(loginUserDto!=null){<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(loginUserDto.isAuthed()){<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;@@@@@@@@@ $BA0(B&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Object obj = invocation.proceed();<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
System.out.println(&quot;@@@@@@@@@ $B8e(B&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return obj;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return &quot;error&quot;;<br>&gt;&nbsp;&nbsp; }<br>&gt; }<br>&gt;<br>&gt; $B!Z(BLoginUserDto$B![(B<br>&gt; package test.web.dto
;<br>&gt; import org.seasar.framework.container.annotation.tiger.*;<br>&gt;<br>&gt; @Component(instance = InstanceType.SESSION) public class LoginUserDto<br>&gt; {<br>&gt;&nbsp;&nbsp; private String userId;<br>&gt;&nbsp;&nbsp; private boolean authed;
<br>&gt;&nbsp;&nbsp; public String&nbsp;&nbsp;getUserId()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { return userId;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&gt;&nbsp;&nbsp; public void&nbsp;&nbsp;&nbsp;&nbsp;setUserId(String userId)&nbsp;&nbsp;&nbsp;&nbsp;{ this.userId = userId;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp; public boolean isAuthed()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ return authed;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<br>&gt;&nbsp;&nbsp; public void&nbsp;&nbsp;&nbsp;&nbsp;setAuthed(boolean authed)&nbsp;&nbsp; { this.authed = authed;&nbsp;&nbsp; }<br>&gt; }<br>&gt;<br>&gt; $B!Z(BLogin2Page$B![(B<br>&gt;<br>&gt; package test.web.login2;<br>&gt;<br>&gt; $B!D(B $B>JN,(B $B!D(B<br>&gt;<br>&gt; public class Login2Page {
<br>&gt;<br>&gt;&nbsp;&nbsp; private String&nbsp;&nbsp;userId;<br>&gt;&nbsp;&nbsp; private String&nbsp;&nbsp;password;<br>&gt;&nbsp;&nbsp; private boolean loggedin=true;<br>&gt;&nbsp;&nbsp; private String&nbsp;&nbsp;loginMsg = &quot;$B=i4|%a%C%;!<%8(B&quot;;<br>&gt;<br>&gt;&nbsp;&nbsp; private LoginUserDto loginUserDto;
<br>&gt;<br>&gt;&nbsp;&nbsp;$B!D(B $B>JN,(B $B!D(B(setter/getter)<br>&gt;<br>&gt;&nbsp;&nbsp; public void&nbsp;&nbsp;&nbsp;&nbsp;setLoginUserDto(LoginUserDto loginUserDto) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; this.loginUserDto = loginUserDto;<br>&gt;&nbsp;&nbsp; }<br>&gt;<br>&gt;&nbsp;&nbsp; public String doLogin() {<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;#### start doLogin() ####&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if(userId.equals(&quot;user&quot;) &amp;&amp; password.equals(&quot;user&quot;)) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loginUserDto.setAuthed(true);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
loginUserDto.setUserId(userId);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loginMsg = &quot;$B%m%0%$%s@.8y(B&quot;;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loggedin = true;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return &quot;success&quot;;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loginUserDto.setAuthed(false);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loginMsg = &quot;$B%m%0%$%s<:GT(B&quot;;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loggedin = false;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return &quot;error&quot;;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt;&nbsp;&nbsp; }<br>&gt;<br>&gt;&nbsp;&nbsp; @RemoveSession(name=&quot;loginUserDto&quot;)<br>&gt;&nbsp;&nbsp; public String doLogout() {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println
(&quot;#### start doLogout() ####&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return null;<br>&gt;&nbsp;&nbsp; }<br>&gt;<br>&gt;&nbsp;&nbsp; public String prerender() {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;#### start prerender() ####&quot;);<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if(
loginUserDto.isAuthed()) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loggedin = true;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; loggedin = false;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return null;<br>&gt;&nbsp;&nbsp; }<br>&gt; }<br>&gt;<br>&gt; $B!Z(BLogincheck2Page$B![(B<br>&gt;<br>&gt; package 
test.web.logincheck2;<br>&gt;<br>&gt; $B!D(B $B>JN,(B $B!D(B<br>&gt;<br>&gt; public class Logincheck2Page {<br>&gt;<br>&gt; $B!D(B $B>JN,(B $B!D(B<br>&gt;<br>&gt;&nbsp;&nbsp; private LoginUserDto loginUserDto;<br>&gt;&nbsp;&nbsp; public void setLoginUserDto(LoginUserDto loginUserDto){
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; his.loginUserDto = loginUserDto ;<br>&gt;&nbsp;&nbsp; }<br>&gt;<br>&gt;&nbsp;&nbsp; public String initialize(){<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;##### Start initialize() #####&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; statMsg=&quot;$B%m%0%$%s>5G'L$:Q(B&quot;;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if(loginUserDto!=null){<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(loginUserDto!=null){<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(loginUserDto.isAuthed ()){<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; statMsg=&quot;$B%m%0%$%s>5G':Q$_(B&quot;;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return null;
<br>&gt;&nbsp;&nbsp; }<br>&gt;&nbsp;&nbsp; public String doAuth() {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;##### Start doAuth() #####&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return null;<br>&gt;&nbsp;&nbsp; }<br>&gt; }<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Seasar-user mailing list<br>&gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user
</a><br>&gt;<br>&gt;<br><br><br>--<br>=============================<br>Shinpei Ohtani<br><a href="mailto:shinpei.ohtani@gmail.com">shinpei.ohtani@gmail.com</a><br>=============================<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">https://ml.seasar.org/mailman/listinfo/seasar-user</a>
<br><br><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">
https://ml.seasar.org/mailman/listinfo/seasar-user</a><br></blockquote></div><br>