how to track session expiry

1999-09-30 Thread Harish Kumar MB
hi, can any one tell me how to track the session expiry. i.e. if a session is expiring is there any event that triggers. I want to save the information present in the session variables some were when it expires. can u give a sample code to do this if u have. thanks, Harish

Re: how to track session expiry

1999-09-30 Thread Chris Pratt
Take a look at javax.servlet.http.HttpSessionBindingListener. (*Chris*) - Original Message - From: Harish Kumar MB [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 29, 1999 11:56 PM Subject: how to track session expiry hi, can any one tell me how to track the

My servlets don't get updated

1999-09-30 Thread Pol Millan
Hi everyone, I'm using JWS 1.1.3 under WNT. I've got all my servlets in the directory javawebserver1.1.3\servlets However, when I re-compile them, then don't get updated even if I go to the Administration Tool and 'unload and load' them. They only get updated once I have either

Re: get a list of active sessions?

1999-09-30 Thread Geoff Soutter
Craig R. McClanahan wrote: This would be just as fertile a ground for viruses as the Microsoft Office macros that allowed Melissa and all of its clones. Removing the ability to list all the active sessions protects you from this, even in third party code. Craig, would you consider it safe if

Problem accessing Servlet via IE5,or IE4

1999-09-30 Thread sidaty
HI all , My environment is :(server linux-2.2.5 , apach ,,jdk1.1.7B, jsdk2.1) ( clients win98 ,IE5,IE4,NetSacpe 4) I have the following sample code representing two servlets (servletA and servletB) . servletA reads a user name and password from a POST FORM the

Re: My servlets don't get updated

1999-09-30 Thread Pol Millan
I'm already doing that!! - Original Message - From: Paul Lingwood To: [EMAIL PROTECTED] Sent: Thursday, September 30, 1999 9:21 AM Subject: Re: My servlets don't get updated are u using any of your own support classes with the servlets ? if s0 .. put them

Re: A Java question

1999-09-30 Thread Karl Roberts
"Wu, Stanley (IMT)" wrote: I need to printout some error messages like "Entering Method A", "Exiting Method A" and etc. Instead of hard-coding the method names all over the places, I wonder if there is class / method I can call to return me the current method I am in? Thanks, Stan Hi,

Re: Session tracking with cookies

1999-09-30 Thread Hans Bergsten
Andras Balogh wrote: Hello All, Sorry if this question was asked already. I have used session tracking to maintane some info of the user. (This question is valid if cookies are used for session tracking). The deafult session timeout is 30 mins or the session will be invalidated

Re: get a list of active sessions?

1999-09-30 Thread Nick Rothwell
Because if your an ISP host servlets for other people, should you absolutely have to give each person their own JVM? It would be nice, but not absolutely necessary. So this is to prevent another programmer from modifying your application. This is the answer I would have given,

Re: My servlets don't get updated

1999-09-30 Thread Sonal Patni (CTS)
hi, First of all don't put that server in the auto start mode... Start it manually using httpd... after u have done that u don't need to restart the server again and can simply copy ur new complied servlets over the old ones...which i am sure would help u to get rid of ur annoyance. All the

Project contracting and longevity

1999-09-30 Thread Nick Rothwell
* Java programs are usually easy to understand by new programmers. Shell scripts and perl programs can look like gibberish to new developers, unless the original author takes care to format and document them precisely. Servlets are the safest architecture for projects which use consultants

Session Expiry event??

1999-09-30 Thread Harish Kumar MB
hi, I tried using the HttpSessionBindingListener. I put an object into the session which implements the HttpSessionBindingListener, the method value Bound is executed. Now the method valueUnbound will be executed when i use the removeValue method and remove the object from the session. Will the

JRun: java.lang.IllegalArgumentException

1999-09-30 Thread Kiran
Hi everybody, This is completely an off topic question. But I tried the JRun forums and I didn't get any help. I am really sorry for this post but I have no where else to go. So here goes.. I am having problems running the servlet on IIS4.0 and JRun2.3.3 (153). The application worked perfectly on

Re: Session Expiry event??

1999-09-30 Thread Nick Rothwell
Will the method 'valueUnbound' get executed when the session expires. This is described explicitly in the O'Reilly Servlet book by Hunter and Crawford, which would answer a lot of questions which seem to crop up on this list. The answer is yes.

Re: Session Expiry event??

1999-09-30 Thread Subrahmanyam A.V.B.
Harish, I tried using the HttpSessionBindingListener. I put an object into the session which implements the HttpSessionBindingListener, the method value Bound is executed. Now the method valueUnbound will be executed when i use the removeValue method and remove the object from the session.

Re: How to get the current directory name?

1999-09-30 Thread Yih-Shi Lee
I think this code can help you //FileLister v1.0 //this program use to list all files in current directory //author Yih-Shi Lee //date:1999/08 //Linux-style copyright import java.io.*; import java.util.*; public class FileLister implements FilenameFilter { private String[] subName; //file's

Re: Imaging Servlets

1999-09-30 Thread Simon Christian
Paul, I suggest you create a thumbnail-cache which holds the image data for thumbnails you create, with a unique, meaningful id for each one. This could either purge any thumbnails older than say 5 minutes, or purge thumbnails related to a specific session when the session is invalidated. Then

Re: Imaging Servlets

1999-09-30 Thread Paul Lingwood
sounds like a plan ! thanks simon. -Original Message-From: Simon Christian [EMAIL PROTECTED]To: [EMAIL PROTECTED] [EMAIL PROTECTED]Date: Thursday, September 30, 1999 1:07 PMSubject: Re: Imaging ServletsPaul, I suggest you create a thumbnail-cache which holds the image

Re: server same problem

1999-09-30 Thread anupam
I changed the enviorment value to the specifed but still i am getting out of enviorment space can anybody help - Original Message - From: Luc Saint-Elie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 29, 1999 3:41 AM Subject: Re: server Le 09:12 28/09/99 -0600, Jason

Re: A Java question

1999-09-30 Thread Michael Nash
Karl: I think Stanley was looking for the method name, not the class name - I have the same issue, and the only answer I've found is to put a string in the class that defines the name - doesn't seem to be a dynamic way of getting the current method name. You can get ALL method names with

Re: server same problem with liitle change

1999-09-30 Thread Vijaya Mahalakshmi
Hi Anupam, same answer as jason's but little change. Open a new MS-DOS window Click on the MS-DOS icon at the top-left of the Window Select teh Properties option Click on the "Memory" tab Adjust the drop-down box from "Auto" in all (i.e. "Initial

JDBC problem

1999-09-30 Thread Baris Ari
hi i am using jdbc to access a SQL Server v7.0 db. what i want to know is if there is a table defining which get method(getint, getString,getByte etc) to use with the column type. I have columntype in number but I dont know which function to use. Thanks in advance Baris Ari I-BIMSA

Re: Project contracting and longevity

1999-09-30 Thread Charles Forsythe
You seem to be rolling in an implicit criticism of consultants/contractors here. My personal take on this is that most management structures are very bad at managing contract work, especially when it comes to handovers, and many contractors are not good (or not properly motivated) to do good

Re: Project contracting and longevity

1999-09-30 Thread Nick Rothwell
Charles, Good points you make, all of them. (And tangential to the technical threads of this list, but probably more relevant at the design/politics level.) As an outside contractor, I certainly don't want to place undo criticism on outside contractors! Agreed (also as a contractor),

Servlet Refreshing

1999-09-30 Thread Ramesh A. Babu
I have a servlet which draws HTML page from doGet(). I want to refresh/redraw my servlet outside of doGet()/doPost(). (I have a thread in my servlet which check the variable is set to true or not. If true I want to redraw/refresh my screen. But I don't know how to do ?) So I tried this way,

Re: Servlet Refreshing

1999-09-30 Thread Bruno Lowagie
So I tried this way, response.setHeader("REFRESH", 10) This mechanism is also called 'client pull'. But i don't like this, instead i want my servlet screen automatically refreshed whenever the variable set to true (in thread) so how to refresh the page only one time whenever I need ? What you

Re: JDBC problem

1999-09-30 Thread prasad charasala
Use getInt() it will work. see the documentation for the driver you are using they mention what types you have to use. Prasad --- Baris Ari [EMAIL PROTECTED] wrote: hi i am using jdbc to access a SQL Server v7.0 db. what i want to know is if there is a table defining which get method(getint,

FW: SOLUTION TO HELP ON SECURITY

1999-09-30 Thread Kathiresan, Vallikun
Hey Everyone, Thanks a lot for your response. (We are using NES, JRUN, JavaServlets JDBC.) We found a solution to our problem of Security alerts saying that "The page you are about to view is unsecure" when trying to view some of our pages in spite of us having purchased a digital

how to set up paths to compile servlets

1999-09-30 Thread Hugh Faux
keep getting 3 errors Package javax.servlet not found in import. Superclass HttpServlet of class SnoopServlet not found In my class path I have jdk1.2.2/lib/tools.jar. I then run the startserver executable from the jswdk1.0 which sets up the other class paramets. I still get these errors,

Web hosting

1999-09-30 Thread Hossein Peivareh
Hello, Sorry it's not a technical question but it's important too. I want to deploy servlets and Java applications on a commercial web host. Can anyone recommand me an ISP which provides the following features? Apache + JServ, JRE, POP3, telnet, MySQL database and a fair price less than 100

Please Help

1999-09-30 Thread Jason Johnston
I still cannot get the Web Server in the JSDK2.1 to work. I use the Runner.bat file and I get "JSDK2.1 Web Server Early Access 1" and then a flashing underscore. There is no more info printed to screen like the JSDK2.0 servlet runner. I then go to the browser, assuming that this is serving, and

Re: how to set up paths to compile servlets

1999-09-30 Thread chundao che
find out where servlet.jar is on your server and add it to CLASSPATH From: Hugh Faux [EMAIL PROTECTED] Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: how to set up paths to compile servlets

throwing a error to the user.

1999-09-30 Thread Cote, Stephane
Title: throwing a error to the user. Hi all. What throw method do you use so that the user knows what is going on. Thanks. ,, Stephane DeCoeli Cote ` [EMAIL PROTECTED] || ~ || w (925) 730-3717 |||=oOOo=oOOo=||| || \ /||\ / || \/ || \/ /\

Re: Servlet Refreshing

1999-09-30 Thread Dr. Dragomir D. Dimitrijevic
I have seen a nice article on this topec (unrelated to servlets) on Netscape site almost two years ago. One approach is "client pull" -- your first approach. The second is "server push". You set your context type to "mixed" plus "replace" (don't know exact syntax). The "replace" thing means

button problem in Netscape

1999-09-30 Thread Meng, Dong J (CAP, CDI)
I one HTML page, I have three buttons, two of them are 'Submit' button type with the same name, one is 'Button' type with different name to hand JavaScript. If you click one button, it will do post to call a servlet page. In the servlet page, I use the following code to determine which button has

Re: Project contracting and longevity

1999-09-30 Thread Joe Sam Shirah
I have interest, comments and experiences ( from several sides of the fence ) in this area, but don't want to annoy people if it seems off topic. So, should the thread continue or be taken elsewhere? Joe Sam Joe Sam Shirah Autumn Software

Re: Please Help

1999-09-30 Thread sidaty
Try to put servlet code you want to access to in the following location : ~~~/jsdk2.1/webapp/WEB-INF/servlets/your_code means directory where you installed jsdk2.1 Also be sure you have installed and configured it correctly . Then start it . in jsdk2.1 directory you must find two scripts

Problem Accessing Servlets with IE5 or IE4

1999-09-30 Thread sidaty
HI all , I have posted this question since two weeks and still without any reponse from the forrum, Did anybody experience this problem in the past ? My environment is :(server linux-2.2.5 , apach ,,jdk1.1.7B, jsdk2.1) ( clients win98 ,IE5,IE4,NetSacpe 4) I have

Re: Web hosting

1999-09-30 Thread Ted Stockwell
If you're willing to spend $100/month then you might try what I'm doing...renting a dedicated machine. With a dedicated machine you can run whatever you want. I'm renting a dedicated machine from SkyNetWeb (http://www.skynetweb.com) for $99/month. I've been happy with the service so far. There

Re: Web hosting

1999-09-30 Thread Hemadri Gurramkonda
Hossein, This ISP provide servlet hosting,JRE, etc. http://www.servlets.net/index.html Smiling, ~Hem [EMAIL PROTECTED] ___ Hemadri GurramkondaDigitalRiver -Original Message- From: Hossein Peivareh [mailto:[EMAIL PROTECTED]] Sent:

Re: Please Help -Reply

1999-09-30 Thread Jason Johnston
There is no startserver or stopserver in my JSDK2.1 directory. They're in my JSDK2.0 directory. Was I supposed to install the contents of the JSDK2.1 folder on top of the JSDK2.0 folder? ___ To unsubscribe, send email to

File Downloads and servlets?

1999-09-30 Thread Ricardo Forde
Hi. What I am wondering is if there is any way that when a user selects a link to download a file that I can eliminate Netscape's or IE's download dialog and just download to the users' hard drive. Also, I will know the name of the directory before hand, that I want to download to. Can this be

-

1999-09-30 Thread Ricardo Forde
___ 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:

Re: button problem in Netscape

1999-09-30 Thread Lance Lavandowska
You just cannot use type=button and expect it to work with Netscape. It's not clear why you are using type=button for the third button, why not just use the submit type it, using the second name. From what I see of your handler code, this should work fine. If you actually don't want a submit

Re: Project contracting and longevity

1999-09-30 Thread R. Mathur
Hi Joe keep me posted on this regards rm -Original Message- From: Joe Sam Shirah [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 30, 1999 9:28 PM To: [EMAIL PROTECTED] Subject: Re: Project contracting and longevity I have interest, comments and experiences ( from several sides

Release of Apache JServ 1.1b1

1999-09-30 Thread Homero Alejandro Leal Torres
Check it at: http://java.apache.org Homero. ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives:

Re: My servlets don't get updated

1999-09-30 Thread Chris Pratt
Make sure you don't have javaweserver1.1.3\servlets in theclasspath that JavaWebServer uses when it starts up. If it is, the primordial class loader gets preference when loading the file, and it doesn't know how to reload servlets. (*Chris*) - Original Message - From: Pol

Re: Web hosting

1999-09-30 Thread Nick Rothwell
I'm renting a dedicated machine from SkyNetWeb (http://www.skynetweb.com) for $99/month. I've been happy with the service so far. There are a few companies that rent machines at that price. Are you talking about renting just the box or the connectivity? (The skynetweb site is down

Re: Project contracting and longevity

1999-09-30 Thread Nick Rothwell
I have interest, comments and experiences ( from several sides of the fence ) in this area, but don't want to annoy people if it seems off topic. So, should the thread continue or be taken elsewhere? Let's take it off the list (if anyone else on the list is interested).

Re: button problem in Netscape

1999-09-30 Thread Giscard Girard
Give us more information on what you've got on the client side to set the value of submitButton field, this is likely where your problem is. Giscard __ Get Your Private, Free Email at http://www.hotmail.com

Re: server same problem with liitle change PROBLEM STAYS

1999-09-30 Thread anupam
Thanks Vijaya, well my problem stays may be I am new to server any other steps to be followed I have downloaded jswdk1.0 yesterday anupam - Original Message - From: Vijaya Mahalakshmi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 30, 1999 5:51 PM Subject: Re:

Re: Problem Accessing Servlets with IE5 or IE4

1999-09-30 Thread Randy Belknap
I don't see anything obviously wrong in your code (didn't I see a response from someone early who said they could run both examples?) so the only help someone can give it tips on how to debug the problem. First, forget about servletA. It has nothing to do with your problem. You have an html

JDBC

1999-09-30 Thread PATIBANDA, SRIKANTH
Hi, I am using Servlets, JDBC, Oracle Database. I can retrieve the data for some conditions but for some other conditions i am getting this weird error. SQLState: 22003 Message: [Oracle][ODBC Oracle Driver][Oracle OCI]ORA-01455: converting column overflows integer datatype. Does anyone got this

SSI ( Refresh Problem ?? ]

1999-09-30 Thread Hari
Hi, Am using New Atlanta's ServletExec 2.1 ( Demo ) as my servlet engine with IIS 4.0. Am having some problem doing SSI. Here it goes. I had my time.shtml file in my webserver root and had my servlet M2TimeServer in my servlets folder. here is the code from the time.shtml ... ...

No Subject

1999-09-30 Thread Alagappan, Meyyappan
Hi Jagan, suprise to receiev a mail from you. I n fact i was looking for more info so that I can insist my team memebers to use servlets instead of cgi-bin. Any good to know that you are also in the mailing list. Do you konw how to create servlet callback ( calling the applets when needed from

Re: button problem in Netscape

1999-09-30 Thread Luciano da Silva Coelho
To avoid the form's submition you need validate the date using de event onSubmit in FORM tag and return false whem de date is wrong. [ ]'s Luciano da Silva Coelho e-Sec Tecnologia em Seguranca de Dados. -Mensagem original- De: Meng, Dong J (CAP, CDI) [EMAIL PROTECTED] Para: [EMAIL

Re: Session Expiry event??

1999-09-30 Thread Craig R. McClanahan
"Subrahmanyam A.V.B." wrote: Harish, I tried using the HttpSessionBindingListener. I put an object into the session which implements the HttpSessionBindingListener, the method value Bound is executed. Now the method valueUnbound will be executed when i use the removeValue method and

Re: JDBC

1999-09-30 Thread Todd Costella
You need to use the correct JDBC getdatatype method that matches the datatype of the columns that are returned in your query. If you are returning an int, a varchar2 and a date you would have to use something like rs.getInt(1),rs.getString(2),rs.getDate(3) etc. You can use the JDBC meta data to

Re: get a list of active sessions?

1999-09-30 Thread Craig R. McClanahan
Geoff Soutter wrote: Craig R. McClanahan wrote: This would be just as fertile a ground for viruses as the Microsoft Office macros that allowed Melissa and all of its clones. Removing the ability to list all the active sessions protects you from this, even in third party code. Craig,

[ANN] ServletExec 2.2 with JSP 1.0, Microsoft VM

1999-09-30 Thread Vince Bonfanti
Greetings! The final release of ServletExec 2.2 is now available for download: http://www.newatlanta.com/downloads.html ServletExec 2.2 adds support for JavaServer Pages (JSP) 1.0 and the Microsoft VM in a high-performance in-process configuration. ServletExec allows you to run servlets

Re: get a list of active sessions?

1999-09-30 Thread Geoff Soutter
Craig R. McClanahan wrote: Geoff Soutter wrote: Craig R. McClanahan wrote: This would be just as fertile a ground for viruses as the Microsoft Office macros that allowed Melissa and all of its clones. Removing the ability to list all the active sessions protects you from this, even in third

Problem w/ Apache/JServ JDK1.2 Upgrade

1999-09-30 Thread Larry Linville
Hey Guys / Gals.. I've tried searching through the online archives, java.apache.org's FAQs, and javasoft.com and althrough I did find postings on the same subject, I didn't find anything that was able to help me. I'm running Apache on Linux w/ their Jserv. This afternoon I tried upgrading my

Re: get a list of active sessions?

1999-09-30 Thread Craig R. McClanahan
Geoff Soutter wrote: Craig R. McClanahan wrote: Geoff Soutter wrote: Craig R. McClanahan wrote: This would be just as fertile a ground for viruses as the Microsoft Office macros that allowed Melissa and all of its clones. Removing the ability to list all the active sessions

Re: JDBC

1999-09-30 Thread jhughes
There is also a getObject method which can be used which will work in all cases: rs.getObject(i).toString(); Jeff -Original Message- From: Todd Costella [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 30, 1999 4:43 PM To: [EMAIL PROTECTED] Subject: Re: JDBC You need to use the

Apache and JServer

1999-09-30 Thread Jack Wang
Please ask can I set up "Apache and JServer" in Win98 ? My goal is do a test in my development platform , no other. I downloaded Apache, and installed, but can not run, the error message : "D:\APACHE\APACHE.EXE: cannot determine local host name. Use the ServerName directive to set it manually.",

servlets and methods

1999-09-30 Thread Duke Martin
What happens to a servlet if a method is called from within the servlet code and that method "hangs up" and doesn't return properly. How long will the servlet wait? Or will it just die and wait to be refresh or recalled? Duke

Re: can a servlet callback be created ?

1999-09-30 Thread pradeep
Hi Whatever u are trying to do is "client pull", u can do "server push"too(similar mech. with server serving the data over a period of time). either refer to Jason Hunter's book or sometime back there were same kind of questions in the list , check up the archives. regds, -pradeep -Original

Re: Comm. between Applets on the same Web-Page

1999-09-30 Thread Alfonso Urdaneta
"Amit Bhatnagar(CTS)" wrote: Both the applets are not able to find each other although both are in same page. I think it might be due to different VM's :: one of Java Plug-in other of Browser. That is correct. They cannot talk. Alfonso. --

spy

1999-09-30 Thread Goncalo Rodrigues
http://light010.tripod.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

Re: get a list of active sessions?

1999-09-30 Thread Geoff Soutter
Without trying to get into a flame war about it (I'm not interested ... the following is just my personal preference), that's basically the philosophical difference between a "trust model" and a "sandbox model" of security. I, too, am not interested in flame wars... A sandbox model is more

Redirecting to another URL

1999-09-30 Thread Martin Hadis
I am trying to have my servlet have the behavior of the ASP command Response.redirect "http//www.myURL.com". How can I tell my doGet or doPost routine to redirect the user to another page immediately? Thanks -Martin = __ Do You Yahoo!?

Re: server PROBLEM STAYS

1999-09-30 Thread Vijaya Mahalakshmi
Anupam, This problem of out of environment space is due to not enough memory available to run your particular process. so, have single dos_prompt and make changes there only save and then you can make copy of your dosprompt to which ever directory you want, try this because, even i

Re: Session Expiry event??

1999-09-30 Thread Subrahmanyam A.V.B.
"Craig R. McClanahan" wrote: Ideally, there should be a means of registering a listener with the HttpSession to address this problem. Although it doesn't conform to the usual JavaBeans naming patterns (I guess because of historical precendent), isn't that what

Re: can a servlet callback be created ?

1999-09-30 Thread Subrahmanyam A.V.B.
pradeep wrote: Whatever u are trying to do is "client pull", u can do "server push"too(similar mech. with server serving the data over a period of time). either refer to Jason Hunter's book or sometime back there were same kind of questions in the list , check up the archives. regds,

Image from Database

1999-09-30 Thread Prem kumar K.P.
-- =_NextPart_001_01BF0BD8.46D78E50 Content-Type: text/plain Hi Friends How to get Image from Database thro JDBC. Database = Oracle 8 -- =_NextPart_001_01BF0BD8.46D78E50 Content-Type: text/html !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" HTML HEAD META