Re: JDBC connection time

2003-03-17 Thread David Marquis
Hi Shahata, You can measure the time it takes to execute a bunch of code with System.currentTimeMillis() For example : long beginTime = System.currentTimeMillis(); //Do some work (like executing SQL query, or opening a connection) long timeItTook = System.currentTimeMillis() - beginTime; System.

Re: Problems With Java3D

2003-03-17 Thread David Marquis
Hi Thomas, This is not a JSP list about Java3D or anything related to this. You'd probably have more results by asking this question in a general Java list or graphics related list. By the way "no main class found" means that the JVM could not find the method "main" in the startup class. Any Java

Re: Is an OR mapping tool helpful?

2003-03-04 Thread David Marquis
Hi, I found Hibernate to be less complex than EJBs and it does the job for what I need. You can reverse-engineer an existing database to create JavaBean classes from it, you can take existing javabeans and generate database-generation SQL code to create the tables, and a lot of other useful things

Re: Application level Servlets

2003-03-02 Thread David Marquis
You should create a servlet that creates a new thread in it's init() method : *** IN WEB.XML : config your.servlet.class.name 1 By adding the line 1, you're telling the servlet context to call the init() method of your servlet when it loads. This is the ideal place to start a

Re: How to Print a array list in Struts Frame work's JSP Page

2003-03-02 Thread David Marquis
Hi, yourArrayListReference should be an object instance stored either in - the page context - the request context (request.setAttribute("yourArrayListReference", object) - the application context (getServletContext().setAttribute("yourArrayListReference", object) HTH, David -Mess

Re: JavaServer Faces?

2003-02-28 Thread David Marquis
s JSP... and Homesite acts like a good WYSIWYG HTML editor as well... its hardly coding at hand anymore...but u seem to have missed the point completely -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of David Ma

Re: JavaServer Faces?

2003-02-27 Thread David Marquis
Hi, Just a quick word to ask you : why do you still code in homesite? Today's IDEs make a good job of handling JSPs and you should definitely take a look at some... And don't tell me it's because of the price !! Some IDEs like NetBeans (www.netbeans.com) are 100% free. I don't think there is an

Re: doubt in sessionssss

2003-01-18 Thread David Marquis
Hi, Why not use the servlet's 2.3 feature called Session lifecycle events ? There is an interface that you can register as a session listener called HttpSessionListener (javax.servlet.http.HttpSessionListener) Each time a session is created, the method sessionCreated will be called with a refere

Re: tomcat apache

2003-01-17 Thread David Marquis
Hi Abdul, Normally, all you have to do with Tomcat (the latest version) is to put your webapps in $TOMCAT$/webapps directory. The easiest way to deploy a webapp in such a way is to put the .WAR (Web Archive) in that directory. When started, Tomcat will auto-deploy (that is, extract the files from

Re: Checking client connection speed

2002-10-16 Thread David Marquis
You could send a bunch of characters to the client and measure the time it takes to transfer (with somewhat of a timer) and then, since you know the size of what you're sending, you could easily calculate the speed. This is just an idea, nothing technical HTH, David -Original Message- F

Re: How do you convert a jsp page into Java?

2002-09-17 Thread David Marquis
Those files can also be in your Application Server's directory. For example : with Tomcat, the %TOMCAT_HOME$/work directory is where tomcat stores the compiled JSPs. HTH, David -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTE

Re: How to protect file from download in JSP?

2002-09-05 Thread David Marquis
Hi Edward, It is mostly impossible : when the user's browser parses a line like this : http://192.168.39.143:8080/test/system. js"> It must request and download the file "system.js" so that it can execute it on the user's computer. If you block access to this file, even the browsers won't be

Any people using Struts Validator (1.1) ?

2002-08-13 Thread David Marquis
Hi, Is there any people out there using Struts Validator? On Struts website, the help for this topic is TODO and on David Winterfeldt's website (http://home.earthlink.net/~dwinterfeldt) the documentation seams obsolete and disorganized. I searched google for this and found no help. Any help wil

Re: what is this happening?

2002-08-12 Thread David Marquis
I'm also new to this list and I, too, got the same problem when posting my first message. It seams that it is most likely inevitable, and this is the price to use this list. I simply delete all those auto-reply messages when I receive them. David -Original Message- From: A mailing list a

Automatic responses! damn...

2002-07-31 Thread David Marquis
Hi everyone, I think it may be a good idea to remove your out-of-office auto-responses, that is more than annoying... THANKS -- David Marquis Neopeak Internet Solutions www.neopeak.com === To unsubscribe: mailto [EMAIL

Re: Java Editor

2002-07-31 Thread David Marquis
Yes, I agree with Tiago.. If you want free, community-supported and constantly-evoluing IDE, NetBeans is the way to go. It integrates Tomcat 3.2 directly in the IDE and the next version will use Tomcat 4 HTH, David -Original Message- From: A mailing list about Java Server Pages specificat

Re: NetBeans anybody? I got a bug...

2002-07-31 Thread David Marquis
: NetBeans anybody? I got a bug... maybe its trying to read a network drive that isnt connected anymore... -Original Message- From: David Marquis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 4:05 PM To: [EMAIL PROTECTED] Subject: NetBeans anybody? I got a bug... Hi folks

NetBeans anybody? I got a bug...

2002-07-31 Thread David Marquis
Hi folks, Since this morning, my NetBeans IDE freezes when loading (while the splash screen is on) at the message "Opening main window..." Is this a known bug or my NetBeans has just gone crazy? Thanks for your help, -- David