Connection to database from jsp.
We have a system consisting of a group of jsps - which have links to one another. There is no controller servlet as it is a simple system. What i want is to access the database from the jsps. The problem is that I do not want a new connection to be established everytime a request is made. What is the solution for this? I had initially thought of having a utility class and in that I can have a getConnection method which returns the connection to a static connection reference in the same utility class. This can then be assigned to the jsps (by making a call from the jsps to some method - returnConn, in the utilily class). Is it true that a new connection will be established everytime. This has confused me a bit. I am infact confused now about the very concept of static references. How do you think this problem can be solved? Will a servlet be of any use? Actually in a servlet, if we have a static connection reference as a class variable, and the initialization is done ( acquiring a connection) in the init method ( as init is executed only once in the lifetime of a servlet), the problem may be solved. In a servlet, the init method is executed only once and the servlet does not go out of memory till the server comes down. So I presume the connection will also be the same. Is this correct? Even if it is, I want to avoid the servlet, as it will be a lot of rework if the servlet has to be fit in. The application would have to be changed. Suggestions invited. Anoop Kumar V. === 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
Moving client from one web app into another
Hi, I'm not sure what to do here, I have a general set of jsp pages open to the public, these are in a webapp with its own web-inf directory, classes etc. Then I have a secure webapp, starting with a logon page which you get to from a link in the 'public' website. The secure part of the site uses certificates and ssl and is a self-contained web-app, also with its own web-inf etc. My question I guess is this, can I deploy two or more web applications in the same container at the same time? Would I give each one a different port (connector) in the same Service (in the server.xml), or would each require it's own 'Service' tag altogether? or what? Sorry if my question is confusing, or if I'm making complicated things out of something simple, I'm just a bit confused. Thanks Joel === 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: Connection to database from jsp.
Override jspInit() in a declaration block, create the connection, and save it as an attribute in ServletContext. -- padhu Anoop Kumar V wrote: >We have a system consisting of a group of jsps - which have links to one >another. There is no controller servlet as it is a simple system. What i >want is to access the database from the jsps. The problem is that I do not >want a new connection to be established everytime a request is made. What is >the solution for this? >I had initially thought of having a utility class and in that I can have a >getConnection method which returns the connection to a static connection >reference in the same utility class. This can then be assigned to the jsps >(by making a call from the jsps to some method - returnConn, in the utilily >class). Is it true that a new connection will be established everytime. This >has confused me a bit. >I am infact confused now about the very concept of static references. How do >you think this problem can be solved? Will a servlet be of any use? Actually >in a servlet, if we have a static connection reference as a class variable, >and the initialization is done ( acquiring a connection) in the init method >( as init is executed only once in the lifetime of a servlet), the problem >may be solved. In a servlet, the init method is executed only once and the >servlet does not go out of memory till the server comes down. So I presume >the connection will also be the same. Is this correct? Even if it is, I want >to avoid the servlet, as it will be a lot of rework if the servlet has to be >fit in. The application would have to be changed. Suggestions invited. > > >Anoop Kumar V. > >=== >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: Moving client from one web app into another
> -Original Message- > From: Joel Carklin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 16, 2002 2:57 AM > To: [EMAIL PROTECTED] > Subject: Moving client from one web app into another > > > Hi, > > I'm not sure what to do here, I have a general set of jsp > pages open to > the public, these are in a webapp with its own web-inf directory, > classes etc. Then I have a secure webapp, starting with a logon page > which you get to from a link in the 'public' website. The > secure part of > the site uses certificates and ssl and is a self-contained > web-app, also > with its own web-inf etc. > > My question I guess is this, can I deploy two or more web applications > in the same container at the same time? Would I give each one a > different port (connector) in the same Service (in the server.xml), or > would each require it's own 'Service' tag altogether? or what? Yes. If i get you right, you want to deploy two applications or context. You can make two context's by adding them in the server.xml file. The port change is not required. For further information you can check out your containers docs. > > Sorry if my question is confusing, or if I'm making complicated things > out of something simple, I'm just a bit confused. > > Thanks > Joel 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
Re: Moving client from one web app into another
why two webapps ? In your web.xml, why not create a security-constraint element, with web-resource-collection for all your secure pages, in the user-data-constraint set the transport-guarantee as CONFIDENTIAL. Then https has to be used for all your secure pages. -- padhu Joel Carklin wrote: >Hi, > >I'm not sure what to do here, I have a general set of jsp pages open to >the public, these are in a webapp with its own web-inf directory, >classes etc. Then I have a secure webapp, starting with a logon page >which you get to from a link in the 'public' website. The secure part of >the site uses certificates and ssl and is a self-contained web-app, also >with its own web-inf etc. > >My question I guess is this, can I deploy two or more web applications >in the same container at the same time? Would I give each one a >different port (connector) in the same Service (in the server.xml), or >would each require it's own 'Service' tag altogether? or what? > >Sorry if my question is confusing, or if I'm making complicated things >out of something simple, I'm just a bit confused. > >Thanks >Joel > >=== >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
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
Re: Server-Side ActiveX technology
why someone should have to do something so stupid? just do it in asp and be happy -Mensaje original- De: Himar Carmona Delgado [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 16 de octubre de 2002 14:57 Para: [EMAIL PROTECTED] Asunto: 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 ==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: Moving client from one web app into another
> why two webapps ? In your web.xml, why not create a security-constraint > element, with web-resource-collection for all your secure pages, in the > user-data-constraint set the transport-guarantee as CONFIDENTIAL. Then > https has to be used for all your secure pages. this seems to be what I need, thanks. I put the following xml into my web.xml: Client /client/* CONFIDENTIAL does this look correct? I assumed that once this was in following a link such as would automatically use the ssl port or something. Nothing seemed to happen though :-( I just accessed the page as normal. Do I need to define user-roles etc as well maybe? thanks for the help, at least I have something to look further into... === 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()
>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:[EMAIL PROTECTED]] 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
Re: Connection to database from jsp.
Alternatively, investigate connection pooling. There is quite a lot of reference to that if you do a Google search. -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Padhu Vinirs Sent: 16 October 2002 13:50 To: [EMAIL PROTECTED] Subject: Re: Connection to database from jsp. Override jspInit() in a declaration block, create the connection, and save it as an attribute in ServletContext. -- padhu Anoop Kumar V wrote: >We have a system consisting of a group of jsps - which have links to one >another. There is no controller servlet as it is a simple system. What i >want is to access the database from the jsps. The problem is that I do not >want a new connection to be established everytime a request is made. What is >the solution for this? >I had initially thought of having a utility class and in that I can have a >getConnection method which returns the connection to a static connection >reference in the same utility class. This can then be assigned to the jsps >(by making a call from the jsps to some method - returnConn, in the utilily >class). Is it true that a new connection will be established everytime. This >has confused me a bit. >I am infact confused now about the very concept of static references. How do >you think this problem can be solved? Will a servlet be of any use? Actually >in a servlet, if we have a static connection reference as a class variable, >and the initialization is done ( acquiring a connection) in the init method >( as init is executed only once in the lifetime of a servlet), the problem >may be solved. In a servlet, the init method is executed only once and the >servlet does not go out of memory till the server comes down. So I presume >the connection will also be the same. Is this correct? Even if it is, I want >to avoid the servlet, as it will be a lot of rework if the servlet has to be >fit in. The application would have to be changed. Suggestions invited. > > >Anoop Kumar V. > >=== >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
TomCat/Apache & Sun's One ASP Compatability
I see a TomCat ver 4.1.12 and Apache 2.0.43 on the web sites as being available. Are their concerns with them being ready to use in production or working together? I am not even sure if these are the latest and greatest. I would like to investigate to see if we wanted the newer versions installed. Also any compatibility issues with these working with Sun's ONE Active Server Pages v3.6.2. Any websites that have the above information is appreciated also. Thank you 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
Are servlets faster?
Are servlets faster at displaying data? If I want to display large amounts of data on a page, are Servlets faster then JSP in displaying the data? Or does it matter at all because JSPs are turned into Servlets when the app server compiles them? what are your thoughts? thank you! Troy Campano ==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: Are servlets faster?
JSPs are just servlets. With servlets there's a marginal amount of performance saving since the JSP model does some initialization for you (getting session, servletcontext). It also uses an array to point to the hard-coded (HTML) source that has slightly more overhead then other data structures. With servlets you could some of the speeding up (setting class as final) of the language that you couldn't with a JSP. The actual rendering that you are probably doing through JavaBean calls would remain the same speed though. - Original Message - From: "Campano, Troy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 3:55 PM Subject: Are servlets faster? Are servlets faster at displaying data? If I want to display large amounts of data on a page, are Servlets faster then JSP in displaying the data? Or does it matter at all because JSPs are turned into Servlets when the app server compiles them? what are your thoughts? thank you! Troy Campano = 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
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
Re: Checking client connection speed
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- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Means, Garann R. Sent: 16 octobre, 2002 16:59 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
Re: Checking client connection speed
You would then submit those characters back right? - Original Message - From: "David Marquis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 5:19 PM Subject: Re: Checking client connection speed > 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- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]] On Behalf Of Means, Garann R. > Sent: 16 octobre, 2002 16:59 > 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 > === 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
David, Thanks for the quick response, but I was looking for something a little closer to ping. I'd like to send out several packets of the same size and track the time it takes to get them back. But as I say, I'm not knowledgeable about networking, so I'm having trouble figuring out where to start. I looked for an off the shelf product, but haven't had much success finding that, either. -Original Message- From: David Marquis [mailto:[EMAIL PROTECTED]] Sent: October 16, 2002 - Wednesday 2:20p To: [EMAIL PROTECTED] Subject: Re: Checking client connection speed 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- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Means, Garann R. Sent: 16 octobre, 2002 16:59 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 === 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
Isn't PING Still around?? 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
Hi, The first thing that comes to mind is to use a javascript/java in a page running on the client side that would report the results to your JSP/servlet page. The main advantages are that you don't need to wory about firewalls on the client side, and the work is done on the client side, so you don't need to worry about timeouts and stuff like that. There are quite a few sites on the net that let you measure the speed of your connection. Find one, and see if you can figure out how they do it. It doesn't sound like a small task. Dror On Wed, Oct 16, 2002 at 02:23:42PM -0700, Means, Garann R. wrote: > David, > > Thanks for the quick response, but I was looking for something a little > closer to ping. I'd like to send out several packets of the same size and > track the time it takes to get them back. But as I say, I'm not > knowledgeable about networking, so I'm having trouble figuring out where to > start. I looked for an off the shelf product, but haven't had much success > finding that, either. > > -Original Message- > From: David Marquis [mailto:[EMAIL PROTECTED]] > Sent: October 16, 2002 - Wednesday 2:20p > To: [EMAIL PROTECTED] > Subject: Re: Checking client connection speed > > > 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- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]] On Behalf Of Means, Garann R. > Sent: 16 octobre, 2002 16:59 > 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 > > === > 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 -- Dror Matalon Zapatec Inc 1700 MLK Way Berkeley, CA 94709 http://www.zapatec.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
Garann, A very simple way to do it is by having a page following this pseudo-code: 1. var start = current time 2. write some HTML (or JavaScript) comment containing n characters 3. var end = current time 4. store 'end-start' in a hidden field of some HTML form and post back the form Because browsers execute JavaScript statement as they are received from the server, if you flush the server output right after steps (1) and (3), you will get in the hidden field the time it takes to send n characters to the browsers (a very good approximation of it, anyway). Cheers, Boris _ TICL - a RAD toolkit for server-side Java http://www.kobrix.com -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]] On Behalf Of Means, Garann R. Sent: Wednesday, October 16, 2002 4: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 mail2web - Check your email from the web at http://mail2web.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: 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