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.

[1522 byte] By [jtfowlera] at [2007-11-27 8:02:33]
# 1
You forgot to specify the error that you get.
r035198xa at 2007-7-12 19:44:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Here is the error message that I get. Servlet.service() for servlet jsp threw exception java.lang.IncompatibleClassChangeError
jtfowlera at 2007-7-12 19:44:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Some class change is occurring then. At which line is this thrown?
r035198xa at 2007-7-12 19:44:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
mpdf.openManifestPDF();
jtfowlera at 2007-7-12 19:44:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
> mpdf.openManifestPDF();Apparently the definition of ManifestPDF or some class that this class depends upon is changing.See if this thread wont help you. http://forum.java.sun.com/thread.jspa?threadID=492452&messageID=2325298
r035198xa at 2007-7-12 19:44:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...