To perform redirects from the doedit.jsp page back to the edit.jsp page, use the following URL:
response.sendRedirect(p.getProviderContext().getDesktopURL(request).toString() + "?action=edit&provider=ipsdtJSPEditChannel" + "&targetprovider=" + p.getName() + "&reedit=true"); |
To return back to the Edit page, use the following, which does not hardcode the edit channel name.
String editChannel = request.getParameter("editChannelName"); response.sendRedirect(p.getProviderContext().getDesktopURL(request).toString() + "?action=edit&provider=<%=editChannel%>&targetprovider=" + p.getName() + "&redit=true"); |