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 =
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
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
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
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
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
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
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
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
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
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
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
[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
-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
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
15 matches
Mail list logo