Hello,
I have the following class that handles the TAB navigation called "bol", I want the navigation to forward to a new window upon clicking the Print Button, I have the Print routine coded up but the Navigation is the big ISSUE here. How can i navigate to a new window where the PDF will be displayed?
This class displays the TAB driven mechanism but the button click will not navigate to a new session(screen) for me. Any ideas are appreciated.
thanks,
Srini
=============================================================
public class MaintBolDetailAction extends FAKTabBaseAction {
public ActionForward doInit(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
HttpSession session = request.getSession();
String currentAction = null; // 10/22/2012 2545 dbh
//Get the shipment details for the BOL tab
String shipmentId = null;
shipmentId = session.getAttribute("FAK_SHIPMENT_ID").toString();
SiFakShipmentMaintBolTabForm bolDetailForm = (SiFakShipmentMaintBolTabForm) session.getAttribute("SHIPMENT_BOL_DETAIL");
// if (bolDetailForm == null) { 10/24/2012 2545 dbh - Always get fresh data
bolDetailForm = new SiFakShipmentMaintBolTabForm();
bolDetailForm.setShipmentId(shipmentId);
try {
bolDetailForm.getFormHandler().initialize(bolDetailForm, request);
session.setAttribute("SHIPMENT_BOL_DETAIL", bolDetailForm);
} catch (Exception e) {
}
// }
// 10/22/2012 2545 dbh start
currentAction = (String) session.getAttribute("FAK_CURRENT_ACTION");
if (currentAction != null && currentAction.equals("bol")) {
session.setAttribute("FAK_CURRENT_ACTION", null);
}
// 10/22/2012 2545 dbh end
session.setAttribute("FAK_CURRENT_TAB", "bol");
return mapping.findForward("home");
}
=====================================================================
<action path="/showBolPDF"
type="pdf.ShowBolPdfAction" />