A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Action Switching problem
Joined: Apr 09, 2007
May 23, 2008 12:28:00
I got two action classes (say A1 and A2) and two form beans (F1 and F2).
Iam populating F2 in A1 and transferring the control to A2 (which has mapping to F2). But iam getting all "null" values.
How should i retain the values in form F2 when switching the class???
struts-config.xml is listed below.
<action path="/A1.do" name="F1" scope="session" type="A1">
<forward name="OK" path="/A2.do" redirect="true"/>
<action path="/A2.do" name="F2" scope="session" type="A2">
<forward name="Success" path="/success.jsp/>
Thanks in advance.
Joined: Apr 16, 2008
May 23, 2008 13:08:00
You are not populating the F2 instance in A1 beacause it does not exist yet. This is why you are getting null values.
subject: Action Switching problem
Getting the Parser Error struts
struts form being cleared in IE 6
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014