PDA

View Full Version : How to Save Submited Form Object


xlancer
Sep 14th, 2007, 03:57 AM
Hi,

I am stucking on storing the form submited object and repost it back to the form
when a action successfully done.

example:
Search-> result -> delete/edit/view -> success -> back into result view with along the Search Criteria.

Currently wat i doing is store in session for those criteria.
then i add those criteria into a Map in controller then return to the view
then i use c:if to check if the criteria not null then i replace the variable to the field...

i think this is really not a good way because there are 3 controller ( search, edit, delete) ... so i hard code for all 3 controller...

they are some others page in same situation...

i Use multiaction controller to direct not Post page and abstractCommandController to direct posting page.