obtaining date and time in suitable format for MySQL

2002-10-17 Thread hugo
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

Re: JSP / JavaBeans / Database

2002-10-17 Thread Vikramjit Singh
> -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 J

Re: Pausing execution?

2002-10-17 Thread Amit Ghaste
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 refe

Re: about getRemoteHost()

2002-10-17 Thread Zerbe John W
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

Re: about getRemoteHost()

2002-10-17 Thread John Ghidiu
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 programmin

Question on documentation...

2002-10-17 Thread Paul Toyn
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 ... Yo

Re: Question on documentation...

2002-10-17 Thread Hans Bergsten
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/H

thread safety test...

2002-10-17 Thread Padhu Vinirs
This is a small jsp page I am testing to understand the"isThreadSafe" 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 t

Re: Pausing execution?

2002-10-17 Thread Shawn Bayern
On Thu, 17 Oct 2002, Ionel Condor wrote: > Hi, > beyween two consecutive 'send mail' you may introduce a sleep, as follows: > > Thread.currentThread().sleep(time_in_miliseconds); > Just a minor point: Thread.sleep() is static, so there's no need to run through currentThread(). You can just wr

Re: Checking client connection speed

2002-10-17 Thread Means, Garann R.
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 inclu

Re: How to use xsl with JSP

2002-10-17 Thread Shawn Bayern
On Thu, 17 Oct 2002, Marcial Atienzar Navarro wrote: > 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, You can use the standard tags provided by JSTL to perform XSLT transformations. In par

Re: Checking client connection speed

2002-10-17 Thread KEITH KOSMICKI
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 implementa

How to use xsl with JSP

2002-10-17 Thread Marcial Atienzar Navarro
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 PRO

Re: Checking client connection speed

2002-10-17 Thread Nimmons, Buster
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] Subjec

Re: Pausing execution?

2002-10-17 Thread Ionel Condor
Hi, beyween two consecutive 'send mail' you may introduce a sleep, as follows: Thread.currentThread().sleep(time_in_miliseconds); Regards, Ionel Condor. - Original Message - From: "David Castro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 17, 2002 1:41 PM Subject

Pausing execution?

2002-10-17 Thread David Castro
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 t

JSP / JavaBeans / Database

2002-10-17 Thread Ganesh Kamath D (RBIN/DBA-JOT) *
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/qu

need clarification

2002-10-17 Thread Kesavanarayanan, Ramesh (Cognizant)
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 eac