Re: "Undefined variable or class name : out"
I tried it out... and it worked, But now, when I tried to put in more code, I keep getting strange errors. For example, I had an error on the line 'String sOpt = "";'. Do I need to include some library or so? What am I missing here. Thanx, Dinesh, S. -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 12:30 PM To: [EMAIL PROTECTED] Subject: Re: "Undefined variable or class name : out" Dinesh, You might try changing it from out.println(...) to System.out.println(...) If it was generated code, I'm not sure what the intent is, but System.out.println(...) will produce output on the console. -Richard At 11:27 AM 8/24/01 +0700, you wrote: >Hi All, > >You might want to check out this tool called Code Charge by Yes Software >(http://www.codecharge.com). It's quite neat. It is a tool that help you >build webpages using ASP, JSP, PHP, Perl, ColdFusion. > >I used it to generate my ASP codes. When I had decided to switch to PHP, I >simply had to change the language and regenerate. I must say that the codes >generated are quite good (for ASP and PHP). > >I was using the evaluation copy. However just before my evaluation period >expired, I had decided to try my hand at JSP. I had generated the JSP code >but never got to try the result simply because I had not installed TomCat >yet. > >Now that I've installed my Tomcat, I tried to run the code, but seem to have >some problems with the connection string setup. I went in to manually modify >the code. > >I noticed that the code is quite nicely structured. They have written >segments of the page into functions. I wrote the following code the same >style as code charge. Can someone verify wether this is good or not, plus I >keep getting "Undefined variable or class name : out" in the function >"Test_Show()" at the line "out.println()". > > >Thanx, >Dinesh, S. > >Code Sample- > ><%! >String sAction=request.getParameter("Action"); >String sTest=""; >sTest = Test_Action(sAction); >%> ><% = sTest %> <% Test_Show();%> ><%! > String Test_Action(String Action) throws java.io.IOException { > try { > switch(Action){ > case "Insert": > return "Inserted"; > break; > case "Update > return "Updated"; > break; > } > } catch (Exception e) { > out.println(e.toString()); > } > return xxx; > } > void Test_Show() throws java.io.IOException { > out.println("HELLO"); > } >%> > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
JSP Parameters
Hi There I would like to use some parameters at the application level and i want them to be in a encripted format so suggest me a tool/Program /Links to such resources which will Encode and decode( seperately ) my plan is to use these encripted information as a patch to my clientsApplication that runs it application is based on JSP's and java Beans I would appriciate any other Plan to secure the Application Regards SriHari === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Charts
Title: RE: Charts You can use JCClass lib from K L group to generate different types of charts like Bar Chart, Pie Chart, Line Chart, Stacked Bar Chart etc. There is one jar file jcclass.jar, you have to download that and add in classpath variable. you can see http://www.klgroup.com for more information. -Original Message- From: Cidric Favier [SMTP:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 11:42 AM To: [EMAIL PROTECTED] Subject: Re: Charts See http://www.jrefinery.com/ Smita Kotnis a écrit: > Hi all, > I need to develop some application which should produce some kind of charts (Bar charts to be precise) What is the best way to do that? Are there any free softwares available on internet related to this? Data to these charts is comming from data base. Any help? > Thanks in advance > Smita > - > This mail sent through : http://mail.sify.com > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- Cédric Favier _ Groupe Duverney 282, Avenue de Chambery 73230 Saint Alban Leysse [EMAIL PROTECTED] Tél : 04 79 72 99 00 Fax : 04 79 72 99 20 _ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Charts
See http://www.jrefinery.com/ Smita Kotnis a écrit: > Hi all, > I need to develop some application which should produce some kind of charts >(Bar charts to be precise) What is the best way to do that? Are there any free >softwares available on internet related to this? Data to these charts is comming from >data base. Any help? > Thanks in advance > Smita > - > This mail sent through : http://mail.sify.com > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets -- Cédric Favier _ Groupe Duverney 282, Avenue de Chambery 73230 Saint Alban Leysse [EMAIL PROTECTED] Tél : 04 79 72 99 00Fax : 04 79 72 99 20 _ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Application Parameters encoding-decoding
Hi There I would like to use some parameters at the application level and i want them to be in a encripted format I want a tool/Program /Links to such resources which will Encode and decode( seperately ) I would like to use these encripted information as a patch to my clientsApplication that runs it My application is based on JSP's and java Beans I would appriciate any other Plan to secure the Application Regards SriHari === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
"Undefined variable or class name : out"
Hi All, You might want to check out this tool called Code Charge by Yes Software (http://www.codecharge.com). It's quite neat. It is a tool that help you build webpages using ASP, JSP, PHP, Perl, ColdFusion. I used it to generate my ASP codes. When I had decided to switch to PHP, I simply had to change the language and regenerate. I must say that the codes generated are quite good (for ASP and PHP). I was using the evaluation copy. However just before my evaluation period expired, I had decided to try my hand at JSP. I had generated the JSP code but never got to try the result simply because I had not installed TomCat yet. Now that I've installed my Tomcat, I tried to run the code, but seem to have some problems with the connection string setup. I went in to manually modify the code. I noticed that the code is quite nicely structured. They have written segments of the page into functions. I wrote the following code the same style as code charge. Can someone verify wether this is good or not, plus I keep getting "Undefined variable or class name : out" in the function "Test_Show()" at the line "out.println()". Thanx, Dinesh, S. Code Sample- <%! String sAction=request.getParameter("Action"); String sTest=""; sTest = Test_Action(sAction); %> <% = sTest %> <% Test_Show();%> <%! String Test_Action(String Action) throws java.io.IOException { try { switch(Action){ case "Insert": return "Inserted"; break; case "Update return "Updated"; break; } } catch (Exception e) { out.println(e.toString()); } return xxx; } void Test_Show() throws java.io.IOException { out.println("HELLO"); } %> === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Bulk Printing from JSP's???
For our project, we have two methods. When a user generates single bill we use the browser to print it. The browser handles everything. When we need to do bulk printing, the stored procedure in database generates the bills as text files in a temporary directory. The text files are printed with a Java servlet in the background. Actually, once the text files are generated any method can be used to print them. The files are deleted once the printing is finished. It works fine for us as we do not have any graphics or fancy fonts in our bill. If you want to use graphics and fonts may be you could try generating pdfs and getting another program to print it? Of course, there is still the option of writing your own print engine in Java using Graphics2D. Ashish Shrestha http://headlines.sourceforge.net === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Charts
Hi all, I need to develop some application which should produce some kind of charts (Bar charts to be precise) What is the best way to do that? Are there any free softwares available on internet related to this? Data to these charts is comming from data base. Any help? Thanks in advance Smita - This mail sent through : http://mail.sify.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Printing a JSP Page
Hi all, Is it possible to save a JSP page as HTML, in to a folder on click of a button within that JSP? If possible how to do this? I am having a JSP page contaning some data, on click of a button of that JSP, the whole file should be stored as HTML. I appriciate any sort of help... Thanks in advance Smita - This mail sent through : http://mail.sify.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Launching an exe from either a JSP or within Java
Hi, Celeste. Yup you can use Process P = Runtime.getRunTime().exec( "your Dos command / batch file call); You can even run an external app even if the external app asks for parameters after running it (e.g. running telnet which asks for password) and you can even communicate with it from within your app! Good heh.. hth. > -Original Message- > From: Haseltine, Celeste [SMTP:[EMAIL PROTECTED]] > Sent: Friday, August 24, 2001 8:01 AM > To: [EMAIL PROTECTED] > Subject: Re: Launching an exe from either a JSP or within Java > > Thank you so much J. Babu and Richard Lee I knew there was a way to > do > it in Java, I just could not find it in the JavaDocs or any of my > reference > books. > > Celeste > > -Original Message- > From: J. Babu [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 7:00 PM > To: [EMAIL PROTECTED] > Subject: Re: Launching an exe from either a JSP or within Java > > > Hi, >do like the following: > Process P = Runtime.getRunTime().exec( "your Dos command / batch file call > "); > // i prefer you write one batch file, an call using above command. > p.waitfor(); // to complete for the processing > > > > Hope this helps > > Babu > > > > -Original Message- > From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 7:38 PM > To: [EMAIL PROTECTED] > Subject: Re: Launching an exe from either a JSP or within Java > > > This is a third party exe, and I just want to lauch it as an external > application. Once the printing is stopped, the user would go back > manually > to the java app that launched the external application So if I wanted to > emulate the following Dos command: > > C:\LMWPrint.exe /E=(jane, doe) > > How would I do that in Java? I find it hard to believe that I would need > to > use JNI, or write a C++ wrapper just to launch an external exe. Is there > any other way to emulate the above DOS command line in Java? > > Celeste > > -Original Message- > From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 6:16 PM > To: [EMAIL PROTECTED] > Subject: Re: Launching an exe from either a JSP or within Java > > > You can use JNI interface - but you would have to recompile your external > application or write in C/C++ an app that calls your exe. > - Original Message - > From: "Haseltine, Celeste" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 23, 2001 7:12 PM > Subject: Launching an exe from either a JSP or within Java > > > > Does anyone know how you can launch another exe resident on the host > server > > from within a JSP or in a Java class bean? I have found a third party > tool > > that can send data to industrial printers from a DOS command line, > inclusive > > of command line parameters. But for the life of me I cannot remember > how > to > > "emulate" launching an executable from the command line in either Java > or > > JSP. > > > > Thanks in advance!!! > > > > Celeste > > > > > == > = > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > The information in this email and in any attachments thereto is > confidential > and may be legally privileged. It is intended solely for the addressee. > Access to this email by anyone else is unauthorized. If you are not the > intended recipient, any disclosure, copying, distribution or any action > taken or omitted to be taken in reliance on it, is prohibited and may be > unlawful. > >
Re: Launching an exe from either a JSP or within Java
Suggestion 1 :- There is a function available in C++ that allows you to spawn processes. Have a look at that function to launch .exes'. I am sorry I cannot I remember the name of the function but if you search for spawning processes in your IDE you may be able to find it. I have tried it and it works fine. You can observe the processes being spawned in the task manager if you have NT although not in Java. The advantage of Spawning processes is that your JSP will continue to execute while the Printer excutes in a separate thread. Suggestion 2 :- To Run the printer perhaps you should consider calling the Printer Driver directly which normally comes in the form of a C/C++ DLL. Perhaps you should also consider combining java.lang.Runtime.exe() with the Thread class hence taking advantage of processes running in separate threads there by again releasing your JSP to continue its path of execution of code unless you want to wait for the printer to execute. However as you do not really have any control over success or failure perhaps you should consider threads. Regards, Zahid R. - Original Message - From: "Jacek Antoniuk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 24, 2001 12:16 AM Subject: Re: Launching an exe from either a JSP or within Java > You can use JNI interface - but you would have to recompile your external > application or write in C/C++ an app that calls your exe. > - Original Message - > From: "Haseltine, Celeste" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 23, 2001 7:12 PM > Subject: Launching an exe from either a JSP or within Java > > > > Does anyone know how you can launch another exe resident on the host > server > > from within a JSP or in a Java class bean? I have found a third party > tool > > that can send data to industrial printers from a DOS command line, > inclusive > > of command line parameters. But for the life of me I cannot remember how > to > > "emulate" launching an executable from the command line in either Java or > > JSP. > > > > Thanks in advance!!! > > > > Celeste > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Launching an exe from either a JSP or within Java
Take a look at the java.lang.Runtime.exec() methods. (*Chris*) - Original Message - From: "Haseltine, Celeste" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 4:38 PM Subject: Re: [JSP-INTEREST] Launching an exe from either a JSP or within Java > This is a third party exe, and I just want to lauch it as an external > application. Once the printing is stopped, the user would go back manually > to the java app that launched the external application So if I wanted to > emulate the following Dos command: > > C:\LMWPrint.exe /E=(jane, doe) > > How would I do that in Java? I find it hard to believe that I would need to > use JNI, or write a C++ wrapper just to launch an external exe. Is there > any other way to emulate the above DOS command line in Java? > > Celeste > > -Original Message- > From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 6:16 PM > To: [EMAIL PROTECTED] > Subject: Re: Launching an exe from either a JSP or within Java > > > You can use JNI interface - but you would have to recompile your external > application or write in C/C++ an app that calls your exe. > - Original Message - > From: "Haseltine, Celeste" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 23, 2001 7:12 PM > Subject: Launching an exe from either a JSP or within Java > > > > Does anyone know how you can launch another exe resident on the host > server > > from within a JSP or in a Java class bean? I have found a third party > tool > > that can send data to industrial printers from a DOS command line, > inclusive > > of command line parameters. But for the life of me I cannot remember how > to > > "emulate" launching an executable from the command line in either Java or > > JSP. > > > > Thanks in advance!!! > > > > Celeste > > > > > === > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.html > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Launching an exe from either a JSP or within Java
Thank you so much J. Babu and Richard Lee I knew there was a way to do it in Java, I just could not find it in the JavaDocs or any of my reference books. Celeste -Original Message- From: J. Babu [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 7:00 PM To: [EMAIL PROTECTED] Subject: Re: Launching an exe from either a JSP or within Java Hi, do like the following: Process P = Runtime.getRunTime().exec( "your Dos command / batch file call "); // i prefer you write one batch file, an call using above command. p.waitfor(); // to complete for the processing Hope this helps Babu -Original Message- From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 7:38 PM To: [EMAIL PROTECTED] Subject: Re: Launching an exe from either a JSP or within Java This is a third party exe, and I just want to lauch it as an external application. Once the printing is stopped, the user would go back manually to the java app that launched the external application So if I wanted to emulate the following Dos command: C:\LMWPrint.exe /E=(jane, doe) How would I do that in Java? I find it hard to believe that I would need to use JNI, or write a C++ wrapper just to launch an external exe. Is there any other way to emulate the above DOS command line in Java? Celeste -Original Message- From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 6:16 PM To: [EMAIL PROTECTED] Subject: Re: Launching an exe from either a JSP or within Java You can use JNI interface - but you would have to recompile your external application or write in C/C++ an app that calls your exe. - Original Message - From: "Haseltine, Celeste" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 7:12 PM Subject: Launching an exe from either a JSP or within Java > Does anyone know how you can launch another exe resident on the host server > from within a JSP or in a Java class bean? I have found a third party tool > that can send data to industrial printers from a DOS command line, inclusive > of command line parameters. But for the life of me I cannot remember how to > "emulate" launching an executable from the command line in either Java or > JSP. > > Thanks in advance!!! > > Celeste > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets The information in this email and in any attachments thereto is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jgu
Re: Launching an exe from either a JSP or within Java
Hi, do like the following: Process P = Runtime.getRunTime().exec( "your Dos command / batch file call "); // i prefer you write one batch file, an call using above command. p.waitfor(); // to complete for the processing Hope this helps Babu -Original Message- From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 7:38 PM To: [EMAIL PROTECTED] Subject: Re: Launching an exe from either a JSP or within Java This is a third party exe, and I just want to lauch it as an external application. Once the printing is stopped, the user would go back manually to the java app that launched the external application So if I wanted to emulate the following Dos command: C:\LMWPrint.exe /E=(jane, doe) How would I do that in Java? I find it hard to believe that I would need to use JNI, or write a C++ wrapper just to launch an external exe. Is there any other way to emulate the above DOS command line in Java? Celeste -Original Message- From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 6:16 PM To: [EMAIL PROTECTED] Subject: Re: Launching an exe from either a JSP or within Java You can use JNI interface - but you would have to recompile your external application or write in C/C++ an app that calls your exe. - Original Message - From: "Haseltine, Celeste" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 7:12 PM Subject: Launching an exe from either a JSP or within Java > Does anyone know how you can launch another exe resident on the host server > from within a JSP or in a Java class bean? I have found a third party tool > that can send data to industrial printers from a DOS command line, inclusive > of command line parameters. But for the life of me I cannot remember how to > "emulate" launching an executable from the command line in either Java or > JSP. > > Thanks in advance!!! > > Celeste > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets The information in this email and in any attachments thereto is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Unsubscribe
=== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Launching an exe from either a JSP or within Java
Celeste, Check out java.lang.Runtime.exec() -Richard At 06:12 PM 8/23/01 -0500, you wrote: >Does anyone know how you can launch another exe resident on the host server >from within a JSP or in a Java class bean? I have found a third party tool >that can send data to industrial printers from a DOS command line, inclusive >of command line parameters. But for the life of me I cannot remember how to >"emulate" launching an executable from the command line in either Java or >JSP. > >Thanks in advance!!! > >Celeste > >=== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Launching an exe from either a JSP or within Java
This is a third party exe, and I just want to lauch it as an external application. Once the printing is stopped, the user would go back manually to the java app that launched the external application So if I wanted to emulate the following Dos command: C:\LMWPrint.exe /E=(jane, doe) How would I do that in Java? I find it hard to believe that I would need to use JNI, or write a C++ wrapper just to launch an external exe. Is there any other way to emulate the above DOS command line in Java? Celeste -Original Message- From: Jacek Antoniuk [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 6:16 PM To: [EMAIL PROTECTED] Subject: Re: Launching an exe from either a JSP or within Java You can use JNI interface - but you would have to recompile your external application or write in C/C++ an app that calls your exe. - Original Message - From: "Haseltine, Celeste" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 7:12 PM Subject: Launching an exe from either a JSP or within Java > Does anyone know how you can launch another exe resident on the host server > from within a JSP or in a Java class bean? I have found a third party tool > that can send data to industrial printers from a DOS command line, inclusive > of command line parameters. But for the life of me I cannot remember how to > "emulate" launching an executable from the command line in either Java or > JSP. > > Thanks in advance!!! > > Celeste > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Launching an exe from either a JSP or within Java
You can use JNI interface - but you would have to recompile your external application or write in C/C++ an app that calls your exe. - Original Message - From: "Haseltine, Celeste" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 7:12 PM Subject: Launching an exe from either a JSP or within Java > Does anyone know how you can launch another exe resident on the host server > from within a JSP or in a Java class bean? I have found a third party tool > that can send data to industrial printers from a DOS command line, inclusive > of command line parameters. But for the life of me I cannot remember how to > "emulate" launching an executable from the command line in either Java or > JSP. > > Thanks in advance!!! > > Celeste > > === > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Launching an exe from either a JSP or within Java
Does anyone know how you can launch another exe resident on the host server from within a JSP or in a Java class bean? I have found a third party tool that can send data to industrial printers from a DOS command line, inclusive of command line parameters. But for the life of me I cannot remember how to "emulate" launching an executable from the command line in either Java or JSP. Thanks in advance!!! Celeste === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Urgent
You have a number of data types in SQL, including BLOB (Binary Large Object) for say a word document or RTF formatted text. Hope that helps. dwacon www.dwacon.com
Re: Bulk Printing from JSP's???
Other than perhaps doing a javascript calls (I think print() works?), the only way I can think of that might allow customized printing is to use JNI and write a routine in C or C++ that does the actual printing. Not sure if this is feasible. > -Original Message- > From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 23, 2001 9:14 AM > To: [EMAIL PROTECTED] > Subject: Bulk Printing from JSP's??? > > > Has anyone out in the user community been faced with the task > of trying to > get a JSP intranet product to also do industrial bulk > printing of rebate > checks? > > I have been asked if the product I am currently developing > can also handle > bulk printing of rebate check information. Basically, the > data that is > inputted by the user's into the intranet site would > eventually be used to > determine what type of rebate check a customer would receive. > My client > would like to use the same JSP intranet product we are > developing for order > management and fulfillment, to do rebate check printing on > the manufacturing > floor. The requirements are to querying the database > regarding the number > of rebate checks via a "selection list" of different denominations, > formatting that query data onto a check form (there are > several different > rebate check forms), displaying the check form with data in > the browser, and > then having the user send that data to the printer for > printing. Part of > the requirements also include handling printing errors, such > as paper jams, > empty ink cartridge, etc..., in the code "gracefully", and > allowing the > operating to restart the print job at the point the error occurred. > > All rebate checks would be printed on an industrial printer > which can handle > 20,000 - 30,000 checks per day. This industrial printer does > come with a > Windows NT driver, some memory for a printer buffer, and uses PCL5 and > extended PCL5 (PCL5e). > > 1. Has anyone out there ever done this using Java/JSP? > > 2. If so, were you able to display bar code data (we have a > font package > for printing bar codes), and fonts that have been rotated 90 > degrees, in a > browser window? I've found some literature that says that > rotated characters > and unusual character, such as the bar codes, cannot be > displayed in either > Netscape or IE, but I don't know if this is true. Does anyone know? > > 3. Are there any Java/JSP third party tools out there that I > could use that > could accomplish this task, including responding to error > codes generated by > the printer. > > 4. Could this be accomplished better by using a Java applet > inside the > browser, instead of a JSP page? > > Any advice, insight, or third party tool web sites would be greatly > appreciated. > > Celeste > > == > = > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.html > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets > === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Problems with servlets, tomcat and sessions
Clemente Dani wrote: > > But what about executing the init() method when the servlet > was already loaded?, why does this happen? > Servlets can be unloaded and then reloaded at any time. The lifecycle goes something like: init() --> service() --> destroy() --> init() --> ... I'm not talking about the container getting shut down, or the code changing and being reloaded, I'm talking about normal operation. Just as an example: a servlet container is free to unload your servlet if it hasn't been used for a while. Maybe it wants to make room for other servlets that are getting used a lot. So it calls destroy() and unloads your code. Then, when the next request comes in for your servlet, the container reloads it, calls init(), and you're back in business. There (used to be?) some CGI-based hacks that actually ran the servlet through it's entire lifecycle on every single request. A little extreme, but perfectly legal according to the spec. Assuming that servlets are "always on" is one of the reasons people mistakenly assume that they can do things like run socket servers in background threads from a servlet. Well, you can do it, but what if the container decides to swap out your servlet for a couple of hours? I'm not sure if your container is actually doing that, but it's something to consider. Another possibility is that you're using the single thread model, which would result in multiple copies of your servlet getting started up. (But that wouldn't give me an excuse for a quick rant :-) -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Bulk Printing from JSP's???
Has anyone out in the user community been faced with the task of trying to get a JSP intranet product to also do industrial bulk printing of rebate checks? I have been asked if the product I am currently developing can also handle bulk printing of rebate check information. Basically, the data that is inputted by the user's into the intranet site would eventually be used to determine what type of rebate check a customer would receive. My client would like to use the same JSP intranet product we are developing for order management and fulfillment, to do rebate check printing on the manufacturing floor. The requirements are to querying the database regarding the number of rebate checks via a "selection list" of different denominations, formatting that query data onto a check form (there are several different rebate check forms), displaying the check form with data in the browser, and then having the user send that data to the printer for printing. Part of the requirements also include handling printing errors, such as paper jams, empty ink cartridge, etc..., in the code "gracefully", and allowing the operating to restart the print job at the point the error occurred. All rebate checks would be printed on an industrial printer which can handle 20,000 - 30,000 checks per day. This industrial printer does come with a Windows NT driver, some memory for a printer buffer, and uses PCL5 and extended PCL5 (PCL5e). 1. Has anyone out there ever done this using Java/JSP? 2. If so, were you able to display bar code data (we have a font package for printing bar codes), and fonts that have been rotated 90 degrees, in a browser window? I've found some literature that says that rotated characters and unusual character, such as the bar codes, cannot be displayed in either Netscape or IE, but I don't know if this is true. Does anyone know? 3. Are there any Java/JSP third party tools out there that I could use that could accomplish this task, including responding to error codes generated by the printer. 4. Could this be accomplished better by using a Java applet inside the browser, instead of a JSP page? Any advice, insight, or third party tool web sites would be greatly appreciated. Celeste === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Content management tools based on JSP/Servlet technology
Hi all, does anybody knows any Content management tools based on JSP/Servlet technology ? There is one : eContent from www.jcorporate.com, that is probably pretty good. Although I'd like to check out some others too, just to compare with eContent, if nothing else. Thank you for all your responses. Jano Fetyko === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Problems with servlets, tomcat and sessions
But what about executing the init() method when the servlet was already loaded?, why does this happen? I'm getting printed the session Id, and is the same after and before this occurs, so I suppose that the session is the same. And the questios is that if the session was expired, I create a new object, so is "not possible" that I get a null object, see the code: / BEGIN SLICE OF JAVA CODE HttpSession sesion = request.getSession(true); System.out.println(sesion.getId()); if (sesion.isNew()) { control = new ControladorSesion(); sesion.setAttribute("CtlSesion",control); } else { control = (ControladorSesion)sesion.getAttribute("CtlSesion"); } . and it fails : boolean repetir = (control.getSecuencia() >= secuencia); / END SLICE OF JAVA CODE thanks a lot for your time. Bye, Dani - Missatge Original - De: "Haseltine, Celeste" <[EMAIL PROTECTED]> Data: Dimecres, Agost 22, 2001 8:54 pm Assumpte: Re: Problems with servlets, tomcat and sessions > In essence, your user's Session has timed out, which is why you > get the null > pointer exception after some time has passed. The "time out" time > periodcan be set within your JSP server, should you want to extend > the default > time period. For security reasons, I have set my JSP server to > time out any > inactive user Session after 5 minutes. Once 5 minutes has passed, > my user > must log in again. > > By the way, you should have a means of determining whether the > user has left > any other objects containing data open when the Session is about > to time > out. If so, you may want to add code to store the information > contained in > the other objects that have NOT been updated to the db, so that > the user can > recover his unsaved data the next time he/she logs in. > > Celeste __ ¡Se acercan tiempos salvajes a Navegalia : el planeta de los simios ya está aquí! La 20th Century Fox, Qtal de Airtel y Navegalia, te tienen preparadas una serie de sorpresas en este mundo inhóspito. Hay miles de regalos esperándote. Pásate por http://www.navegalia.com/portal/promos/planetasimios/index.htm y consíguelos. ==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets