This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes problem in getting data from request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem in getting data from request " Watch "problem in getting data from request " New topic

problem in getting data from request

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 131
i have the following setup
I have Action class (PL1079DispatchAction) which
populates a DynaValidatorForm (PL1820DeleteForm)and
puts it in the request, and forwards to a jsp, this
jsp has a bean defined with request scope with the
same form which was set in Action class
(PL1079DispatchAction) so i get the values set in
DynaValidatorForm in my jsp, and then from this jsp i
submit to another Action class (PL1820DeleteAction),
and in this Action class (PL1820DeleteAction) i want
the DynaValidatorForm(PL1820DeleteForm) set in my
first Action class (PL1079DispatchAction) in request,
But in the second Action class(PL1820DeleteAction) i
dont get the values set in request in my first Action
What wrong am i doing???
here are my definiations of in struts-config xml
<!-- form bean for mapsForm -->
<form-bean name="mapsForm"
<form-property name="nextpage"
type="java.lang.String" />
<form-property name="goto"
type="java.lang.String" />
<form-property name="select"
type="java.lang.String[]" />
<!-- form bean for Pl1820Delete -->
<form-bean name="PL1820DeleteForm"
<form-property name="input1"
type="java.util.ArrayList" />
<action name="mapsForm"
parameter="nextpage" scope="request"
<forward name="add"
path="/pages/planning/PL1079Add.jsp" />
<forward name="change"
path="/pages/planning/PL1079Change.jsp" />
<forward name="delete"
path="/pages/planning/PL1079Delete.jsp" />
<forward name="home"
path="/pages/planning/PL1079Display.jsp" />
<!-- action mapping for Pl1820Delete-->
<action name="PL1820DeleteForm"
validate="false" input="/pages/sop/PL1820Delete.jsp"
scope="request" path="/pages/sop/PL1820Delete">
<forward name="success"

I agree. Here's the link:
subject: problem in getting data from request
It's not a secret anymore!