[Seasar-user:14849] [SAStruts] ActionForm (セッション)の初期化について
[E-MAIL ADDRESS DELETED]
[E-MAIL ADDRESS DELETED]
2008年 6月 27日 (金) 18:33:36 JST
$B2,Fb$G$9!#(B
$B$*@$OC$K$J$C$F$*$j$^$9!#(B
sa-struts-tutorial$B$G(BActionForm$B$r;H$C$?Nc$,$"$j$^$9$,!"(B
$B:G=i$N2hLL$+$iF~NO$7$F$$$C$?>pJs$O(BActionForm$B$K3JG<$5$l!"(B
$B%;%C%7%g%s>e$G4IM}$5$l$F$$$^$9!#(B
$B$3$3$GNc$($P!":G=i$N2hLL!J(Bindex$B%a%=%C%I$,8F$P$l$?!K$G$O(BActionForm$B$N(B
$BA4FbMF$r%/%j%"$7$?$$$H$7$^$9!#(B
index$B%a%=%C%I$r<!$N$h$&$K$7$F7k2L$r8+$F$_$^$7$?!#(B
$B-!(BActionForm$B$r=i4|2=(B
@Execute(validator = false)
public String index()
{
formDto = new FormDto();
return "index.jsp";
}
$B7k2L!'%a%=%C%IFb$G$O=i4|2=$5$l$F$$$k$,!"(Bindex.jsp$B$G$O%F%-%9%H%\%C%/%9$KA02s(B
$B$N(B
$BCM$,I=<($5$l$k(B
$B-"(Bsession.removeAttribute$B$r;HMQ(B
@Execute(validator = false)
public String index()
{
session.removeAttribute("formDto");
return "index.jsp";
}
$B7k2L!'C<Kv![E-MAIL ADDRESS DELETED]!)!K$K$h$C$F!"(Bindex.jsp$B$N%F%-%9%H%\%C%/%9$,>C$($k>l9g$H>C$((B
$B$J$$>l9g$,$"$C$?(B
$B$J$*!"%I%-%e%a%s%H$K$"$k$h$&$K!"(BTomcat$B$N(Bcontext.xml$B$N=$@5$O$*$3$J$C$F$"$j$^(B
$B$9!#(B
$B$I$N$h$&$K$9$k$Y$-$J$N$+!"$465<x$$$?$@$-$?$/$*4j$$$$$?$7$^$9!#(B
$B0J>e(B
Seasar-user メーリングリストの案内