Re: Server-Side ActiveX technology
I think you need a Java to COM bridge - COM or COM+ being the server-side version of ActiveX. Look at: the J-Integra Java-COM bridge http://www.linar.com/ jacob (java to com bridge) and it's free. http://danadler.com/jacob/ -Original Message- From: Himar Carmona Delgado [SMTP:[EMAIL PROTECTED]] Sent: 16 October 2002 02:57 To: [EMAIL PROTECTED] Subject: Server-Side ActiveX technology Hi, this question is in relation with Java and JSP. It is possible to create an instance of an ActiveX object (i.e. accesing an automation server like Word, Excel) at server-side with JSP (Java) and achieve the same functionality as at client-side with JavaScript (or JScript)? I already access Word from JavaScript with the function ActiveXObject. I'm searching a similar manner to obtain the same behavior, but at the server, (supposing the server is a Windows server). For those who are Java-JSP-adicted: ASP already do that. :) I'm joking... Himar Carmona Delgado Analista - Programador .. .. .. DESIC, S.L. (Desarrollos y Sistemas Informáticos Canarios, S.L.) Pedro de Vera, 36, 2º A - 35003 - Las Palmas de Gran Canaria - España Telf.: +34 928 374 026 Fax: +34 928 374 028 [EMAIL PROTECTED] -- -- -- -- --- Este mensaje y los documentos que, en su caso, lleve anexos, pueden contener información confidencial. Por ello, se informa a quien lo reciba por error que la información contenida en el mismo es reservada y su uso no autorizado está prohibido legalmente, por lo que en tal caso le rogamos que nos lo comunique por la misma vía o por teléfono y se abstenga de realizar copias del mensaje o remitirlo a otra persona y proceda a borrarlo de inmediato. -- -- -- -- --- == 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com -- It is the strict policy of Truworths that its e-mail facility and all e-mail communications emanating therefrom, should be utilised for business purposes only and should conform to high professional and business standards. Truworths has stipulated certain regulations in terms whereof strict guidelines relating to the use and content of e-mail communications are laid down. The use of the Truworths e-mail facility is not permitted for the distribution of chain letters or offensive mail of any nature whatsoever. Truworths hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted.Truworths Limited accepts no liability for any consequences arising from or as a result of reliance on this message unless it is in respect of bona fide Truworths business for which proper authorisation has been granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to notify the Truworths e-mail administrator ([EMAIL PROTECTED]) immediately in order that appropriate action can be taken against the individual concerned. === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
need clarification
Hi all, Forgive me if this is off-topic In my application I have the following scenario. Let me know the fine approach tothis situation. Scenario - 1 --- 1) The user selects a file consisting of various auto rates. 2) The system then reads this file (.csv , .xls) andfor each of the rows in the file, the system validates certain rules. 3) The system then displays the whole file in the browser in table format. 4) All those rows which do not satisfy the rules will be highlighjted whereas the other rows will be displayed as such. 5) The user can select one of the row and verify the autorates. Scenario -2 I have a search screen. The user inputs the search criteria and clicks Search button. The system retrieves the rows and displays them in multiple pages 10 rows in each page. The problem is that each row in a single page has 5 columns. Each column has 2 images one each for ascending and descending. Default the order is Ascending. When the user clicks on the descending button of a particular column in a page, I need to display the whole page in descending order. This has to be done for all the columns in all the rows of all the pages. My problem is basically about the performance issue. My client wants the whole thing to be displayed in 2 minutes. Kindly let me know your esteemed suggestions and approach to fit this Regards Ramesh Kesavanarayanan This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com
JSP / JavaBeans / Database
Hello: I am planning to do a database application with JSPs. I am planning to use JSP for pure presentation, JavaBeans for logic. I have Tomcat and Oracle installed. I am finding it difficult to locate a complete sample example on the web, which will do the basic operation of add/modify/delete/query using JSP and JavaBeans. I searched the JDC forums and unable to find any sample code. I don't want to put any Java code in jsp files. Also I don't want to use Servlets. Can anybody point me to any web page that you are aware of in finding this type of example? thanks and regards, GK === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Pausing execution?
I looked in the list archives, and didn't find an answer for my dilemma. I've got a web application that mails all of the opt-in addresses in my client's database. I want to avoid overloading his host's SMTP server, so I want to delay execution between sending each email. Can anyone tell me how to code this? Also, I'm planning to write to the client a summary line with each email that is sent, and flush the cache with each line. Will this keep the page alive? Or will it eventually time out? Thanks a million! -David Castro email[at]davidcastro[dot]com http://jsp.davidcastro.com __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Pausing execution?
Hi, beyween two consecutive 'send mail' you may introduce a sleep, as follows: code Thread.currentThread().sleep(time_in_miliseconds); /code Regards, Ionel Condor. - Original Message - From: David Castro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:41 PM Subject: Pausing execution? I looked in the list archives, and didn't find an answer for my dilemma. I've got a web application that mails all of the opt-in addresses in my client's database. I want to avoid overloading his host's SMTP server, so I want to delay execution between sending each email. Can anyone tell me how to code this? Also, I'm planning to write to the client a summary line with each email that is sent, and flush the cache with each line. Will this keep the page alive? Or will it eventually time out? Thanks a million! -David Castro email[at]davidcastro[dot]com http://jsp.davidcastro.com __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Checking client connection speed
Here is a java package which encapsulates just about every networking need I've run across http://www.savarese.org/oro/software/NetComponents.html -Original Message- From: Means, Garann R. [mailto:grmeans;DOC1.WA.GOV] Sent: Wednesday, October 16, 2002 3:59 PM To: [EMAIL PROTECTED] Subject: Checking client connection speed Hi, Is there any simple means of getting the client's connection speed? I've looked through the Servlets documentation as well as the standard documentation and if the answer is there, I've missed it. But admittedly, I'm no networking expert. A little push in the right direction would be a great help. Thanks in advance, Garann Rose Means _ ITAS2 (360) 570-3407 WA State Dept. of Corrections === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
How to use xsl with JSP
Hello, I need to use xSL with JSP. I'm using jboss and oc4-j, is it possible? I know something about coocon, but i don't want to use it. A lot of thanks, MArcial Atienzar Navarro === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Checking client connection speed
Java includes support for UDP and TCP sockets. PING requires support for the Internet Control Message Protocol (ICMP). Your only choice (at the moment), is to use native code, or to use java.lang.Runtime to execute an external ping application. You won't be able to develop a 100% Pure implementation. NB - A native implementation that uses the Java Native Interface (JNI) is available for PING, in both English and Spanish. See http://www.geocities.com/SiliconValley/Bit/5716/ping/ for more details. Hope this helps you buddy. Keith E. Kosmicki Applications Consultant State of IL Human Services STL Technology Partners ==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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Checking client connection speed
Thanks, Keith, and everyone else, for the suggestions! Hopefully I can get something together. -Original Message- From: KEITH KOSMICKI [mailto:DHSPA07;DHS.STATE.IL.US] Sent: October 17, 2002 - Thursday 8:01a To: [EMAIL PROTECTED] Subject: Re: Checking client connection speed Java includes support for UDP and TCP sockets. PING requires support for the Internet Control Message Protocol (ICMP). Your only choice (at the moment), is to use native code, or to use java.lang.Runtime to execute an external ping application. You won't be able to develop a 100% Pure implementation. NB - A native implementation that uses the Java Native Interface (JNI) is available for PING, in both English and Spanish. See http://www.geocities.com/SiliconValley/Bit/5716/ping/ for more details. Hope this helps you buddy. Keith E. Kosmicki Applications Consultant State of IL Human Services STL Technology Partners ==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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Pausing execution?
On Thu, 17 Oct 2002, Ionel Condor wrote: Hi, beyween two consecutive 'send mail' you may introduce a sleep, as follows: code Thread.currentThread().sleep(time_in_miliseconds); /code Just a minor point: Thread.sleep() is static, so there's no need to run through currentThread(). You can just write Thread.sleep(millisec); The other usage can be misleading, since it looks like you're applying sleep() to a particular thread. But sleep() always applies to the currently executing thread; you can't make another thread sleep in this fashion. -- Shawn Bayern JSTL in Action http://www.jstlbook.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
thread safety test...
This is a small jsp page I am testing to understand theisThreadSafe attribute. I observe two strange things with Tomcat 4.1.12: 1. The code generated when isThreadSafe is set to true or false is the same. ( new code is generated with each change ). How can code generated for these two cases be the same ? 2. On Netscape 7.0 ( mozilla ), if I open 2 windows side-by-side, and make calls, Netscape finishes the call of one window before starting the call of another window. Looks like mozilla is checking to see if the url's are the same and then waiting ??? IE makes simultaneous calls and hence the print values differ. Anybody else notice this. Can anybody give some pointers for question 1 ? here is the jsp code: htmlbody %@ page isThreadSafe=true % %! int j=0; % % for(int i=0; i = 10; i++ ) { out.print(Value of j is + j + br/); j++; Thread.currentThread().sleep(3000); } % /body/html Thanks -- padhu === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Question on documentation...
Paul Toyn wrote: The following is a snippet from the Jakarta-Tomcat configuration and testing documentation: Once you compile HelloServlet.java, put HelloServlet.class in install_dir/webapps/ROOT/WEB-INF/classes. After compiling the code, access the servlet with the URL http://localhost/servlet/HelloServlet ... You should get a simple HTML page that says Hello. If this URL fails but the test of the server itself succeeded, you probably put the class file in the wrong directory. I've followed the example and everything is working up to the point above. I compiled the java code and it compiled without a hitch, but I do get a 404 error when I try the URL. The test of the server did succeed. I placed the class file into the folder as indicated. Is the documentation correct? Where does the folder servlet get involved? What am I doing wrong? Is this with Tomcat 4.1.12? If so, it's because the invoker (the servlet mapped to the /servlet/* path) is disabled by default starting with this version due to security concerns. See the release notes for details. In general, you should use explicit mappings for all servlets instead of using the invoker. Add this to the web.xml file for the application (e.g. webapps/ROOT/WEB-INF/web.xml for the Tomcat default application): servlet servlet-namehello/servlet-name servlet-classHelloServlet/servlet-class /servlet ... servlet-mapping servlet-namehello/servlet-name url-pattern/hello/*/url-pattern /servlet-mapping After restarting the web container (Tomcat), you can use a URL like this to invoke it: http://localhost:8080/hello Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pageshttp://TheJSPBook.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Question on documentation...
The following is a snippet from the Jakarta-Tomcat configuration and testing documentation: Once you compile HelloServlet.java, put HelloServlet.class in install_dir/webapps/ROOT/WEB-INF/classes. After compiling the code, access the servlet with the URL http://localhost/servlet/HelloServlet ... You should get a simple HTML page that says Hello. If this URL fails but the test of the server itself succeeded, you probably put the class file in the wrong directory. I've followed the example and everything is working up to the point above. I compiled the java code and it compiled without a hitch, but I do get a 404 error when I try the URL. The test of the server did succeed. I placed the class file into the folder as indicated. Is the documentation correct? Where does the folder servlet get involved? What am I doing wrong? Let me know, thx. === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: about getRemoteHost()
In fact, if the router does change the FROM field, the TCP/IP connection is effectively terminated because the receiving end can no longer reply (even with an ACK) that the packet was received. However, a proxy is allowed to (and often does) change the packet. Be aware of that in your programming (which means, among other things, no session tracking via IP address). John -Original Message- From: Peter Dolukhanov [mailto:peter.dolukhanov;NCL.AC.UK] Sent: Wednesday, October 16, 2002 10:17 AM To: [EMAIL PROTECTED] Subject: Re: [JSP-INTEREST] about getRemoteHost() From my knowledge of networking, a router (or routers) will not change the From field of an IP packet, they just forward the packet onto a node closer to it's destination. As even this e-mail bounces through umpteen routers, and none of these will modify the remote address. So, as far I can tell this won't happen - what you have to worry about is Web Proxies as these do send the request to the web server themselves, and your web server will see them as the remote host and not you. Regards, Peter Dolukhanov -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:JSP-INTEREST;JAVA.SUN.COM] On Behalf Of randie ursal Sent: 16 October 2002 03:07 To: [EMAIL PROTECTED] Subject: about getRemoteHost() hi, i want some idea on this. i have a setup where my WebServer is separated by a Router from a User. when the user access the webserver it has to pass through the router, so my question is what would be return by the method getRemoteHost()? is it the IP address of the Router or the User Workstation? thanks a lot. randie === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: about getRemoteHost()
If your app is facing the internet, its best to assume that the ip address that you recieve is that of some AOL proxy server. It this address is really only good for reporting on where your requests are probably coming from. In our environment, we have a reverse proxy in front of our web servers. Our apps always see the address of our own proxy server. -Original Message- From: John Ghidiu [mailto:johnghidiu;BENDERSON.COM] Sent: Thursday, October 17, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: Re: about getRemoteHost() In fact, if the router does change the FROM field, the TCP/IP connection is effectively terminated because the receiving end can no longer reply (even with an ACK) that the packet was received. However, a proxy is allowed to (and often does) change the packet. Be aware of that in your programming (which means, among other things, no session tracking via IP address). John -Original Message- From: Peter Dolukhanov [mailto:peter.dolukhanov;NCL.AC.UK] Sent: Wednesday, October 16, 2002 10:17 AM To: [EMAIL PROTECTED] Subject: Re: [JSP-INTEREST] about getRemoteHost() From my knowledge of networking, a router (or routers) will not change the From field of an IP packet, they just forward the packet onto a node closer to it's destination. As even this e-mail bounces through umpteen routers, and none of these will modify the remote address. So, as far I can tell this won't happen - what you have to worry about is Web Proxies as these do send the request to the web server themselves, and your web server will see them as the remote host and not you. Regards, Peter Dolukhanov -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:JSP-INTEREST;JAVA.SUN.COM] On Behalf Of randie ursal Sent: 16 October 2002 03:07 To: [EMAIL PROTECTED] Subject: about getRemoteHost() hi, i want some idea on this. i have a setup where my WebServer is separated by a Router from a User. when the user access the webserver it has to pass through the router, so my question is what would be return by the method getRemoteHost()? is it the IP address of the Router or the User Workstation? thanks a lot. randie === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com DISCLAIMER: The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator. ==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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Pausing execution?
another thought the mail server is rather an asynchronous job. it is sent to the mailing queue... but I guess you could do what Condor suggests. never make a user wait too long :)... Regards, Amit -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:JSP-INTEREST;JAVA.SUN.COM]On Behalf Of Ionel Condor Sent: Thursday, October 17, 2002 5:48 AM To: [EMAIL PROTECTED] Subject: Re: Pausing execution? Hi, beyween two consecutive 'send mail' you may introduce a sleep, as follows: code Thread.currentThread().sleep(time_in_miliseconds); /code Regards, Ionel Condor. - Original Message - From: David Castro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 1:41 PM Subject: Pausing execution? I looked in the list archives, and didn't find an answer for my dilemma. I've got a web application that mails all of the opt-in addresses in my client's database. I want to avoid overloading his host's SMTP server, so I want to delay execution between sending each email. Can anyone tell me how to code this? Also, I'm planning to write to the client a summary line with each email that is sent, and flush the cache with each line. Will this keep the page alive? Or will it eventually time out? Thanks a million! -David Castro email[at]davidcastro[dot]com http://jsp.davidcastro.com __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: JSP / JavaBeans / Database
-Original Message- From: Ganesh Kamath D (RBIN/DBA-JOT) * [mailto:Ganesh.Kamath;IN.BOSCH.COM] Sent: Thursday, October 17, 2002 3:09 AM To: [EMAIL PROTECTED] Subject: JSP / JavaBeans / Database Importance: High Hello: I am planning to do a database application with JSPs. I am planning to use JSP for pure presentation, JavaBeans for logic. I have Tomcat and Oracle installed. I am finding it difficult to locate a complete sample example on the web, which will do the basic operation of add/modify/delete/query using JSP and JavaBeans. I searched the JDC forums and unable to find any sample code. I don't want to put any Java code in jsp files. Also I don't want to use Servlets. Can anybody point me to any web page that you are aware of in finding this type of example? http://www.akadia.com/services/java_tips.html thanks and regards, GK Vikram. == = 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com Disclaimer: This e-mail message along with any attachments is intended only for the addressee and may contain confidential and privileged information of GTL Limited. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system. === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
obtaining date and time in suitable format for MySQL
Hi I am javing a jsp file where I would like to get the current date and time to be inserted in fields of an SQL table. The date should go into the MySQL date field and hence should be of format -mm-dd. I tried to use java.sql.Date, but I couldn't get it to work. If I simply use long date = 0; java.sql.Date sqlDate = new java.sql.Date(date); int year = sqlDate.getYear(); I get back 70. So obviously I have to get the year from the machine's time, which is a linux box with Redhat 7.3. So I tried this: long date = 0; java.sql.Date sqlDate = new java.sql.Date(date); String thetime = sqlDate(System.currentTimeinMillis()); out.println (SQL time is + thetime); But this didn't work either. How do you do this? In addition, I would like to get the time, but in decimal format i.e. rather than 11:15 I would like to get 11.25 Is there a way of doing this? Any help will be greatly appreciated. Thanks Hugo -- Dr Hugo Bouckaert Systems and Programming Engineer GeoInformatics Exploration Australia P/L 57 Havelock St West Perth, WA 6005 PO Box 1675, West Perth 6872 Ph: 61 08 9420 7400 Fax: 61 08 9226 1299 www.geoinformex.com This email and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. === 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com