public boolean next()
throws SQLException
Moves the cursor down one row from its current position. A
ResultSet cursor is initially positioned before the first row; the first
call to the method next makes the first row the current row; the
second call makes the second
On Fri, 23 Mar 2001, David Wall wrote:
The most likely explanation is that you are using instance variables in
your servlets, instead of local variables, to represent the information
for a particular request. These variables are shared across all of the
simultaneous requests to the
You've answered your own question, Tomcat does not see JSP files in the
Apache html root. You must put ALL JSP files in the Tomcat root directory
and ALL Servlets in the WEB-INF\classes directory OR setup up an
application context.
To setup additional contexts you use the same convention as the
I agree with you, I checked up my database co nnections and it shoud be done
in the same manner..i.e using "jdbc:oracle:thin:@abc.def.com:1521:SID"
Nester
-Original Message-
From: George McKInney [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 10:58 PM
To: [EMAIL PROTECTED]
well we tried this on tomcat running on win9x box and it is getting added(!),
in log file you can see adding context /at though docBase points to some bogus
location.
did u try to stop+start the server after adding these contexts ?
Pradeep Kumar wrote:
I have got Tomcat 3.2.1 on the Solaris
Use an encoded URL for the ACTION parameter of the FORM tag.
David Wall wrote:
The most likely explanation is that you are using instance variables in
your servlets, instead of local variables, to represent the information
for a particular request. These variables are shared across all
Where do I get the 'jk_nt_service.exe' file.
I hope it does not come with the tomcat. Is it an external utility?
Regards,
Mohan
- Original Message -
From: "Jeff Leung" [EMAIL PROTECTED]
To: "Tomcat (E-mail)" [EMAIL PROTECTED]
Cc: "Jeff Leung" [EMAIL PROTECTED]
Sent: Friday, March 23,
I'm new to this list, so please forgive me if this question has been raised
before
I'm running Tomcat 3.2.1, Apache 1.3.12, java 1.2.2 and Redhat 6.2.
I have a servlet to which I want to pass a single parameter via the web.xml
file (below). I'm obtaining the parameter value by calling
On Thu, 22 Mar 2001, Larry Isaacs wrote:
Thanks.. but ..
| For Tomcat 3.3m2, see SessionIdGenerator ... / in server.xml.
(oops.. m2, yes.. not b2 :)
How would I use this? class="..." didn't work. In the server.xml it says:
!-- You can add a "home" attribute to represent the "base" for
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38
6/
-Original Message-
From: Mohan Nade [mailto:[EMAIL PROTECTED]]
Sent: 23 March 2001 08:31
To: [EMAIL PROTECTED]
Subject: Re: HELP: Trying to config/install Tomcat as a Service using
Jakarta NT Service
Where
Hy,
i tried to start tomcat on a suse70 linux server, i use the following
versions:
jdk 1.1.8v1
jakarta-3.1-29
kernel 2.2.16
when I start tomcat using /opt/jakarta/bin/startup.sh, I get the following
messages and everything seems to be ok:
Guessing TOMCAT_HOME from tomcat.sh to ./..
Hello all,
I need some urgent help from you guys.
I have tomcat 3.2.1 on solaris box. The problem is when start the server, my
context is not loading. I have a directory defined under webapps called at
and it has WEB-INF directory and web.xml
Please give me a quick reply if you know about this.
You might have to edit the workers.properties file and set the path to the
tomcat and jdk directories in it.
-Thos
On Fri, 23 Mar 2001, Muniraja Balaji wrote:
Hi,
I am new to Tomcat, i have downloaded the Tomcat Zip file and unzipped to the
local drive. After that i have configured the
Hello,
I want to access a directory located outside the tomcat root directory.
(example: c:\temp )
Can I make a shortcut or a link for this directory ? I need to access it
throught JSP page ...
Thanx.
_
Get Your
Hi,
Thanks to all who helped with my problems. Tomcat/Apache works fine now.
Daniel
Hi all,
I have successfully installed the following on Solaris 2.6
apache
mod_ssl
tomcat
mod_jk
I also need to implement this on HPUX and on AIX.
Will the components above ALL run on HP and AIX? More specifically, when
building mod_jk on Solaris, one runs
apxs -o
I am using MySQL and JDBC drive which works fine in localhost:3306.
But when accesing from network like 192.168.0.2:8080 from other
machine it does not work. how can I change the setting in MySQL for
network connection.
Thanx in advance.
DINMAN
Enjoy being an Indyan at http://www.indya.com
baumans pascal wrote:
Hello,
I want to access a directory located outside the tomcat root directory.
(example: c:\temp )
Can I make a shortcut or a link for this directory ? I need to access it
throught JSP page ...
File file = new File("C:\anywhere");
or
File temp =
ok but I have 250 text files in this directory and I want to create a html
link on each of them, in this way I'll have the 250 link on a html page and
those 250 files will be availlabe for downloading ...
so Is there another way to do thoses links on a jsp page ?
From: Arnaud Vandyck [EMAIL
Here's a one liner from the net that will remove the ^M from your configs.
Remember that a lot of Win editors will put them back in when you save
(UltraEdit has good support for DOS and Unix files).
perl -pi -e "s/\cM//g" filename
On Thu, 22 Mar 2001, Ryan wrote:
I use slackware 7.1 and have
how can I change the setting in MySQL for
network connection.
Use user_at_other_domain.some_TLD instead of the normal user you would use
in your grant statement.
This is well explained in the MySQL manual found at www.mysql.com or in the
docs directory in the source dir.
Hope this helps.
I just use the program 'dos2unix'
it rules
-ryan
- Original Message -
From: "Kevin Sangeelee" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 23, 2001 2:30 AM
Subject: Re: Refresh
Here's a one liner from the net that will remove the ^M from your configs.
Remember that
first thing is to check the log files , if it has something like:
loaded context /abcd
or not.if this context is loaded as per the log files then check the docBase
attribute of your context , whether it is pointing to correct physical directory
or not. and check for possible case-mismatch also.
Rajeev,
Thanks for your reply.
I don't see any log file under logs dir.
I have no clue, why the context is not loading and why the log file is not
generated. Please help
pradeep
-Original Message-
From: Rajeev Jha [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 4:32 AM
To:
Hi All,
Please let me know from where i willdownload
the JDBC-ODBC Bridge driver for access database. Please give the because i
search all java site i couldn't got it.
affan
baumans pascal wrote:
ok but I have 250 text files in this directory and I want to create a html
link on each of them, in this way I'll have the 250 link on a html page and
those 250 files will be availlabe for downloading ...
so Is there another way to do thoses links on a jsp page ?
try
Hi Johnson,
Thanks a lot.
Regards
E. Vinayak
KaNini Consultants Pvt Ltd
7/1, Norton Second Street
Mandaveli, Chennai - 600 028.
Tel: 91-44-4956862
TeleFax: 91-44-4952664
Mobile: 98410 49568
-Original Message-
From: Johnson Lim [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001
Title: Re: jdbc
Hi affan,
You find some jdbc-driver and jdbc-odbc-bridges on
http://industry.java.sun.com/products/jdbc/drivers
Have fun
Frank
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
Ursprngliche Nachricht vom 23.03.01, 12:22:33
Autor: affan [EMAIL PROTECTED]
Thema: jdbc
Hi
Remy Maucherat wrote:
Tomcat 4 will return a 302 (temporary redirect) pointing to
/news/path_of_the_welcome_file.
The thing is I don't know if I should include the query parameters in the
Location header (which is not something I'm doing right now).
Ok, it's a bug. Fixing it now :)
Is
Hi,
I am using tomcat 3.2.1 with IIS on win2k.
My requirement is that any request to the site goes via a servlet. So, for
the first request this servlet will forward a homepage.jsp.
Now how do I make this work with IIS and tomcat ?
Thanks,
pradeep
Hi!
I'm running tomcat 3.2 on Solaris 2.7 witk jdk 1.3.
If you run tomcat with java -server instead of as default -client does that
improve the overall performance for tomcat??
// Joakim Hellstrm
I use Tomcat-standalone But My problem is : I don't know how/where to create
a alias directive :) There is a file named : my_tomcat_apache.conf, there
are some alias but the alias I declare on this file don't work... ???
I know how to find the files in java but I cannot propose a download
I know Ive been at this for bout 6 months now, but what do
you mean when you
say "'servlet.jar' should be located in the classpath"?
that means that you should compile it with
javac -classpath .;PATH_TO_SERVLET_API YourClass.java
regards,
vVolf
Hello,
I have been trying to use Tomcat through IIS and have run into some
problems. After fixing my typos and removing the extra space from my
registry name I was able to get the green arrow up for my filter. I then
tried to go to the examples page, and got the following debug output:
How do I allow users to run jsp or servlets out of their home directories?
For example:
http://www.domain.com/~user/junk.jsp
or
http://www.domain.com/~user/servlet/junkServlet
Thanks,
-Jon
Hei Rajesh,
Don't know if Andy gave you an answere, so here's mine.
I've used JavaService
(http://www.alexandriasc.com/software/JavaService/index.html). It's easy
us install and configure. and it's free :)
"JavaService is a Win32 executable that allows any Java class to be run
as an NT
You can use an Alias ...
ps: how to declare an alias with tomcat :) ?
From: Jon August [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: context for home directories?
Date: Fri, 23 Mar 2001 08:35:38 -0500 (EST)
How do I allow users to run jsp or servlets out of
I've also had similar problems. I found that in nested if statements and
if...else iterations, if you don't put a return after the sendredirect
or forward it tries to execute the rest of the code...
Matt Goss
[EMAIL PROTECTED] wrote:
I've been having the same problem sporadically for
Hi Shlomi,
I tried as you suggested but the nt service does not seems to work. I have
changed the tomcat and jave home to the appropriate path and can setup the NT
Service but it does want to start. I have tried to remove the Nt service using
jk_nt_service and add the NT Service but it still
Actually, you've already got it: it's part of the standard JRE.
If you want JDBC implementations specific to your database (and you probably
do--the JDBC-ODBC bridge is pretty bad), check with your database vendor.
-- Bill K.
I've been using Tomcat for quite a while now and
so far everything was working fine. That is, until I tried to embed Tomcat in
one of my applications... Is there any documentation that could tell me how to
do that? I followed the examples in the files EmbededTomcat (3.2.1) and Embedded
I'can't run tomcat on VA.
I've imported all the tomcat ressources (servlet.jar, jasper.jar,
parser.jar, webserver.jar,.) in VA.
When i'm trying to run the tomcat.class in the webserver package i receive
an error
someone could help me
PP
Yeah, but I was bitten by the issue where the classpath may only be 256 characters or
less. It fails with "operation completed successfully". Anybody found a good fix for
that?
"David Baum" [EMAIL PROTECTED] 3/23/2001 7:41:17 AM
Hei Rajesh,
Don't know if Andy gave you an answere, so
On Fri, 23 Mar 2001, [iso-8859-1] Helgesen Hans Jørgen wrote:
I'm new to this list, so please forgive me if this question has been raised
before
I'm running Tomcat 3.2.1, Apache 1.3.12, java 1.2.2 and Redhat 6.2.
I have a servlet to which I want to pass a single parameter via the
I think the simplest way is to just use
application.log("This is a message to be logged");
This goes to the Servlet.log. A little better maybe would be to define something like:
String logHeader = request.getServletPath() + ": ";
Then use
application.log(logHeader + "This is a message to be
It runs fine for me when I start it from a Terminal window using the Tomcat.sh script.
I did make sure to define the TOMCAT_HOME and JAVA_HOME environment variables first.
And I am using it with Apache, not standalone.
How did you get it started? What exactly did you get for a stack trace? You
Hi there.
In my very simple web application where i consult a
ms access database db.mdb. Somehow a new file is created
db.ldb.
Why this happen can i control
that?
jfolha
It would be useful for us that you send that error...
I'can't run tomcat on VA.
I've imported all the tomcat ressources (servlet.jar, jasper.jar,
parser.jar, webserver.jar,.) in VA.
When i'm trying to run the tomcat.class in the webserver package i receive
an error
someone could help
I got message "Connection refused: no further information". Here are the
settings:
1. We are using Oracle 7.3. The database server name is storedb.
2. I downloaded oracle jdbc driver from Oracle.com. The downloaded driver is
Oracle 7 driver for NT. It has classes102.zip and classes111.zip and
You could find the explanation of this in Article Q136128 at
http://search.support.microsoft.com/kb/c.asp?FR=0
http://search.support.microsoft.com/kb/c.asp?FR=0SA=GNLNG=ENG
SA=GNLNG=ENG
select your criteria as :
ACCESS
ldb
-Original Message-
From: Joo Folha [mailto:[EMAIL
Joo Folha wrote:
Hi there.
In my very simple web application where i consult a ms access database db.mdb.
Somehow a new file is created db.ldb.
Why this happen can i control that?
jfolha
That is just microsofts external lock file so other programs
accessing the file do so in a
I've also had similar problems. I found that in nested if statements and
if...else iterations, if you don't put a return after the sendredirect
or forward it tries to execute the rest of the code...
Matt Goss
As far as I know, servlet containers are not supposed to break the rules of
Java
Title: "iPlanet How To" = "Netscape How-To" ???
Doesn't the
latest iPlanet support jsp and servlets by itself. I think it does.
Why would you need Tomcat if that's the case?
-Original Message-From: Hawkins, Keith (Keith)
[mailto:[EMAIL PROTECTED]]Sent: Thursday, March 22, 2001
I just have a shortcut to the startup.bat file in my C:\Documents and
Settings\shlomi\Start Menu\Programs\Startup. It works fine for me. I don't
have it running as an nt service.
-Original Message-
From: Elizabeth Riley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 6:17 AM
Note that this probably isn't a Tomcat question. Can you create the
connection outside Tomcat, in your own application? If not, you've got a
JDBC problem that JDBC people could help you with. (Or really, Oracle
people: Do a search on Deja in comp.databases.oracle.* for "Connection
refused" to
Hello again from Super Newbie...
I (finally) got Tomcat installed on my Win98 machine:
1. I have Tomcat started.
2. I have my CLASSPATH set to include servlet.jar and jasper.jar
3. I have a compiled class called MyFirstServlet.class in
c:/jsp/tomcat/webapps/ROOT/INF-WEB/classes
(This
On Fri, 23 Mar 2001, Pradeep Kumar wrote:
The Servlet specification says that, that the container should
guarantee only one instance of the servlet. However some of the
container do maintain a small of pool of servlet instances and
manage them. For example there are 3 instances of a servlet
Remy Maucherat wrote:
Tomcat 4 will return a 302 (temporary redirect) pointing to
/news/path_of_the_welcome_file.
The thing is I don't know if I should include the query parameters in
the
Location header (which is not something I'm doing right now).
Ok, it's a bug. Fixing it now
I think that (not being a DB guru):
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:storedb",
"username", "password");
}
should be more like:
...
DriverManager.getConnection("jdbc:oracle:thin:@storedb",
...
note the '@' between "thin:" and "storedb" (and
Hi!
Did you import _resources_ (org.apache.tomcat.resources) too? They
aren't classes, they are .properties and .dtd.
This may be done in import window in VA. You also need to copy "conf"
directory from Tomcat installation to
VA_install_dir/ide/project_resources/name_of_Tomcat_project. You
also
I don't know about AIX but building mod_jk on HPUX is problematic to the
point of being unworkable. On HPUX apache, mod_ssl, tomcat build fine. As
a side note HP is bundling Apache-mod_ssl-mod_jserv-Tomcat with
HPUX11.11.
On Fri, 23 Mar 2001, Simon McMenzie wrote:
Will the components above ALL
I want to do the same thing Jon wants to do. When I type in my url,
http://agent.eng.uiowa.edu/~sdfong/rubyfong/gamezone/testex.jsp
I get a 404 File not Found.
I also get this message in my jasper.log
2001-03-23 11:47:09 - JspEngine -- /~sdfong/rubyfong/gamezone/testex.jsp
2001-03-23 11:47:09 -
That way the image data gets corrupted. Isn't this information supposed
to be in the HTTP Headers, and not in my output?
This corruption is produced by an HTTP/1.1 transfer encoding called
chunking. Its support is mandatory in HTTP/1.1. Which HTTP client are you
using ?
If you're
The only way I have gotten this to successfully work is to install TweakUI
on the NT/2000 box and set it to login automatically as a non-Administrator
user that has appropriate rights.
On startup, NT/2000 logs in and the Startup folder contains the script which
starts Tomcat, pauses for
hi Edward,
I've been having similar problems doing load testing
with standalone Tomcat 3.2.1 with the 2.2.16 kernal
with glibc2.1.3-15.
I downloaded the most recent build of IBM's VM,
cx130-20010207 and have been having much better
results as far as VM stability is concerned. I ran my
test on a
Title: Win service logout problem
Has anyone heard whether/when Sun will release an update to JDK 1.3 that will keep jk_nt_service.exe from dying at logout? Or is this something to be fixed in tomcat?
Thanks,
Lance Peterson
Verticore Technologies Inc.
(801) 453 9111
www.verticore.com
have you tried:
http://localhost:8080/servlet/MyFirstServlet
"Joel R. Cochran" wrote:
Hello again from Super Newbie...
I (finally) got Tomcat installed on my Win98 machine:
1. I have Tomcat started.
2. I have my CLASSPATH set to include servlet.jar and jasper.jar
3. I have a compiled class
Hi I am using Tomcat 3.2.1 and Apache on an Nt platform. My confusion is
this:
In http.conf file I have :
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12
Should all the .jsp files be under the webapps directory? I have a jsp file
under my webroot Apache directory but Tomcat does not see it?
George McKinney,
Thank you. Your reply realy helped me. Now the jdbc works fine.
Thanks again,
Jack Li
-Original Message-
From: George McKInney [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 12:28 PM
To: [EMAIL PROTECTED]
Subject: RE: oracle JDBC doesn't work
I think that
Simon,
I've had to build mod_jserv for AIX (haven't tried mod_jk). As "shipped", it wouldn't
build. As I recall, the link step failed miserably. I was able to find instructions
(the actual linker command line) by doing some strange search in Google. I did put the
command line in a shell
mod_jk in TC3.2 has most of the build stuff for Linux, Win, and sort of
Solaris.
The scripts are not written for easy support of multiple platforms.
You may want to look at TC3.3m2 or get the mod_jk from the TC3.3 nightly
builds.
Much has been added for better support of mod_jk in TC3.3,
Hey! I get to answer my own question!
I found the problem (although I didn't see anything in the doc or the CORE
Servlets book about this)...I had to specify the port on my localhost, like
so: http://localhost:8080/servlet/MyFirstServlet and it worked fine.
Now I'm trying to field test my first
Please, help me.
Where can I change TomCat's compiler's command line?
Thanks.
Sergio.
I'm running JBoss with embedded Tomcat on NT 4.0. I'm having a problem
running the sample jsp's provided with Tomcat. When I try to select one,
the response that comes back indicates an exception(
java.lang.NoClassDefFoundError: sun/tools/javac/Main ) was thrown. My
first thought was that the
Does anyone know where I could find code for a login servlet using JDBC.
I have a login tested, it checks the database and it outputs whether the
username and password are correct to the jsp page, but I need to use a
servlet for redirecting the user.
Here is the code i have for the login
Hello,
I still have the problem to make IIS 5.0/Tomcat 3.2.1 passing session
variables. Even I can't pass the form input to next page. I guess something
wrong with my settings, but I don't know where it is. I tried following:
1. I tried to use two simple jsp pages to pass session variables. it
Hi there
I'm developing a JSP page that shall be able to show wbmp files. But
whatever i try to dog, i wont get anything else but the "alt" text. I need
to add a mimetype to the server or to the JSP file.
The mime type has the following indication : image/vnd.wap.wbmp
I hope that you can help
Thanks
T. Park! That was exactly what I did...wonder why there is such a lag in
the list mail delivery today?
Joel [jrc]
-Original Message-From: T.
Park [mailto:[EMAIL PROTECTED]]Sent: Friday, March 23, 2001 1:59
PMTo: [EMAIL PROTECTED]Subject: Re: Running
my first
Hi,
I have a Problem with Tomcat and mod_jk. I have
installed Tomcat with an RPM and all works fine when I call
the examples servlets at server:8080. After this I
have installed tomcat-mod-3.2.1-1.i386.rpm. The Problem is
whenn I call now a .jsp page the server request me
an Internal Server
It will be fixed in the next release of java (1.3.1) as listed here
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html. I
don't know when the final release will be, but Sun has a beta version for
Solaris and NT available on the Developer Connection section (see Early
[EMAIL PROTECTED] (Peterson, Lance) writes:
Has anyone heard whether/when Sun will release an update to JDK 1.3 that
will keep jk_nt_service.exe from dying at logout? Or is this something to
be fixed in tomcat?
The bug is claimed to be fixed in JDK 1.3.1, of which there is a beta
available
Hello Joel,
if I may ask for your help. Did you try "ShowMessage Servlet"?
I couldn't make it read the web.xml page and I wonder if you had the same
problem and how did
you solve it?
Batsheva
-Original Message-
From: Joel R. Cochran [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001
Hi,
When a client make a request to a server and a servlet get call,
the servlet then create an instance for that client.
My question is, how many clients can a servlet handle.
Thanks,
Kathy.
_
Get your FREE download of MSN
Joel,
It may have been my mail server - I'm having lots of problems with newsgroup
submissions
I recently ended up submitting the same request twice because my mail
server reported a "Couldn't deliver" message
when it actually did.
bummer.
glad you got it working on your own! The port # hasn't
Hi,
there is no session for each client. It's only HTTP
POST request/response, then it's over.
--- Ralph Einfeldt [EMAIL PROTECTED]
wrote:
Are you working with cookies or url rewriting?
You have to keep some facts in mind:
- each session needs some memory
- each session will be alive
Hello,
At
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
I found the following joke:
Q. Whenever I restart Tomcat, Apache locks up!
A. The Ajp13 protocol keeps an open socket between Tomcat and Apache.
When you restart Tomcat, you need to restart Apache as
On Fri, 23 Mar 2001, c cw288 wrote:
Hi,
When a client make a request to a server and a servlet get call,
the servlet then create an instance for that client.
That is not what really happens. Instead, a single instance of your
servlet is called multiple times simultaneously, on multiple
Anybody know why I'm getting this?
The access thru Apache works fine. but, when trying to access directly thru
Tomcat
I get th following exception on the server side:
Redirecting to /recruiting/jsp/Login.jsp...
Redirecting to /recruiting/jsp/Login.jsp?showLoginError=true...
HANDLER THREAD
Hi,
Tomcat has authentication via database built in which means you should be
able to accomplish everything without need to write any code.
Read http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto
Look at server.xml for the examples of setting up a JDBCRealm with various
How do you setup host redirection from http to https site? (Tomcat 4 and
apache 2.0)
Hi,
Is Apache web server 1.3.x multithreaded? that's each
request and handle by a thread. OR each request is
handle by a child process fork by parent?
thanks.
__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
Hi all,
I have a jsp (testservlet.jsp) in following directory:
C:\JAKARTA-TOMCAT\webapps\examples\jsp
and it contains:
FORM action="/examples/servlet/jsp.Servlet1" method=POST
INPUT TYPE="text" size=5 name=test value="pleasework"
INPUT TYPE="submit"
/FORM
and a servlet
Hi,
I'm using Tomcat 3.2, Apache 1.3 on Linux
and i followed your directions.
Here is what i put in my server.xml
Context path=""
docBase="/home/sdfong/public_html/rubyfong/gamezone/"
crossContext="false"
debug="0"
reloadable="true"
/Context
but got
ps I'm surprised "boolean found = rs.next()" works if result set is empty.
I'd kind of expect a null pointer exception. I always do
if (rs != null rs.next()) {
// assign something
}
if i'm expecting a single row.
I guess there's a difference between an empty ResultSet and no ResultSet
Hi,
I have a web application running on tomcat. there are
2 httpServlet in that web app. how can i limit user
access to one of the httpServlet?
I read the example application in tomcat under
\tomcat\webapps\examples\jsp\security which demo form
base authentication. I looked through all the
When generating and sending a rtf file from a servlet, the browser ask for
- display from current location
- saving the document
When "display from current location" is chosen by the user, the servlet
receives a second request (that means the file will be generated a second
time), when "saving
On Fri, 23 Mar 2001, brian luk wrote:
Hi,
Is Apache web server 1.3.x multithreaded? that's each
request and handle by a thread. OR each request is
handle by a child process fork by parent?
Depends on the platform. On Unix systems, 1.3.x runs as multiple
processes, while on Windows
Hello Everyone,
I was just wondering if anyone could help make sure
I've got mod_jk configured properly.
Assuming my host name is www.myhost.com and I have a
servlet context called /tomcat.
In my httpd.conf, I have my DocumentRoot set to the
/tomcat document root (for the sake of testing). I
ps I'm surprised "boolean found = rs.next()" works if result set is
empty.
I'd kind of expect a null pointer exception. I always do
if (rs != null rs.next()) {
// assign something
}
if i'm expecting a single row.
I guess there's a difference between an empty ResultSet and no
Hi,
Can anyone tell me what the proper convention for
checking for invalidated sessions is? Do people really
write code checking for whether the session is valid
EVERY time they are about to refer to one? And if so,
do they just examine the LastAccessedTime and create a
new session accordingly?
1 - 100 of 113 matches
Mail list logo