In my application, when a user modifies a particular record from the database, after they edit it and save it, I want to show them the modified record.
I'm using struts, however, I don't know how to pass the recordID to the struts forward after it has been saved.
Here is my struts-config.xml
<action path="/saveEquipmentTemplate"
type="cafe.struts.actions.SaveEquipmentTemplateAction"
name="equipmentTemplateForm"
input="saveequipmenttemplate.input"
scope="request">
<forward name="saveequipmenttemplate.success"
redirect="true"
path="/showEquipmentTemplate.do" />
</action>
What I would like is something like this:
<forward name="saveequipmenttemplate.success"
redirect="true"
path="/showEquipmentTemplate.do?recordID=XXX" />
Where XXX is the recordID that was just modified.
To recap, how do I pass a dynamic parameter to an action forward in struts?