Listing Active Sessions
Hi All, Could some one tell me how tolistall the sessions which are active at a particular instance?Iguess the interface HttpSessionContext can be used for this, but API doc says, it has been deprecated with no replacement. Could some one suggest an alternative way out please?? I'm using JavaWebServer 2.0 Thanks in Advance. Rao.
Re: Listing Active Sessions
Well, so has Java Web Server (deprecated) :) It depends on your particular server - different servers use different session managers. The iPlanet server has a open-source session manager so perhaps you could use it to suit your needs. N -Original Message-From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rao SantapurSent: Friday, April 28, 2000 2:39 AMTo: [EMAIL PROTECTED]Subject: Listing Active Sessions Hi All, Could some one tell me how tolistall the sessions which are active at a particular instance?Iguess the interface HttpSessionContext can be used for this, but API doc says, it has been deprecated with no replacement. Could some one suggest an alternative way out please?? I'm using JavaWebServer 2.0 Thanks in Advance. Rao.
Re: Listing Active Sessions
Rao Santapur [EMAIL PROTECTED] 28-Apr-00 7:38:37 AM Could some one tell me how to list all the sessions which are active at a particular instance? I guess the interface HttpSessionContext can be used for this, but API doc says, it has been deprecated with no replacement. Could some one suggest an alternative way out please?? Check on the archives but the way I normally do it is to double reference. ie: every time I create a session I put a reference to the objects I put in a session elsewhere (ie: outside the session manager). I can then do what ever I like with them, as long as I delete them when the session gets collected. Note: you only need this technique very rarely. It's a *very* good idea to avoid this sort of thing if you possibly can. Nic Ferrier ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Classpath?
Hi I'm sorry for posting a basic question in this advanced forum. I've installed JavaWebServer on my system and the class path is set to its lib/servlet.jar, which is working fine. When I use a similar class path in another system, the error message saying javax not found in import is displayed. What could be the reason?? Thanks, Mani ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Installation of JSDK2.0 ?
Is there newer JDK version ready for developing servlets? Or I have to install JSDK2.0? If so, how to setup the classpath correctly (under Windows 98) for compiling the source code using standard javac compiler ? Yes, there is a newer version of JSDK - check java.sun.com for it. Unfortunately (and to my best knowledge) JServ only supports 2.0 so if you're using apache+jserv you have to use it (it can be downloaded from the SUN's site as well). You can also download sun's JSWDK - it's coming with a simple web server as well and supports the latest version of JSDK. Coming to correct installation, there is a file 'jsdk.jar' and you have to include it in your classpath. Baglan ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
AW: Listing Active Sessions
see Jason Hunter p.215/6 Enumeration enum = session.getSessionContext().getIds(); ... /*/ Thomas Schuchert Cyberconsult Beratungsgesellschaft für Neue Medien mbH [EMAIL PROTECTED] 030 - 39 99 05 46 /*/ -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rao Santapur Sent: Friday, April 28, 2000 2:39 AM To: [EMAIL PROTECTED] Subject: Listing Active Sessions Hi All, Could some one tell me how to list all the sessions which are active at a particular instance? I guess the interface HttpSessionContext can be used for this, but API doc says, it has been deprecated with no replacement. Could some one suggest an alternative way out please?? I'm using JavaWebServer 2.0 Thanks in Advance. Rao. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Servlet Container, Servlet Engine and Web Server
Hi there, What is the difference between a Servlet Container and Servlet Engine? What role do they play in a Web Server? and how? Regards, Rajneesh Garg Keep Smiling. It does improve your face value. :-) ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
IIS JRun
I am using IIS with Jrun for servlet supprt.Can I make use of JSPs in my application.Do i need to have any other utility for that? rgds, Rahul -Original Message- From: Jason Hunter [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 27, 2000 11:48 PM To: [EMAIL PROTECTED] Subject:Re: Constructors in Servlet Andy Bailey wrote: On Thu, 27 Apr 2000, P.Yesudason wrote: What is happening man. I am sure there is no concept of constructors in Servlet ..It is given in books. Well then the books you have read are either misleading or incorrect. Actually Milt, most books don't address this point because it is seemingly irrelevant. However it isn't at all irrelevant if you ask the question "What about the Servlet Constructors?". Even a short section about not having to worry about them and why would be invaluable as it answers questions Someone hasn't been reading the right servlet book! See p. 56 of my "Java Servlet Programming". Check the paragraph containing the question, "Why not use a constructor instead?" :-) -jh- -- Jason Hunter [EMAIL PROTECTED] Book:http://www.servlets.com/book 2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html 2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Printing through servlet?
I would like to have a servlet print a formatted page. Is this possible through the LPT1 port? Any examples appreciated. Tom K. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
How can i get that my servlet change the own of file????
My servlet write a file in temporal directory path But the own of file is nobody, and i can't see the file because i haven't permission. How can i get that my servlet change the own of file to pgarrido? thanks in advance begin:vcard n:Garrido Carrillo;José x-mozilla-html:FALSE org:Universidad de Granada;Centro de Servicios Informáticos adr:;;Edificio Mecenas s/n;Granada;;;España version:2.1 email;internet:[EMAIL PROTECTED] title:Becario Programador x-mozilla-cpt:;9776 fn:José Garrido Carrillo end:vcard
Re: Listing Active Sessions
- Original Message - From: Rao Santapur To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 8:38 AM Subject: Listing Active Sessions Hi All, Could some one tell me how tolistall the sessions which are active at a particular instance?Iguess the interface HttpSessionContext can be used for this, but API doc says, it has been deprecated with no replacement. Could some one suggest an alternative way out please?? I'm using JavaWebServer 2.0 Thanks in Advance. Rao. Hi Rao, There is a good reason why access to other servlets and sessions via the Servlet API has been deprecated and in most cases deprecated properly, namely security. If you can access them so can anyone one elses Servlets and JSP's which is not a good thing. You could setup all of your servlets such that session object references are stored in a central storage object however you may have problems when the server is restarted (Session objects are quite often persistent) so you would have to have some way of updating your session reference object each time a session object (via getSesstion methods) is grabbed from the session pool. While it might seem like a good idea to make your session reference object persistent as well, it is not because the sesssion objects you would be storing in your .ser file will no longer be the same session objects that the server restores (it has its own session store). Just out of interest, why on earth do you need to be able to track all sessions? Andy Bailey
Re: Installation of JSDK2.0 ?
Baglan: Thanks a lot. I sovled the problem based on your suggestions. Chen ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Servlet Container, Servlet Engine and Web Server
Hi there, What is the difference between a Servlet Container and Servlet Engine? What role do they play in a Web Server? and how? Regards, Rajneesh Garg Keep Smiling. It does improve your face value. :-)
Re: new to JDBC !!!
Your 'result' definition is not the problem. stmt is defined in init() which makes it local to that method, but you are trying to use it in doPost(). You need to define "Statement stmt" outside the methods which will allow both init() and doPost() to to execute methods for that class - public CLASS xxx extends HttpServlet { Statement stmt; public void init(ServletConfig cfg) throws ServletException { stmt = con.createStatement(); ... } ... doPost(..) { // Same commands as you have below... } } John. -Original Message- From: Parvez Lanewala [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 27, 2000 7:59 PM To: [EMAIL PROTECTED] Subject: new to JDBC !!! hi, i'm not getting why i'm getting this error. can someone help me. when i compile the following code : // this is in init() function . . Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:data1"); Statement stmt=con.createStatement(); .. .. protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ResultSet result; if(req.getParameter("action").equals("publisher")) { result=stmt.executeQuery("Select * from BookDetails"); msg=result.getString(4); } ... ... ... This gives error as: -- data1.java:59: Undefined variable or class name: stmt result=stmt.executeQuery("Select * from BookDetails"); ^ -- Where do i define result ? Thanks. Parvez. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Listing Active Sessions
Hi Nic, Thanks for your reply.. I understand that, I can store the session objects some where as you said, and also delete them as soon as the user logs out. But I wonder what would be the case, if the connection is lost or user closes the browser without properly logging out..?? -Rao - Original Message - From: Nic Ferrier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 12:19 Subject: Re: Listing Active Sessions Rao Santapur [EMAIL PROTECTED] 28-Apr-00 7:38:37 AM Could some one tell me how to list all the sessions which are active at a particular instance? I guess the interface HttpSessionContext can be used for this, but API doc says, it has been deprecated with no replacement. Could some one suggest an alternative way out please?? Check on the archives but the way I normally do it is to double reference. ie: every time I create a session I put a reference to the objects I put in a session elsewhere (ie: outside the session manager). I can then do what ever I like with them, as long as I delete them when the session gets collected. Note: you only need this technique very rarely. It's a *very* good idea to avoid this sort of thing if you possibly can. Nic Ferrier ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Listing Active Sessions
Hi Andy, Thanks for your reply... Ok.. why I needto list active sessions??, the reason is.. I would like to know how many users are connected to my server at a given time, and I will have to track theIP address of the each request where it has come from.. so when ever user logs on , I'llcapture the IP address of that user request and associate it with the session object. Can you please suggest me a work around , how to achive this?? Rao. - Original Message - From: Andy Bailey To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 14:08 Subject: Re: Listing Active Sessions - Original Message - From: Rao Santapur To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 8:38 AM Subject: Listing Active Sessions Hi All, Could some one tell me how tolistall the sessions which are active at a particular instance?Iguess the interface HttpSessionContext can be used for this, but API doc says, it has been deprecated with no replacement. Could some one suggest an alternative way out please?? I'm using JavaWebServer 2.0 Thanks in Advance. Rao. Hi Rao, There is a good reason why access to other servlets and sessions via the Servlet API has been deprecated and in most cases deprecated properly, namely security. If you can access them so can anyone one elses Servlets and JSP's which is not a good thing. You could setup all of your servlets such that session object references are stored in a central storage object however you may have problems when the server is restarted (Session objects are quite often persistent) so you would have to have some way of updating your session reference object each time a session object (via getSesstion methods) is grabbed from the session pool. While it might seem like a good idea to make your session reference object persistent as well, it is not because the sesssion objects you would be storing in your .ser file will no longer be the same session objects that the server restores (it has its own session store). Just out of interest, why on earth do you need to be able to track all sessions? Andy Bailey
Auto reload??
Guys, I'm using JWS 113 on NT. How is it possible that a servlet doesn't reload automatically if I don't have a classpath at all? I know that if the class is on the classpath, then it doesn't get reloaded automatically, but if I don't even have a classpath at all how come this is happenning??? Thanks to all. Pol Millan ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Listing Active Sessions
Rao Santapur [EMAIL PROTECTED] 28-Apr-00 9:47:29 AM But I wonder what would be the case, if the connection is lost or user closes the browser without properly logging out..?? If you check the API (grrr) you will find that sessions objects can have listeners on them which recieve certain events, one of those is the session being destroyed becuase it's out of date (ie: the user has not logged out). Implement a listener and have that destroy your duplicate copy. Nic ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Auto reload??
Think the following scenario : 1 - a servlet engine servlets spy component executes an active polling to see if your_servlet.class has been updated into your web application deployment directory or your .war. 2 - if so, this spy emits an event to trigger a new class loading operation to substitute the new version to the old. But I have another question about the normal behavior of the automatic reloading functionality : If my servlet current instances deals with a session even if not active (executing its service method) when the update occurs, what happens? Is there a mean to preserve some data like session data from old to new instances? Is there a mean to deactivate the automatic reloading programmtically, during bounded periods like sessions? Pol Millan wrote: Guys, I'm using JWS 113 on NT. How is it possible that a servlet doesn't reload automatically if I don't have a classpath at all? I know that if the class is on the classpath, then it doesn't get reloaded automatically, but if I don't even have a classpath at all how come this is happenning??? Thanks to all. Pol Millan ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html begin:vcard n:Lepoivre;Franck tel;cell:06 82 06 85 29 tel;home:04 78 94 19 46 tel;work:Consultant x-mozilla-html:TRUE org:CosmosBay;Engineering adr:;; version:2.1 email;internet:[EMAIL PROTECTED] title:Consultant fn:Franck Lepoivre end:vcard
Re: Listing Active Sessions
- Original Message - From: Rao Santapur To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 12:01 PM Subject: Re: Listing Active Sessions Hi, Hi Andy, Thanks for your reply... Ok.. why I needto list active sessions??, the reason is.. I would like to know how many users are connected to my server at a given time, and I will have to track theIP address of the each request where it has come from.. so when ever user logs on , I'llcapture the IP address of that user request and associate it with the session object. Can you please suggest me a work around , how to achive this?? Are You talking about user leaving his session (by closing the window or log out ) and after that he comes back? Maybe i am missing something here but as far as i know the HttpSession object will be invalidated when the browser is closed.After a while it will be destroyed by the servlet engine. So if a user closes the window and than he comes back after a while even if you track his IP,his session is very likelydestroyed. And another thing: one IP address is not enough to track an user (machine) the request.getRemoteAddr() ussually returns the proxy IP. So maybe you want to check for some headers too like "x-forwarded-for". If iDIDN'T missunderstand You i would suggest using cookies and implementYour own session like YOU described. p.s. Sorry if i missundestood You (please ingnore this e-mail if so) :) Andras. Rao.
Re: stop
David, actually we need to load another page immediately after the servlet starts, so the white page comes after the other page, Couldn't you write a Thread that does the work for you ? You spawn the thread, and send the page you want to send. IMHO, you shouldn't let your servlet do a lot of db work. You spawn the thread and send the page you want. You won't even get the blank page. sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Constructors in Servlet
"P.Yesudason" wrote: What is happening man. I am sure there is no concept of constructors in Servlet ..It is given in books. If yes Try to give the details ...seems to be intresting Yesudas sushilkumar wrote: Since HttpServlet is a descendant of GenericServlet, which of course is a descendant of java.lang.Object and since we know all descendants of Object have a generic constructor, HttpServlet has a constructor too. Some Code: (GenericServlet.java) clip clip public abstract class GenericServlet implements Servlet, ServletConfig, java.io.Serializable { private transient ServletConfig config; /** * The default constructor does no work. */ public GenericServlet () { } clip clip The same code can be found in HttpServlet.java sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: How to send an HTML email message
Nabil Abbas wrote: Hello all, I am using Javamail to send an email message from a servlet. I want to send an HTML message, but when I set the content type to html/text I get sending failed error message, any help ? regards, Nabil There is an excelent example in the example directory that comes with javamail on how to send HTML emails using java mail. sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Help me to Communicate with Web Servers
I'm struggling in communicating with Web Servers. For example, I'm not being able to automatically fill in the form from the site www.cybercook.com.br. This site returns me the page containing the form and not the answer to the query. Maybe this site works with cookies and I don't know how to manipulate cookies in order to retrieve the correct response. Could some body help me out Thanks, Claudine *** * CLAUDINE SANTOS BADUE * * * * Msc. Student - Computer Science * * Laboratory for Treating Information (http://www.dcc.ufmg.br/latin/) * * DCC - UFMG - Brazil * *** * "For God so loved the world that He gave His one and only Son, * * that whoever believes in Him shall not perish but have * * eternal life" (John 3:16) * * * * "Jesus answered: I am the way and the truth and the life. * * No one comes to the Father except through me" (John 14:6) * *** ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: new to JDBC !!!
Parvez Lanewala wrote: hi, i'm not getting why i'm getting this error. can someone help me. when i compile the following code : // this is in init() function . . Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:data1"); Statement stmt=con.createStatement(); .. .. protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ResultSet result; if(req.getParameter("action").equals("publisher")) { result=stmt.executeQuery("Select * from BookDetails"); msg=result.getString(4); } ... ... ... This gives error as: -- data1.java:59: Undefined variable or class name: stmt result=stmt.executeQuery("Select * from BookDetails"); ^ -- Where do i define result ? You went wrong in the init() method. In your case con and stmt are local to the init() method. You should declare them as Fields of the class (e.i. declare them right after you declare the class public myclass{ Connection con; Statement stmt; public void init(){ con = ...; stmt = ...; } } This way it should work -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Printing through servlet?
In java we have a class called printerJob , that will do it for you. Go thru it .. -Yesudason P "blueads.com" wrote: I would like to have a servlet print a formatted page. Is this possible through the LPT1 port? Any examples appreciated. Tom K. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html -- I am free and have a destination too far, I will keep flying. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: How to send an HTML email message
Hi ! Or check http://www.javaframework.de ! There you will also find a working example ! Bye bye Christian Schulz -- Original Message -- From: sven [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Date: Fri, 28 Apr 2000 08:35:15 -0300 Nabil Abbas wrote: Hello all, I am using Javamail to send an email message from a servlet. I want to send an HTML message, but when I set the content type to html/text I get sending failed error message, any help ? regards, Nabil There is an excelent example in the example directory that comes with javamail on how to send HTML emails using java mail. sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: ServletConfig
hi, you can find those information in this direstories. /jrun/jsm-default/servoces/jseweb/servlets.properties regards ranga --- Purushothaman Kaliyaperum [EMAIL PROTECTED] wrote: Hi all, I have a problem in deploying servlets in JRun with IIS. I previuosly used Tomcat 3.0 , in that i used toedit the deployement descriptor stuff. Similarly in JRUN where i have to put the info regarding myservlets. Thanx in advance puru ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Character Encoding
Hi, We are using Japanese Sun Solaris for the server. The webserver is Apache 1. 3.9 and Jserv 1.1. For the following statement System.getProperty("file.encoding") in a normal Java application I get the result as EucJP Now if we run the same statement in a Servlet on the same machine we get the result as ISO8859-1 Could you please throw some light on this. Regards, Sumit __ Sumit Gupta ITL Infosys From Pune: 925-32800, Elsewhere : +91-2139-32800 Extn: 2024 This mail comes to you from a Japanese OS. If you find some Garbage in the mail that is irritating you, Please inform me. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: stop
HI, thanks for response, the another page I can't control because It is from Interworld .tem file, it is not from my java code, but can I write another thread in the servlet to do the db work and I still do not need any page back ? Thanks in advance. David -Original Message- From: sven [mailto:[EMAIL PROTECTED]] Sent: Friday, April 28, 2000 7:18 AM To: [EMAIL PROTECTED] Subject: Re: stop David, actually we need to load another page immediately after the servlet starts, so the white page comes after the other page, Couldn't you write a Thread that does the work for you ? You spawn the thread, and send the page you want to send. IMHO, you shouldn't let your servlet do a lot of db work. You spawn the thread and send the page you want. You won't even get the blank page. sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: stop
Hi, I called res.setStatus(HttpServletResponse.SC_NO_CONTENT) before db process, but still a white page coming back. do you have more idea? David -Original Message- From: Paul King [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 27, 2000 12:14 PM To: [EMAIL PROTECTED] Subject: Re: stop David: Could you have your servlet return a status code of 204 (No Content) immediately before the database operations? Regards, Paul King -Original Message- From: David Du [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Thursday, April 27, 2000 10:34 AM Subject: stop Hi, have I sent through this message ? Thanks Hi, I am running a problem with servlet, I have a servlet which get data from one backend database and send the data to another database, this process is done when users browser our website. My issue is that I don't have any data sent back to the browser displayed on a page, but the server is trying to send back an empty white page, so the It is running the busy cusor all the time until the servlet process is done, actually we need to load another page immediately after the servlet starts, so the white page comes after the other page, I want to write codes(javascript, html, or others) to similate clicking the stop button on the browser toolbar like window.stop(), but this only works for Netscape, not for IE5.01, would you guys please help me with this issue ? Thank you very much in advance ! David Du ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Hi
What's your problem?? -Original Message-From: Amit Kaushik [mailto:[EMAIL PROTECTED]]Sent: Saturday, February 27, 1999 7:18 PMTo: [EMAIL PROTECTED]Subject: Hi Hi everybody.
Connection Pooling..
Hi All , Can any body suggest me what is connection pooling. And how can I imlement it in my servlets? Thanx in anticipation.. Regards vinay ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Printing through servlet?
I will check it out, thanks. Tom K. -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of P.Yesudason Sent: Friday, April 28, 2000 6:46 AM To: [EMAIL PROTECTED] Subject: Re: Printing through servlet? In java we have a class called printerJob , that will do it for you. Go thru it .. -Yesudason P "blueads.com" wrote: I would like to have a servlet print a formatted page. Is this possible through the LPT1 port? Any examples appreciated. Tom K. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html -- I am free and have a destination too far, I will keep flying. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Free JDBC drivers
Hello friends! Where can I find the JDBC drivers for free? Give me URLs please! Not the evaluation versions. Best Regards, Eugene Sureev [EMAIL PROTECTED] ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Servlet Container, Servlet Engine and Web Server
Hello, In respect to the J2EE idea, which is container oriented, servlet engines are now named servlet containers. Therefor, engine and container are the sames : this is only a nomenclature change. Pascal Deschenes -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rajneesh Garg Sent: April 28, 2000 2:49 AM To: [EMAIL PROTECTED] Subject: Servlet Container, Servlet Engine and Web Server Hi there, What is the difference between a Servlet Container and Servlet Engine? What role do they play in a Web Server? and how? Regards, Rajneesh Garg Keep Smiling. It does improve your face value. :-) ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
protect html files
I made a html Log In Page where the user put his log Name and Password... i made this the index.html page... i check the password and if it's correct i send a redirection to the main page... but what i want to add it's this... before the redirect create a session and create a variable to the session with the user name.. there it's no problem with all that.. but how i protect the other pages that if don't have the session variable with the user name.. don't let this person enter to any page and redirect to the log in page..??? because i can redirect to a servlet an check... but if the user type the direct path to the main page for example how i can protect..?? please.. tell me the best way to do this..!! TIA and Thanks for your help... Greeting from Mexico...to everybody ___ Ing. Efrain Gutierrez Cts Programador/Sistemas SIECOR de Mexico Reynosa,Tamps.MX Phone 052 (89) 210987 Phone 052 (89) 210900 Ext 8448 Fax 052 (89) 210963 [EMAIL PROTECTED] ICQ# 2293612 http://go.to/efrain http://efrain.go.to Todos los días pregúntate ¿Cuánto gozo con lo poco que tengo?, y no sufras por lo mucho que anhelas... ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Free JDBC drivers
Sybase's jConnect is free last I heard http://www.sybase.com jb On Fri, 28 April 2000, Eugene Sureev wrote: Hello friends! Where can I find the JDBC drivers for free? Give me URLs please! Not the evaluation versions. Best Regards, Eugene Sureev [EMAIL PROTECTED] ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html Jeff Black, Principal Advanced Solutions, Inc. www.advancedsolutionsinc.com (615) 293-7258 ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
DB2 jdbc driver servlet.
I've just installed DB2 v7.1 and am trying to create a simple servlet to test the driver. I have some code that works perfectly well as an application, but a soon as I try the same in a servlet, it does not work. public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ PrintStream out = new PrintStream (response.getOutputStream()); Connection conn = null; Statement stmt = null; response.setContentType ("text/html"); try { // register the driver with DriverManager // The newInstance() call is needed for the sample to work with // JDK 1.1.1 on OS/2, where the Class.forName() method does not // run the static initializer. For other JDKs, the newInstance // call can be omitted. Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");//.newInstance(); } catch (Exception e) { e.printStackTrace(out); } try { // Get a DB connection from the Broker //for (int i = 0 ; i = 1; i++); String url = "jdbc:db2:sample"; String user = "like"; String pwd = "duh!"; conn = DriverManager.getConnection(url, user, pwd); The error give is: Error code: java.sql.SQLException: No suitable driver Can anyone tell me what I'm doing wrong here ?? sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Free JDBC drivers
The most complete list of what's available I have seen is at http://industry.java.sun.com/products/jdbc/drivers Mike -Original Message- From: Eugene Sureev [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Friday, April 28, 2000 11:47 AM Subject: Free JDBC drivers Hello friends! Where can I find the JDBC drivers for free? Give me URLs please! Not the evaluation versions. Best Regards, Eugene Sureev [EMAIL PROTECTED] ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: DB2 jdbc driver servlet.
If it works fine in your regular application, the only thing I can think of is whether you had your jdbc driver included in your web server CLASSPATH environment. Web servers in general do not use your system CLASSPATH. Mike From: sven [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: DB2 jdbc driver servlet. Date: Fri, 28 Apr 2000 13:12:28 -0300 I've just installed DB2 v7.1 and am trying to create a simple servlet to test the driver. I have some code that works perfectly well as an application, but a soon as I try the same in a servlet, it does not work. public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ PrintStream out = new PrintStream (response.getOutputStream()); Connection conn = null; Statement stmt = null; response.setContentType ("text/html"); try { // register the driver with DriverManager // The newInstance() call is needed for the sample to work with // JDK 1.1.1 on OS/2, where the Class.forName() method does not // run the static initializer. For other JDKs, the newInstance // call can be omitted. Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");//.newInstance(); } catch (Exception e) { e.printStackTrace(out); } try { // Get a DB connection from the Broker //for (int i = 0 ; i = 1; i++); String url = "jdbc:db2:sample"; String user = "like"; String pwd = "duh!"; conn = DriverManager.getConnection(url, user, pwd); The error give is: Error code: java.sql.SQLException: No suitable driver Can anyone tell me what I'm doing wrong here ?? sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: DB2 jdbc driver servlet.
Are you sure that the DB2 driver class files are in your servlet engine classpath? regards, E. Robles - Original Message - From: "sven" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 12:12 PM Subject: DB2 jdbc driver servlet. I've just installed DB2 v7.1 and am trying to create a simple servlet to test the driver. I have some code that works perfectly well as an application, but a soon as I try the same in a servlet, it does not work. The error give is: Error code: java.sql.SQLException: No suitable driver Can anyone tell me what I'm doing wrong here ?? sven ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
servlet crash
I'm finding that the jsp directive jsp:include page="blah.jsp" flush="true" / is crashing the JRun servlet engine I'm using every single time I try it. I'm using jre 1.2.2 and Jrun 2.3.3. Has anyone seen this behaviour before? Thanks steve ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Servlets and JDBC for LINUX
hy! what I can connect myself with foxpro tables that are in a NT and a database of Oracle that this in UNIX, but my servlets is in a LINUX, I have already made it in a NT using as bridge a ODBC, and works well, but one doesn't eat to make for LINUX ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: DB2 jdbc driver servlet.
"Eulogio Robles P." wrote: Are you sure that the DB2 driver class files are in your servlet engine classpath? Well, I added wrapper.classpath=C:\bla\bla\db2java.zip to jserv.properties I I would expect that to be correct. sven -- --- Sven E. van 't VeerAfiliado Universo Online Gerente Desenvolvimento Brasil Informática e Telecomunicações Ltda. http://www.brvip.com.br http://www.uol.com.br --- ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Classpath?
Hi Nagamani, Probably in other system u have not installed JSDK. Thats why it is showing the error like Javax not found in import. U need to install JSDK on that system and try again. If not let me know about it.. Nagi --- Nagamani Nutulapati [EMAIL PROTECTED] wrote: Hi I'm sorry for posting a basic question in this advanced forum. I've installed JavaWebServer on my system and the class path is set to its lib/servlet.jar, which is working fine. When I use a similar class path in another system, the error message saying javax not found in import is displayed. What could be the reason?? Thanks, Mani ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html __ Do You Yahoo!? Talk to your friends online and get email alerts with Yahoo! Messenger. http://im.yahoo.com/ ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Looking for WebSphere 3.0 experience
Hey! Yes. Attach your smallest code and I will take a look at it. Do this offline though. They get really angry when asking specific product questions on this E-list. Although, those Jrun setup questions never seem to go away. The same question appears over and over and over. It's enough to make you barf. blahhh. :) Sans adieu, Danny Rubis "Kirkdorffer, Daniel" wrote: Has anyone successfully got WebSphere 3.02 working on NT for use by a JSP/servlet based web app? I'm having all kinds of problems getting things to work after upgrading the code from 0.91 to 1.0 and trying to get what worked on WebSphere 2.03 to work on WAS 3.02. If someone could assist via email or phone that would be so helpful. Thanks in advance, Dan -- Daniel Kirkdorffer NACN IS: 425-580-6225 Sr. Consultant, Syllogistics LLC Email: [EMAIL PROTECTED] Web: http://www.syllogistics.com/ ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
stop
Thanks Hi, I am running a problem with servlet, I have a servlet which get data from one backend database and send the data to another database, this process is done when users browser our website. My issue is that I don't have any data sent back to the browser displayed on a page, but the server is trying to send back an empty white page, so the It is running the busy cusor all the time until the servlet process is done, actually we need to load another page immediately after the servlet starts, so the white page comes after the other page, I want to write codes(javascript, html, or others) to similate clicking the stop button on the browser toolbar like window.stop(), but this only works for Netscape, not for IE5.01, would you guys please help me with this issue ? Thank you very much in advance ! David Du ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: servlet and jdbc
Hey! You don't say what servlet engine you are using. But you must have the DB driver classes in the engine's classpath. WebSphere allows one to use the system classpath or the servlet engine's class path. Make sure you know what path is being used. You can look around in your admin.config, but this may be specific for WebSphere. Your engine may be different. Or you can write a small servlet that does something like this: java.util.Properties props = System.getProperties(); enum = props.propertyNames(); Then iterate on this enumeration with this: name = (String) enum.nextElement(); props.getProperty(name) That should get you all of your properties and I believe the classpath will be there. Good luck. Sans adieu, Danny Rubis j2ee2 j2ee2 wrote: I am using apache under linux, and the database is postgresql. I am trying to retrieve data from a database using jdbc. However it always throw a ClassNotFound exception when I try to run this code " Class.forName("postgresql.Driver"); I use the same code for a java application, it's works. But use this code in Servlet, it do not works at all. thanks Send FREE April Fool's Greetings to your friends! http://www.whowhere.lycos.com/redirects/American_Greetings.rdct ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Running servlets in JSDK2.1
Hi! I am running a servlet in JSDK2.1 on port 8080, I get the following error message, Error The requested item could not be loaded by the proxy. Netscape Proxy's network connection was refused by the server: localhost:8080 The server may not be accepting connections or may be busy. Try connecting again later. Proxy server at chris.myhome.com on port 8080 what should I do? thanks asher Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: new to JDBC !!!
Hey! I disagree with the way you are doing your DB connection, but there are some very good servlet developers on this list that disagree with me. I don't put DB connections in the init(). Why you say. Because I don't want any of my developers taking a long term connection to my DB. I put my connection code just before I need it and then let it go as soon as I am done. BTW, if you are truly doing the MVC you don't put the business model in you controller code anyway. Try a different approach like: Creating a method() that is called inside of your doGet()/doPost(). Pass in your Driver, URL, props and query string and pass back the result set. This is not perfect separation but it's a bit better. A better way is to have a DB class that holds your business model. Sans adieu, Danny Rubis Parvez Lanewala wrote: hi, i'm not getting why i'm getting this error. can someone help me. when i compile the following code : // this is in init() function . . Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:data1"); Statement stmt=con.createStatement(); .. .. protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ResultSet result; if(req.getParameter("action").equals("publisher")) { result=stmt.executeQuery("Select * from BookDetails"); msg=result.getString(4); } ... ... ... This gives error as: -- data1.java:59: Undefined variable or class name: stmt result=stmt.executeQuery("Select * from BookDetails"); ^ -- Where do i define result ? Thanks. Parvez. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Purpose of Servlets
Hi! Could you tell me what is the purpose of Servlets? What function are they performing? As I understand they are run on a server but I don't know what exaclty are they run for. Is it to provide a better and secure way to get info from the clients? thanks asher Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: Java.io.IOException
Hey! This is not a servlet issue, but I would look at the DataStream you are using. The error is most likely there. Sans adieu, Danny Rubis "Sambandan, Arunprakash" wrote: Hi, Could any one tell me what the below IO exception mean: pop0001-E-0320 04/27/2000 13:22:42 downloadServlet(POP) : ERROR - java.io.IOException: Error writing Response Body: -1 In what scenarios this exception would be thrown. Any info on this is appreciated. Arun. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Tech. help Apache-/Jrun installation on Linux
Hi all I have a Linux M/c I want to run my servlet on it, so i have to have the Apache I want to work with Jrun2.2 and apache Can any one tell me the details regarding the same, Waiting for the reply Thanx Sachin
Tech. help Apache-/Jrun installation on Linux
Hi all I have a Linux M/c I want to run my servlet on it, so i have to have the Apache I want to work with Jrun2.2 and apache Can any one tell me the details regarding the same, Waiting for the reply Thanx Sachin
Pls Help me out
Hi,EveryBoy: I downLoad the Jrun 2.3.3 from http://www2.allaire.com/products/jrun I install it in my web server IIS For WindowsNt,When I tested it use Http://ntserver\servlet\helloworldservlet I get the information that be included in companyInfo.html. and I check the Jrun.log file get error information is JRISAPI(1672) jrun is busy[dropped] Pls give me suggestion and solution. any help will be appreciated. Thanks Mark In ShenZhen in China. Too many concurrent JRun requestsJRun is busy. Please try again, or contact the system administrator for this web site.
Re: Tech. help Apache-/Jrun installation on Linux
goto livesoftware.com and download unix version. - Original Message - From: sachin zingade To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 7:36 PM Subject: Tech. help Apache-/Jrun installation on Linux Hi all I have a Linux M/c I want to run my servlet on it, so i have to have the Apache I want to work with Jrun2.2 and apache Can any one tell me the details regarding the same, Waiting for the reply Thanx Sachin
Re: Pls Help me out
Raghu: Thank you for your suggestion. It does not work yet. I just installed Jrun on my server.I want to test whether I have installed it correctly. - Original Message - From: raghuk [EMAIL PROTECTED] To: mark peng [EMAIL PROTECTED] Sent: Saturday, April 29, 2000 1:05 PM Subject: Re: Pls Help me out Mark, if you have tried to deploy any classfiles dynamically into the JRUN/Servlets directory, then this problem would occur. Ofcourse, this is only one of the possible reasons. Try this : Stop JRUN service manager(JSM). Wait for couple of minutes. Start JSM again (in application Service Mode). If this doesnot work, let me know. I will give you a check list for verification. All the best ! Raghu in Bangalore,India. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: servlet crash
Give me the details of blah.jsp , probelm is there -Yesudas Steve Bradshaw wrote: I'm finding that the jsp directive jsp:include page="blah.jsp" flush="true" / is crashing the JRun servlet engine I'm using every single time I try it. I'm using jre 1.2.2 and Jrun 2.3.3. Has anyone seen this behaviour before? Thanks steve ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html -- I am free and have a destination too far, I will keep flying. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html