$B$*@$OC$K$J$j$^$9!#(B<br>$BD9Eg$H?=$7$^$9!#(B<br><br>Action$B$G%(%i!<=hM}$r9T$C$?8e$K!"%(%i!<2hLL$rI=<($7$?$$$N$G$9$,!"(B<br>response$B$,(BDI$B$5$l$:$K(Bnull$B$K$J$C$F$$$^$9!#(B<br><br>$B:F8=J}K!$O2<5-$NDL$j$G$9!#(B<br><br>sa-struts1.0.4-sp4$B$N%A%e!<%H%j%"%kFb$N(Bweb.xml$B$K$O2<5-$NMM$K(Berror-page$B$rDI5-$7$^$7$?!#(B<br>
<br> <error-page><br> <error-code>404</error-code><br> <location>/error.do</location><br> </error-page><br> <error-page><br> <exception-type>java.lang.Exception</exception-type><br>
<location>/error.do</location><br> </error-page><br><br>Action$B$O2<5-$NMM$K$7$^$7$?!#(B<br><br>package tutorial.action;<br>public class ErrorAction {<br><br> @Resource<br> protected HttpServletResponse response;<br>
<br> @Execute(validator = false)<br> public String index() {<br> System.out.println(response);<br> System.out.println(SingletonS2ContainerFactory.getContainer().getComponent(HttpServletResponse.class));<br>
return "error.jsp";<br> }<br>}<br><br>error.jsp$B$O(Bnorole.jsp$B$r%3%T!<$7$?$@$1$N$b$N$G$9!#(B<br><br>$B$3$N>uBV$GB8:_$7$J$$(BURL$B$K%"%/%;%9$7$F$_$?$H$3$m!"(B<br>Action$B$K=hM}$OMh$k$N$G$9$,!"(Bresponse$B$,(Bnull$B$N$^$^$G$9!#(B<br>request$B$O(BDI$B$5$l$k$3$H$r3NG'$7$^$7$?!#(B<br><br>$B>e5-$N$h$&$K0lEY(BAction$B$KHt$S(Bresponse$B$r?($k;v$O2DG=$G$7$g$&$+!#(B<br>
$B2?$+@_DjJ}K!$J$I$"$j$^$7$?$i!"$465<x4j$$$^$9!#(B<br><br>$B!Z4D6-![(B<br>sa-struts1.0.4-sp4<br>tomcat 6.0.18<br><br>