RE: two users see the same session

2003-11-07 Thread Bill Lunnon
Nikhil, I have seen this problem occur when using JSP and incorrectly defining session variables or beans in the declaration part of the script. e.g <%! BeanClass bean = new BeanClass(); %> Make sure only initialise session variables or bean classes in the context scope ie <% BeanClass bean =

RE: Form Double Submit Detection

2003-10-27 Thread Bill Lunnon
Tom, Don't know if this is complimentary to your workflow, try a javascript confirm (ie a client side pop-up, asking the user to click "Ok" to continue). This will catch any double clicks on the client side. Hope this helps Bill -Original Message- From: Tom Parker [mailto:[EMAIL PROTECTE

RE: JSP seems to be executing twice and we are getting duplicate records in our database

2003-08-04 Thread Bill Lunnon
Adrian, If you do not want anothe rows created every time the page is submitted, then you are going to have to implement something to stop this. TOMCAT will not do this for you. Without knowing the requirements for the form, stopping multiple rows being generated could be as simple as: - Assign a

RE: Help required

2003-07-24 Thread Bill Lunnon
There is an exception thrown in "price_jsp.java:414" I assume this is something that has been developed for the project. -Original Message- From: Veena K.S [mailto:[EMAIL PROTECTED] Sent: Friday, 25 July 2003 4:37 PM To: '[EMAIL PROTECTED]' Subject: Help required Hi all, We ha

RE: Tomcat destoying beans

2003-06-09 Thread Bill Lunnon
Dominic, You haven't set the session in the page declaration <[EMAIL PROTECTED] session=true ... Hope this helps Bill -Original Message- From: Dominic Parry [mailto:[EMAIL PROTECTED] Sent: Monday, 9 June 2003 7:00 PM To: Tomcat Users List Subject: Tomcat destoying beans Hi After I c

RE: I need a good driver for SQL Server

2003-03-13 Thread Bill Lunnon
Try JSQLConnect at www.j-netdirect.com , I found it very useful with SQLServer Bill -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: Friday, 14 March 2003 8:55 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: I need a good driver for SQL Server Importance: Hi

RE: Pls help me !! Urgent!

2003-03-09 Thread Bill Lunnon
Zafar, You need to test for the null after you have retrived the parameter from the query, via jdbc ResultSet.wasNull() Code might look like CallableStatement cs; // setup the callable statement stuff prior to here ResultSet rs = cs.executeQuery(); while (rs.next()) { String param = rs

RE: Share Java resources between two (or more) servlets

2003-03-07 Thread Bill Lunnon
Andreas, Firstly, the servlet with db connections should be created and added to the ServletContext (hence not really a servlet). All other servlets can than access this object via getServletContext.getAttribute() etc. This servlet is defined as a servlet, loaded on initialisation. You must releas

RE: JSPs sometimes don't recompile

2003-02-27 Thread Bill Lunnon
Sounds like a browser cache problem, to get around this, simply add some other parameters to the url (e.g http://foo.com/some_servlet?param=value&dummy=fred) hope this helps Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, 28 February 2003 6:44 AM T

RE: Form based security and "Remember Me"

2003-02-20 Thread Bill Lunnon
A thought (just started following the thread). I can see a problem, in that the cookies may never get initialised because of the use of the checkbox. If the checkbox hasn't been selected, you'll always receive null from the form. Would suggest using a radio button instead, where the parameter wil

RE: How to enable secured JSP to be cached by browser?

2003-02-15 Thread Bill Lunnon
Adam, Even if you could do this (and it is not recommended!!!) the caching is not going to solve the problem, each browser implements its own and different caching policy. The better way to do this is populate the form before the data is re-displayed to the user (a two phase approach). Scriplet m

RE: strange response.getAttribute problem

2003-01-23 Thread Bill Lunnon
Try request.getParameter() also you should test for null on the parameter (it will probably cause a NullPointerException down the line) HTH Bill -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, 24 January 2003 9:16 AM To: Tomcat Users List Subject: strange res

RE: Form Data & IE vs NS

2003-01-23 Thread Bill Lunnon
[Suggestion] Don't rely on browsers to retain the previous data on a a posted form. If you have detected an error, retrieve the data that was posted (via request.getParamter()) and populate the form yourself. Sample scriptlet could be <% String lastFoo = ""; //error detected, haveError set to tru

RE: Start tomcat before apache on RedHat7.3

2003-01-14 Thread Bill Lunnon
-Original Message- From: news [mailto:[EMAIL PROTECTED]]On Behalf Of Arcadius A. Sent: Wednesday, 15 January 2003 1:13 AM To: [EMAIL PROTECTED] Subject: Re: Start tomcat before apache on RedHat7.3 "Turner, John" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTEC

RE: session /application in servlets

2002-11-24 Thread Bill Lunnon
Paul, Getting the error because "application" is a JSP default object for javax.Servlet.ServletContext If you want to put someting in the servlet context, use something like this.getServletContext.setAttribute() Not too sure about the correct method names,but you should get the idea Bill