What is the scope of Class instances in a JSP file
Hello All,
I am new to JSP and I dont think that I understand it very well just yet.
Problem:
The code works fine on the first time after a server build. After that, it seems that it's not wanting to create a new instance of the class whenever the print button is pressed again. You can close the web page and log out, log back in and it still will not work. But if you build again, it works fine for the first time only, yet again.
if (Action.equals("PRINT"))
{
ManifestPDF mpdf =new ManifestPDF();
mpdf.openManifestPDF();
while(Database.hasNext())
String deliveryInfo[] ={
strStopNumberDisp,
strMasterMS,
strShiptoAddress1Disp,
strShiptoAddress2Disp,
strShiptoAddress3Disp,
strShiptoCityDisp,
strShiptoStateDisp,
strShiptoZipDisp,
strDeliveryTimeFromDisp,
strDeliveryTimeTo,
strTotalQuantity
};
mpdf.addRow(deliveryInfo);
}
mpdf.createPdf();
strMessage ="Manifest Has been printed!!!";
}
else
{
strAction ="DISPLAY";
}
Thanks.

