// ACTION METHODS public String save_action() { String forwardPage = null; if (getVDCRequestBean().getCurrentVDCId() == null) { // this is a save against the network VDCNetwork vdcnetwork = getVDCRequestBean().getVdcNetwork(); vdcnetwork.setNetworkPageHeader(banner); vdcnetwork.setNetworkPageFooter(footer); vdcNetworkService.edit(vdcnetwork); getVDCRequestBean().getVdcNetwork().setNetworkPageHeader(banner); getVDCRequestBean().getVdcNetwork().setNetworkPageFooter(footer); forwardPage = "myNetworkOptions"; } else { VDC vdc = vdcService.find(new Long(getVDCRequestBean().getCurrentVDC().getId())); vdc.setHeader(banner); vdc.setFooter(footer); vdc.setDisplayInFrame(displayInFrame); vdc.setParentSite(parentSite); vdcService.edit(vdc); getVDCRequestBean().setCurrentVDC(vdc); forwardPage = "myOptions"; } getVDCRequestBean().setSuccessMessage("Successfully updated layout branding."); return forwardPage; }