Re: Tracking Sessions!

2000-08-18 Thread Lee Collins
Malini, I wrote a piece some classes to do that not long ago. If you look in the archives of this list (TOPIC='RE: session cleanup'). I don't have to code right now but I posted it to the list. If you can't find it let me know and I will find it and repost it. What it basically did was to create

Re: spec question.

2000-08-09 Thread Lee Collins
Hi all, I didnot know that you could not put a jsp:include tag in the body of a custom tag. Could someone tell me WHY that is??? I thought as long as you specified that the Body content was JSP then you could do ANY JSP. TIA, Lee >From: JSP Insider <[EMAIL PROTECTED]> >Reply-To: A mailing lis

Re: interesting one, 200 concurent users, large resultstes

2000-08-03 Thread Lee Collins
CORRECTION! I forgot the 'where' clause. The code should be: . . . if (last_productname != null) { strSQL += " where productname = '" + last_productname + "'"; } >From: Lee Collins <[EMAIL PROTECTED]> >Reply-To: A ma

Re: interesting one, 200 concurent users, large resultstes

2000-08-03 Thread Lee Collins
Karan, If your data is ORDERED then it is easy and you DO NOT have to cache the data. For example: You want to display a list of products alphabetically (25 at a time). SQL is like: select * from product Loop thru the results for 25 rows and send the list to the browser. After you 25th row, sto

Re: session cleanup

2000-07-25 Thread Lee Collins
Here is the Code in 3 files. SessionMonitor.java - the monitor object itself SessionMonitorListener.java the listener interface YourServlet.java - example servlet to show how you would use a SessionMonitor in your Servlet. SessionMonitor.java ///

Re: session cleanup

2000-07-24 Thread Lee Collins
Samir, What I have done in the past is to have an additional thread running who's job it was to invalidateSessions and free related resources. You need an object to hold a ref to the Session objet and to the Thread so that when each Session is invalidated, you can destroy the thread. I may be a

HELP! Error including jsp from servlet.

2000-06-05 Thread Lee Collins
Hi all, I know that forwarding after content has been written will cause an IllegalStateException. However, why am I having a problem including? Does including have the same restrictions as forwqarding? ERROR> Included servlet error: 500 Location: /Shower Internal Se

Error including jsp from servlet

2000-06-01 Thread Lee Collins
Hi all, I know that forwarding after content has been written will cause an IllegalStateException. However, why am I having a problem including? Does including have the same restrictions as forwqarding? ERROR> Included servlet error: 500 Location: /Shower Internal Se

Re: How to generate unique filename each time run the jsp

2000-05-16 Thread Lee Collins
Tiana, // static method File.createTempFile() will produce a File Object representing a UNIQUE File. You pass a 3rd parameter (File dir) if you want to specify a certain directory. File f = File.createTempFile("jspGen", "*.html"); String strFilename = f.getAbsolutePath(); Lee >From: Tiana Zhan

Re: How to overwrite jspdestroy() method?

2000-05-16 Thread Lee Collins
Tiana, If you are doing this cleanup when the App is ending then you don't want to put the file info in the Session. Sessions are for data that lasts only as long as a user's session lasts - Session scope. Since you're using jspDestroy() i will assume you mean to give it Application scope. To ach

Re: apache-variables

2000-03-20 Thread Lee Collins
I got this list from http://www.jguru.com/jguru/faq/view.jsp?EID=11699 . CGI Variable Servlet Request Method SERVER_SOFTWARE ? SERVER_NAME HttpServletRequest.getServerName() GATEWAY_INTERFACE N/A The revision of the CGI specification to which this server complies. Format: CGI/revi

Re: Need Urgent Help needed regarding JSP & Beans

2000-03-16 Thread Lee Collins
Vinay, Did you specify a scope?? If you set the scope to 'session', then when a user goes from page to page he will recieve the SAME BEAN. A new bean will NOT be instantiated. If ALL users wish to view/modify the bean then you probably want scope='application'. I don't know what the default i