PDA

View Full Version : AWC return control


sputnik
Nov 9th, 2007, 12:18 PM
I have a AWC whose jsp page lists some items, on each of the iutems listed is the option to edit the original document they belong to (which happens to be another AWC controller) code:

<td><input type="button" name="editcra"
value="Edit Document"
onclick="document.location='myotherdocument.spr?cranumber=$ {thisawccommand.mynumber}'" /></td>

The problem is that on calling the controller the "tranfer" of control is now to the called controller and the original controller and its command bean and all is no longer available, which makes sense but how can I make it not so, how can I call the "myotherdocument" controller, do my thing and then return control back to the original controller without losing the commandbean info or its original state. I have seen some posting on redirects and creating exceptions that when forced return you to the original controller but it seems a bit "kludgy" and would appreciate any ideas. TIA.