C
cteb
Hi!
I'm having problems implementing a rather common situation with Struts
1.3.8. After a successful search for some person record, I want the user
to edit it.
This is how I want to do it, two JSP pages with corresponding forms and
in between two actions, the first loads the person record from a
database, the second fills out the person form with that record:
searchperson.jsp -> processPersonSearch -> populatePersonForm ->
editperson.jsp
However, I don't know how my second action can give its PersonForm to
the editperson.jsp page. I don't mind any other solution, this was just
my idea, to separate retrieval in the database from populating the form.
In case nobody wants to write a long reply with code or
struts-config.xml settings, do you know of an open example where there's
a search form followed by a form which edits whatever was found in the
step before? I don't mind studying code, I just haven't found something
exactly like that.
thx
... C
I'm having problems implementing a rather common situation with Struts
1.3.8. After a successful search for some person record, I want the user
to edit it.
This is how I want to do it, two JSP pages with corresponding forms and
in between two actions, the first loads the person record from a
database, the second fills out the person form with that record:
searchperson.jsp -> processPersonSearch -> populatePersonForm ->
editperson.jsp
However, I don't know how my second action can give its PersonForm to
the editperson.jsp page. I don't mind any other solution, this was just
my idea, to separate retrieval in the database from populating the form.
In case nobody wants to write a long reply with code or
struts-config.xml settings, do you know of an open example where there's
a search form followed by a form which edits whatever was found in the
step before? I don't mind studying code, I just haven't found something
exactly like that.
thx
... C