$B$*@$OC$K$J$C$F$$$^$9!#(B<br><br>
<div><span class="gmail_quote">07/06/06 $B$K(B <b class="gmail_sendername">$B55ED0lO:(B</b> <<a href="mailto:kameda.ichiro@gmail.com">kameda.ichiro@gmail.com</a>> $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">
<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> </div>
<div><span class="gmail_quote">07/06/06 $B$K(B <b class="gmail_sendername">Kenji Yamaguchi</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:k.yamaguchi@ts.infocom.co.jp" target="_blank">k.yamaguchi@ts.infocom.co.jp
</a>> $B$5$s$O=q$-$^$7$?(B:</span>
<div><span class="e" id="q_112febd724b38ed5_1">
<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 onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.seasar.org/issues/browse/TEEDA-305" target="_blank">
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 onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:seasar-user-bounces@ml.seasar.org" target="_blank">
seasar-user-bounces@ml.seasar.org</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:seasar-user-bounces@ml.seasar.org" target="_blank"> seasar-user-bounces@ml.seasar.org</a>] On Behalf Of Shinpei Ohtani
<br>Sent: Wednesday, June 06, 2007 10:09 AM<br>To: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:seasar-user@ml.seasar.org" target="_blank">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</blockquote></span></div></div></blockquote>
<div>*** LoginInterceptor2$B$r%a%C%;!<%8=PNO$9$kMM$KJQ99$7$F%F%9%H$7$F$_$^$7$?(B</div>
<div>
<p>public class LoginInterceptor2 implements MethodInterceptor {</p>
<p>...$B>JN,(B...</p>
<p> public Object invoke(MethodInvocation invocation) throws Throwable {<br> System.out.println("LoginInterceptor2...$B5/F0(B");<br> $B!D>JN,!D(B</p>
<p> }<br> return "error";<br> }</p>
<p>}</p>
<p>***$B<!$NDL$j%a%C%;!<%8$N=PNO$,3NG'$G$-$k$3$H$G!"(BLoginInterceptor2$B$N5/F03NG'$r9T$$$^$7$?!#(B</p>
<p>....$B>JN,(B....<br>DEBUG 2007-06-06 11:16:26,566 [http-8080-Processor25] BEGIN test.web.logincheck2<br>.Logincheck2Page#initialize()<br>##### Start initialize() #####<br>DEBUG 2007-06-06 11:16:26,566 [http-8080-Processor25] END
test.web.logincheck2.L<br>ogincheck2Page#initialize() : null<br>DEBUG 2007-06-06 11:16:26,576 [http-8080-Processor25] HOT deploy$B$r=*N;$7$^$7$?(B<br>DEBUG 2007-06-06 11:16:28,819 [http-8080-Processor25] HOT deploy$B$r3+;O$7$^$9(B<br>DEBUG 2007-06-06 11:16:28,879 [http-8080-Processor25] $B%/%i%9(B(
test.web.logincheck<br>2.Logincheck2Page[logincheck2_logincheck2Page])$B$N%3%s%]!<%M%s%HDj5A$rEPO?$7$^$9(B<br>DEBUG 2007-06-06 11:16:28,919 [http-8080-Processor25] BEGIN test.web.logincheck2<br>.Logincheck2Page#doAuth()<br>LoginInterceptor2...$B5/F0(B
<br>DEBUG 2007-06-06 11:16:28,919 [http-8080-Processor25] END test.web.logincheck2.L<br>ogincheck2Page#doAuth() : error<br>....$B>JN,(B....<br></p></div>
<div> </div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><span class="e" id="q_112febd724b38ed5_1">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">$B!&(Bcustomizer.dicon$B$,2?$+$*$+$7$$$+$b$7$l$^$;$s!#(B</blockquote></span></div></div></blockquote>
<div>*** customizer.dicon$B$NFbMF$O<!$NDL$j$G$9!#(B</div>
<div> </div>
<div>
<p><?xml version="1.0" encoding="UTF-8"?><br><!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN"<br> "<a href="http://www.seasar.org/dtd/components21.dtd">http://www.seasar.org/dtd/components21.dtd
</a>"><br><components><br> <component name="maiAspectCustomizer" class="org.seasar.framework.container.customizer.AspectCustomizer"><br> <property name="interceptorName">"
s2mai.s2MaiInterceptor"</property><br> </component></p>
<p> <component name="maiCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"><br> <initMethod name="addCustomizer"><br> <arg>defaultCustomizer</arg>
<br> </initMethod><br> <initMethod name="addCustomizer"><br> <arg>maiAspectCustomizer</arg><br> </initMethod><br> </component></p>
<p> <component name="loginInterceptor" <br> class="test.interceptor.LoginInterceptor" /><br> <component name="testCustomizer" <br> class="org.seasar.framework.container.customizer.AspectCustomizer
"><br> <initMethod name="addInterceptorName"><br> <arg>"loginInterceptor"</arg> <br> </initMethod><br> <property name="useLookupAdapter">true</property>
<br> <property name="pointcut">"doExecute"</property> <br> </component></p>
<p> <component name="loginInterceptor2" <br> class="test.interceptor.LoginInterceptor2" /></p>
<p> <component name="testCustomizer2" <br> class="org.seasar.framework.container.customizer.AspectCustomizer"><br> <initMethod name="addInterceptorName"><br> <arg>"loginInterceptor2"</arg>
<br> </initMethod><br> <property name="pointcut">"doAuth"</property> <br> </component></p>
<p><br> <component name="pageCustomizer" <br> class="org.seasar.framework.container.customizer.CustomizerChain"><br> <initMethod name="addCustomizer"><br> <arg>pageSupportAspectCustomizer</arg>
<br> </initMethod><br> <initMethod name="addCustomizer"><br> <arg>testCustomizer</arg> <br> </initMethod><br> <initMethod name="addCustomizer"><br> <arg>testCustomizer2</arg>
<br> </initMethod><br> </component></p>
<p> </p>
<p> </p>
<p> <component name="defaultCustomizer" class="org.seasar.framework.container.customizer.AspectCustomizer"><br> <property name="interceptorName">"aop.traceInterceptor"</property>
<br> </component><br> <component name="commandAspectCustomizer" class="org.seasar.framework.container.customizer.AspectCustomizer"><br> <property name="interceptorName">"
aop.traceInterceptor"</property><br> <property name="pointcut">"do.*, initialize, prerender"</property><br> </component><br> <component name="actionSupportAspectCustomizer" class="
org.seasar.framework.container.customizer.AspectCustomizer"><br> <property name="interceptorName">"app_aop.actionSupportInterceptor"</property><br> <property name="pointcut">"do.*, initialize, prerender"</property>
<br> </component><br> <component name="actionCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"><br> <initMethod name="addCustomizer"><br> <arg>commandAspectCustomizer</arg>
<br> </initMethod><br> <initMethod name="addCustomizer"><br> <arg>actionSupportAspectCustomizer</arg><br> </initMethod><br> </component><br> <component name="daoCustomizer" class="
org.seasar.framework.container.customizer.CustomizerChain"><br> <initMethod name="addCustomizer"><br> <arg>defaultCustomizer</arg><br> </initMethod><br> </component><br>
<component name="dtoCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"><br> </component><br> <component name="dxoCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain
"><br> <initMethod name="addCustomizer"><br> <arg>defaultCustomizer</arg><br> </initMethod><br> </component><br> <component name="helperCustomizer" class="
org.seasar.framework.container.customizer.CustomizerChain"><br> <initMethod name="addCustomizer"><br> <arg>defaultCustomizer</arg><br> </initMethod><br> </component><br>
<component name="logicCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"><br> <initMethod name="addCustomizer"><br> <arg>defaultCustomizer</arg>
<br> </initMethod><br> </component><br> <component name="pageSupportAspectCustomizer" class="org.seasar.framework.container.customizer.AspectCustomizer"><br> <initMethod name="addInterceptorName">
<br> <arg>"aop.traceInterceptor"</arg><br> </initMethod><br> <initMethod name="addInterceptorName"><br> <arg>"app_aop.appFacesExceptionThrowsInterceptor"</arg>
<br> </initMethod><br> <property name="pointcut">"do.*, initialize, prerender"</property><br> </component></p>
<p> <component name="serviceCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"><br> <initMethod name="addCustomizer"><br> <arg>defaultCustomizer</arg>
<br> </initMethod><br> </component><br> <component name="interceptorCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"><br> </component><br> <component name="validatorCustomizer" class="
org.seasar.framework.container.customizer.CustomizerChain"><br> </component><br> <component name="converterCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain">
<br> </component></p>
<p> </components></p></div>
<div> </div>
<div> </div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><span class="e" id="q_112febd724b38ed5_1">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">$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</blockquote></span></div></div></blockquote>
<div> </div>
<div>/lib$B$NFbMF$O0J2<$NDL$j$G$9(B</div>
<div>aopalliance-1.0.jar<br>commons-collections-3.1.jar<br>commons-el-1.0.jar<br>commons-fileupload-1.2.jar<br>commons-io-1.3.1.jar<br>commons-lang-2.2.jar<br>commons-logging-1.1.jar<br>freemarker-2.3.9.jar<br>geronimo-ejb_2.1_spec-
1.0.jar<br>geronimo-j2ee_1.4_spec-1.0.jar<br>geronimo-jsp_2.0_spec-1.0.jar<br>geronimo-jta_1.1_spec-1.0.jar<br>h2-2007-01-30.jar<br>hsqldb-1.8.0.1.jar<br>javaee.jar<br>javassist-3.4.ga.jar<br>jstl-1.1.2.jar<br>log4j-1.2.13.jar
<br>ognl-2.6.7.jar<br>ozacc-mail-1.1.7.jar<br>poi-2.5.1-final-20040804.jar<br>rhino-1.6r2.jar<br>s2-dao-1.0.40.jar<br>s2-dao-tiger-1.0.40.jar<br>s2-extension-2.4.13.jar<br>s2-framework-2.4.13.jar<br>s2-tiger-2.4.13.jar<br>
s2mai-0.9.1.jar<br>teeda-ajax-1.0.7.jar<br>teeda-core-1.0.7.jar<br>teeda-extension-1.0.7.jar<br>teeda-tiger-1.0.7.jar<br>teeda-xmlunit-0.1.0.jar<br>tomahawk-1.1.1.jar<br>xercesImpl-2.6.2.jar<br>xmlParserAPIs-2.6.2.jar<br>
xmlunit-1.0.jar</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><span class="e" id="q_112febd724b38ed5_1">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">07/06/06 $B$K(B $B55ED0lO:(B<<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:kameda.ichiro@gmail.com" target="_blank">
kameda.ichiro@gmail.com</a>> $B$5$s$O=q$-$^$7$?(B:<br>> $B55ED$H?=$7$^$9!#(B<br>> $B=i$a$FEj9F$7$^$9!#(B<br>> $B59$7$/$*4j$$$7$^$9!#(B<br>><br>> AOP$B$K$h$kG'>Z%A%'%C%/$N%5%s%W%k$r:n$C$F$$$^$9!#(B<br>> S2Container$B$H(BTeeda$B$N%P!<%8%g%s$rJQ99$7$?$i!"(B <br>> $B%W%m%0%i%`$,@5>o$KF0:n$7$J$/$J$j!"860x$,J,$+$j$^$;$s!#(B<br>> $B3'MM$N$465<($r;r$j$?$/Ej9F$7$^$7$?!#(B
<br>><br>> $B"#4D6-(B1(S2Container-2.4.10$B$H(BTeeda-1.0.4)<br>> s2-extension-2.4.10.jar,s2-framework-2.4.10.jar,s2-tiger-2.4.10.jar<br>> teeda-core-1.0.4.jar ,teeda-extension-1.0.4.jar,teeda-tiger-1.0.4.jar<br>> $BB>B??t(B
<br>><br>> $B"#4D6-(B2(S2Container-2.4.13$B$H(BTeeda-1.0.7)<br>> s2-extension-2.4.13.jar,s2-framework-2.4.13.jar,s2-tiger-2.4.13.jar<br>> 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>> $BB>B??t(B<br>><br>> $B"#%W%m%0%i%`9=@.(B<br>> LoginInterceptor2.java<br>> LoginUserDto.java @Component(instance = InstanceType.SESSION)$B$G(B<br>> $B%;%C%7%g%s$KJ]4I(B <br>> login2.html ---->Login2Page.java<br>>
<br>> $B%m%0%*%U$O(B@RemoveSession(name="loginUserDto")<br>> logincheck2.html---->Logincheck2Page.java<br>><br>> $B"#%F%9%H$N35MW(B<br>> $B!&(Blogin2.html$B$GF~NO$7$?%m%0%$%s>pJs$r(BLogin2Page$B$G%A%'%C%/$7(B <br>> $B7k2L$r(BLoginUserDto$B$K%;%C%H$7!"%;%C%7%g%s$KJ]4I$7$^$9!#(B
<br>> $B!&(Blogincheck2.html$B$O%F%9%HMQ(Bhtml$B$G!"2hLL>e$N(Bsubmit$B%\%?%s$r(B<br>> $B2!2<$9$k$H(BLogincheck2Page$B$N(BdoAuth()$B%a%=%C%I$r8F$S=P$7$^$9!#(B<br>> $B!&(BdoAuth()$B%a%=%C%I$K$O(BAOP$B$,E,MQ$5$l$F$*$j!"(BLoginInterceptor2$B$,(B<br>> LoginUserDto$B$N%m%0%$%s>pJs$r%A%'%C%/$7!"G'>Z(BOK$B$H%(%i!<$K(B <br>> $BBP1~$7$F2hLL$KA+0\$7$^$9!#(B
<br>><br>> $B"#4D6-(B1$B$O@5>o$KF0:n$7$^$9!#(B<br>><br>> $B"#4D6-(B2$B$N>l9g!"(B<br>><br>> 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>> Logincheck2Page$B$K$O(BDI$B$5$l$^$9(B<br>> 2.Login2Page$B$N%m%0%*%U$G(BLoginUserDto$B$,%;%C%7%g%s$+$i:o=|$5$l$^$;$s(B
<br>> @RemoveSession(name="loginUserDto")$B$,Mx$+$J$$(B<br>><br>> $B"#%=!<%9(B<br>><br>> $B!Z(BLoginInterceptor2$B![(B<br>> package test.interceptor;<br>><br>> $B!D(B $B>JN,(B $B!D(B<br>><br>> public class LoginInterceptor2 implements MethodInterceptor {
<br>><br>> private LoginUserDto loginUserDto;<br>><br>> public void setLoginUserDto(LoginUserDto loginUserDto){<br>> this.loginUserDto = loginUserDto; }<br>><br>> public Object invoke(MethodInvocation invocation) throws Throwable {
<br>><br>> if(loginUserDto!=null){<br>> if(loginUserDto.isAuthed()){<br>> System.out.println("@@@@@@@@@ $BA0(B");<br>> Object obj = invocation.proceed();<br>>
System.out.println("@@@@@@@@@ $B8e(B");<br>> return obj;<br>> }<br>> }<br>> return "error";<br>> }<br>> }<br>><br>> $B!Z(BLoginUserDto$B![(B<br>> package test.web.dto
;<br>> import org.seasar.framework.container.annotation.tiger.*;<br>><br>> @Component(instance = InstanceType.SESSION) public class LoginUserDto<br>> {<br>> private String userId;<br>> private boolean authed;
<br>> public String getUserId() { return userId; }<br>> public void setUserId(String userId) { this.userId = userId; }<br>> public boolean isAuthed() { return authed; }
<br>> public void setAuthed(boolean authed) { this.authed = authed; }<br>> }<br>><br>> $B!Z(BLogin2Page$B![(B<br>><br>> package test.web.login2;<br>><br>> $B!D(B $B>JN,(B $B!D(B<br>><br>> public class Login2Page {
<br>><br>> private String userId;<br>> private String password;<br>> private boolean loggedin=true;<br>> private String loginMsg = "$B=i4|%a%C%;!<%8(B";<br>><br>> private LoginUserDto loginUserDto;
<br>><br>> $B!D(B $B>JN,(B $B!D(B(setter/getter)<br>><br>> public void setLoginUserDto(LoginUserDto loginUserDto) {<br>> this.loginUserDto = loginUserDto;<br>> }<br>><br>> public String doLogin() {<br>
> System.out.println("#### start doLogin() ####");<br>> if(userId.equals("user") && password.equals("user")) {<br>> loginUserDto.setAuthed(true);<br>>
loginUserDto.setUserId(userId);<br>> loginMsg = "$B%m%0%$%s@.8y(B";<br>> loggedin = true;<br>> return "success";<br>> } else {<br>> loginUserDto.setAuthed(false);<br>> loginMsg = "$B%m%0%$%s<:GT(B";
<br>> loggedin = false;<br>> return "error";<br>> }<br>><br>> }<br>><br>> @RemoveSession(name="loginUserDto")<br>> public String doLogout() {<br>> System.out.println
("#### start doLogout() ####");<br>> return null;<br>> }<br>><br>> public String prerender() {<br>> System.out.println("#### start prerender() ####");<br>><br>> if(
loginUserDto.isAuthed()) {<br>> loggedin = true;<br>> } else {<br>> loggedin = false;<br>> }<br>> return null;<br>> }<br>> }<br>><br>> $B!Z(BLogincheck2Page$B![(B<br>><br>> package
test.web.logincheck2;<br>><br>> $B!D(B $B>JN,(B $B!D(B<br>><br>> public class Logincheck2Page {<br>><br>> $B!D(B $B>JN,(B $B!D(B<br>><br>> private LoginUserDto loginUserDto;<br>> public void setLoginUserDto(LoginUserDto loginUserDto){
<br>> his.loginUserDto = loginUserDto ;<br>> }<br>><br>> public String initialize(){<br>> System.out.println("##### Start initialize() #####");<br>> statMsg="$B%m%0%$%s>5G'L$:Q(B";
<br>> if(loginUserDto!=null){<br>> if(loginUserDto!=null){<br>> if(loginUserDto.isAuthed ()){<br>> statMsg="$B%m%0%$%s>5G':Q$_(B";<br>> }<br>> }<br>> }<br>> return null;
<br>> }<br>> public String doAuth() {<br>> System.out.println("##### Start doAuth() #####");<br>> return null;<br>> }<br>> }<br>><br>><br>><br>><br>><br>> _______________________________________________
<br>> Seasar-user mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">
https://ml.seasar.org/mailman/listinfo/seasar-user </a><br>><br>><br><br><br>--<br>=============================<br>Shinpei Ohtani<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:shinpei.ohtani@gmail.com" target="_blank">
shinpei.ohtani@gmail.com</a><br>=============================<br>_______________________________________________ <br>Seasar-user mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Seasar-user@ml.seasar.org" target="_blank">
Seasar-user@ml.seasar.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a> <br>
<br><br>_______________________________________________<br>Seasar-user mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br></blockquote></span></div>
</div><br></blockquote></div><br>