Hi.
I want to upload binary files to my PostgreSQL database server from my jsp-pages.
I found this:
File file = new File(myimage.gif);
FileInputStream fis = new FileInputStream(file);
PreparedStatement ps = conn.prepareStatement(INSERT INTO images VALUES (?, ?));
ps.setString(1,
Hi,
Have you removed commons-logging from server/lib? I have found that the only
place commons-logging should be is in common/lib, this is the reason I have
swithched from commons-logging to logging directly to the underlying logging
implementation (log4j in my case).
Regards
Jim.
chomp
On Wed, Feb 19, 2003 at 08:16:25PM -0500, Jake Robb wrote:
Internal and External refer to whether you compile the mySQL source into
your program and distribute that (internal), or you just distribute mySQL
along with your software (external).
Really? Do they define that somewhere? My
Hi Swapneel !
I need you to clarify something : are you processing the files first,
then putting them into the database, or are you putting all the raw data
inside the database and doing SQL operations to extract the data you
want ? I am assuming that you want to do the second option, am I
Hi Mark,
Sorry I didn't have much time yesterday so sent a very brief response!
I experienced this problem when copying my Tomcat installation from W2K to Unix.
The file transfer mechanism screwed up lots things, mainly case sensitivity, CR/LF.
As you point out, only the admin application
Hi All,
I want to change the default page that is loaded
from http://csegrad.uta.edu/index.jsp
to
http://csegrad.uta.edu/CSEgraduate/jsp/homepage/templates/gradhomepage.jsp
How can I do that?
I shall appreciate any help.
Thanks and regards,
Runu
Into your contexts web.xml file add:
welcome-file-list
welcome-fileCSEgraduate/jsp/homepage/templates/gradhomepage.jsp/welcome-f
ile
/welcome-file-list
It may depend a little on how you have the virtual hosting etc. done but
this is the tag for Tomcat anyway.
If you post your server.xml file
can anybody help
-Original Message-
From: Ankur Goel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 10:03 AM
To: Tomcat Users List
Subject: RE: problems during shutdown in Tomcat 4.1.18
Is anybody else encountering the same problem during shutdown in Tomcat
4.1.18???
Hello All,
I've just upgraded from tomcat 4.0.4 to 4.1.18 and put it on a test server
to test and see if it works with my enviroment.
The first thing I've done was to replicate the production server structure
to my dev server, so I added with the /admin web interface some Hosts and
one blank
Hi !
I'm trying to use tomcat-4.1.18 struts.
1.the mapping for struts ActionServlet class works fine :
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
[.]
/servlet
servlet-mapping
servlet
servlet-nameChartServlet/servlet-name
servlet-classcom.imsl.chart.ChartServlet/servlet-class
/servlet
servlet-mapping
servlet-nameChartServlet/servlet-name
url-pattern/servlet/com.imsl.chart.ChartServlet/url-pattern
/servlet-mapping
John
-Original
hi john,
can u help any further???
-ankur
-Original Message-
From: Ankur Goel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 10:03 AM
To: Tomcat Users List
Subject: RE: problems during shutdown in Tomcat 4.1.18
Is anybody else encountering the same problem during
Thanks for the clarification, my point was that unless you're the Licensing
Coordinator for MySQL AB, a developer or organization might choose another
option in the interest of moving quickly with a guaranteed unencumbered
solution without having to wait for clarification from MySQL AB or involve
No. I don't use JK2.
John
-Original Message-
From: Ankur Goel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 6:01 AM
To: [EMAIL PROTECTED]
Subject: problems during shutdown in Tomcat 4.1.18
hi john,
can u help any further???
-ankur
-Original Message-
Hello.
I'd like to know if any one has actually been able to configure Tomcat
to debug JSP, and not just Servlets or other Java Classes?
Everybody that helped so far gives me some intruction but tells me that
they have not tested the instructions. I've done everything I've found
about this
John:thanx for your quick answer!
I tried, but it still does not work.
when I used tomcat-3.2.3 on windows, no mapping was needed.
=my charts worked
but I have to migrate to Solaris with tomcat-4.1.18 (with java -headless
mode)
=here I'm not able to make these charts work.
with Solaris
* Paul Yunusov [EMAIL PROTECTED] [0229 20:29]:
On Wednesday 19 February 2003 09:14 am, Rasputin wrote:
Does the install ant task from 'catalina-ant.jar' work for anyone?
When I try to use it works fine until I restart the server -
it seems like the install task uses a HTTP PUT to put the
Hi all,
Do u have any idea how to change the alias for /examples/servlet ?
i.e. by default it's c:\tomcat\webapps\examples\WEB-INF\classes which i
want to change as any other directory as e:\classes. so that standard
classes won't mix up with the classes we create. please reply if you
* John Ruffin [EMAIL PROTECTED] [0205 18:05]:
I asked this same question last week - with no response.
What I did was tell TC to not auto-expand and get everything from the war
file itself. Ant will copy the war file to catalina_home/webapps. Then I
use Manager to stop and start the app
I want to give out an exe after an authorization. So I
put the exe in WEB-INF to avoid direct access, and
tried to do:
RequestDispatcher rd =
req.getRequestDispatcher(/WEB-INF/my.exe);
rd.forward (req, res);
Tomcat 4.0.6 says /WEb-INF/my.exe cannot be found.
I dont know how this
Hi,
I have been trying to work Apache2.0.44 and Tomcat 4.1.18
together on my win2K machine for 2 days but still I have
500 Internal server error..
I found many of instructions how to connect Tomcat 4.0.x and APache 2.0 or
Apache 1.3 and Tomcat 4.1 or connectors other then mod_jk. I have looked
Hello,
It's not quite so simple. The /examples/servlet is not a simple alias for
the directory mentioned. What you have to do is study the configuration of
contexts in server.xml. This is short and well described. With a bit if
practice you can have any webapp (e.g. examples) running from a
Hello,
I am getting an error 500
ServletException
Root Cause:
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application
Is this because I am using the wrong username / password?
I have gone to
You need to do 2 things:
1 - Make sure your welcome page is set in web.xml. A link to an email
thread about this is here:
http://tomcatfaq.sourceforge.net/configure.html
2- In index.jsp - Make is a one line scriplet which does a sendRedirect
like this:
%
Hi All,
I am a newbie to linux and tomcat. I configured tomcat3.3.1a with apache1.3 in
Windows NT. I don't know how to do it in the Linux?..
This is my mod_jk.conf.
IfModule !mod_jk.c
LoadModule jk_module libexec/mod_jk.so
/IfModule
JkWorkersFile
Incorrect, this url is specified in the web.xml document, therefore it
doesn't rely on
the invoker.
Jacob Kjome [EMAIL PROTECTED] wrote on 18.02.2003 18:17:54:
Hello srihari,
You need to read the release notes. Based on the URL you mention
{ /soap/servlet/rpcrouter }, you are counting on
Probably one of three things:
- Tomcat is not started
- Tomcat is started but does not have a Connector configured in server.xml
for the port you are trying to use
- Tomcat is started, the Connector is configured, but access to the port is
blocked for some reason, such as a firewall.
Perhaps my
Hey João, always i debug my JSP pages with remote debugging and only
calling to JSP´s name that Tomcat create in the work directory.
--
De: João Augusto Charnet[SMTP:[EMAIL PROTECTED]]
Responder:Tomcat Users List
Enviada: quinta-feira, 20 de fevereiro de 2003 8:35
Thanks! That was the problem! I just needed to use gnu tar. Add sgi to
the list of platforms that mess up the tomcat installation.
Mark
Roberts, Eric wrote:
Hi Mark,
Sorry I didn't have much time yesterday so sent a very brief response!
I experienced this problem when copying my Tomcat
If your JSPs are so complicated that you need a debugger then I would
seriously consider cutting out some of your java code and putting it into
java beans that you access from your JSPs.
It's much better practice to have JSPs that are only responsible for the
view.
Hamish
-Original
I understand your concern, and my JSP are not that complicated that need
to be put in any kind of Java Beans.
But I still want to be able to Debug JSP through Tomcat.
Thanks for the tip.
John.
Barney Hamish wrote:
If your JSPs are so complicated that you need a debugger then I would
You can get binaries here:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/
I couldn't find descent documentation on the Internet however. I can't even
compile the *.so file.
-Original Message-
From: Yoav [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 12:58
Not for Solaris 8 and Apache 1.3 you can't.
John
-Original Message-
From: Kim, Hongkyu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 8:49 AM
To: 'Tomcat Users List'
Subject: RE: Impossible? Apache 1.3.X + Mod_jk2 + Jakarta 4.1.18 ?
You can get binaries
Here is a much more verbose explanation of logging from personal experience. I work as
a consultant, so most of the time there are established administration procedures for
generating nightly reports and for cleaning up old logs.
Important issues related to logs are:
1. should all logs go in
I think I have a better idea of what you are trying to do. If you goal is to data
mine, your best option may not be Oracle. That might sound counter-intuitive, but here
are some reasons. Oracle will handle large multi-meg files just fine. In fact GIS
(geographical information systems) use
Since it seems unlikely that you are using mod_ssl for
Apache 1.3, you would use mod_jk-3.3-ap13-noeapi.so. See
the diagram and architecture discussion near the middle of:
http://www.modssl.org/docs/2.8/ssl_overview.html
to see where EAPI comes from.
Cheers,
Larry
-Original
Howdy,
You can get 4.0.6, the latest stable release on the 4.0 branch, here:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.6/
Is there a specific reason you want 4.0.1 and not 4.0.6? Or better yet,
4.1.18?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
thanks to all those who expressed an interest in sample webapp for the book. Included
in the zip file is the webapp for Tomcat, utilities I wrote, cover of the book,
publisher's comments and a readme.html file. The final webapp will include all the raw
results from our benchmarks. This version
Tomcat's connection pooling utilizes its JNDI implementation plus
commons-dbcp and pooling, so you have to use whatever the JNDI-datasource
documentation tells you to do, that is
1. type=javax.sql.DataSource
2.
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
3. Do not define
Are you sure its 8019 not 8009? 8019 is just an example supplied by tomcat.
The real port is 8009 as it is defined in server.xml
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Robert Andersson [mailto:[EMAIL
I did it for Oracle and succeeded. You need to use both commons-dbcp and
commons-pooling. I switched to Tomcat JNDI + pooling after I found out that
Tomcat's implementation is DAMN simple.
The documentation on using commons APIs is sufficient (it suits any kind of
pooling). But you have to
First tell me, do you know remote debugging, that´s the way do do
this. After you can create a break point like:
stop at teste_jsp:48
Use JAVA_OPTS make Tomcat run in remote debug mode.
--
De: João Augusto Charnet[SMTP:[EMAIL PROTECTED]]
Responder:Tomcat
Not sure what ide you are using, but with intellij by idea you can debug
jsp's with tomcat and remote debug
It works very well
RP
-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 8:54 AM
To: 'Tomcat Users List'
Subject: RE: DEBUG
Add the role as well
?xml version='1.0' encoding='utf-8'?
tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
role rolename=admin/
user username=tomcat password=tomcat roles=tomcat/
user username=both password=tomcat roles=tomcat,role1/
user username=role1
Where is this role tag documented?
I don't see it anywhere in the docs. I have the app. appearing on the
screen now and I am about to start testing it but I have not installed any
role tags and there are none in the file. Are they necessary? What do
they do?
Andoni.
- Original Message
Michael Micek wrote:
chomp
On Wed, Feb 19, 2003 at 08:16:25PM -0500, Jake Robb wrote:
Internal and External refer to whether you compile the mySQL source into
your program and distribute that (internal), or you just distribute mySQL
along with your software (external).
Really? Do they
See MemoryRealm:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html
John
-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 10:57 AM
To: Tomcat Users List
Subject: Re: Error 500 when trying to run /manager app.
Where is
Chong Yu Meng wrote:
As a rough
indicator (and I invite others to correct me), it takes :
- 1 month to understand Oracle
- 2 weeks to get JDBC working the way you want
Is this indicator specific to Oracle? I set up the MySQL JDBC driver
and had working queries in a matter of hours. (I am
I'm using JDeveloper 9i as my IDE. I can attach to tomcat's Debugger
port through JDeveloper, and my breakpoints only works in my classes. In
my JSP it does not work. Could it bem some option on the JAVA_OPTS ?
Where could I get the complete reference for the options in JAVA_OPTS ?
Thanks again
Hi All,
I have tomcat running on apache webserver on windows NT. I would like to serve some
graphics (.jpgs) over the web. I have an access database that stores the image name
and my servlet uses JDBC to get the name of the image. Once I have the image name, I
would like to load the image on
I don't see the role tag documented anywhere. Sorry if I missed it.
It is included in the book I have but all the docs on the site seem to have
tomcat-users.xml files without it.
I have just included it in my tomcat 4.0.4 server and now it won't start
java apps so I'm going to try removing it
The application loading the images is the client's browser, not Tomcat.
Since you have Apache installed, you want your servlet to output HTML that
has an IMG tag with a SRC attribute in the Apache DocumentRoot. The client
browser will resolve the URL (use a relative path like
Howdy,
You can do it either way, depending on whether the image is embedded in
a document (then have tomcat serve it with the images under tomcat
webapps) or you just want to serve the image itself back (have tomcat
redirect to apache with the images under apache).
However, let me ask you this:
On Thursday 20 February 2003 06:43 am, Rasputin wrote:
* John Ruffin [EMAIL PROTECTED] [0205 18:05]:
I asked this same question last week - with no response.
What I did was tell TC to not auto-expand and get everything from the war
file itself. Ant will copy the war file to
Yes, it applies to 4.0.x:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html
Sorry, I'm really not clear what you are asking. The manager docs
specifically state that you must manually add a role of manager to any
Database are a lot of fun (well to me they are), but they do a lot more than just
queries. Learning every aspect of Oracle is fairly complex and takes years of
experience. there's a reason why Oracle DBA's make big bucks. Most people will never
use the high end features of Oracle. Things like
Sorry, let me clarify:
In the documents you have linked below I see reference to the
tomcat-users.xml file and in it the tags:
!--
NOTE: By default, no user is included in the manager role required
to operate the /manager web application. If you wish to use this app,
you must define such
As far as the exception it depends on whether I try to do a getInputSteam or getReader
call on the request. If I use getReader, I get an exception that says getInputSteam
has already been called. If I change the call to getInputStream I always get nothing
back.
Thank you,
George
Ai João, o lance é o seguinte: Eu também uso o JDeveloper9i, mas não
depuro ou uso o Tomcat ligado junto com a ferramenta, JAVA_OPTS pode conter
qualquer parâmetro que você desejar passar para o Tomcat como por exemplo o
comando para que a virtual machine use mémoria compartilhada ( remote
Not sure about 4.0.4. It has to be getting the roles from somewhere,
otherwise how does your existing tomcat-users.xml file know what tomcat or
role1 is? I only have access to 4.1.x versions of tomcat-users.xml, and
they look like this:
tomcat-users
role rolename=tomcat/
role
1. If you are committing 1MB of data into the database per operation,
that would take a looong time, and I'm not sure if that is the most
efficient, or even the easiest way to do what you are trying to do. Why
I say that is, Oracle is fine when you break up the data and commit,
perhaps line
1 month to understand oracle? I'd say 1 day to get it installed (don't let
it create the database using the copy a database method), and another day
or two to get used to the oracle oddities. The graphical tools will let you
do most things without to much problem, if you were using sqlplus to to
clip
senior DBA's help. when ever I need to tune oracle, I ask my
Oracle DBA friends who have 8 yrs of exp for help.
peter
Me too, oracle can be a pain. If you stay small however all the tuning
defaults should work for you.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
The web-inf is protected, ie it's not a part of the web app. At least not
in terms of being able to serve files from within it.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: rf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 3:51 AM
To: [EMAIL
hey,
i`m just new with tomcat. i wrote a servlet, that transform xml with
xsl. i use tomcat 4.1.18, xerces,xalan on windows xp and i have the .jar
files copied in c:/programme/apache group/tomcat 4.1/lib. running the
servlet following error occurse:
HTTP Status 500 -
type Exception report
I do not think you can forward to a .exe file, not sure of what the spec
says but the Javadoc says only JSP or HTML files.
This link will probably get broken in your mail client, but if you
reassemble it you can read the doc:
* Paul Yunusov [EMAIL PROTECTED] [0223 16:23]:
On Thursday 20 February 2003 06:43 am, Rasputin wrote:
* John Ruffin [EMAIL PROTECTED] [0205 18:05]:
I asked this same question last week - with no response.
What I did was tell TC to not auto-expand and get everything from the war
file
You need the CGI module to do this, that´s not a hard work but only
with Apache, Tomcat don´t deal with CGI.
--
De: Erik Price[SMTP:[EMAIL PROTECTED]]
Responder:Tomcat Users List
Enviada: quinta-feira, 20 de fevereiro de 2003 14:31
Para: Tomcat Users List
Regards,
Euclides.
Imagination is more important than knowledge. -Albert Einstein
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
for the tasks defined in catalina-ant.jar. Does anyone know
where they are?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/sample/build.xml
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
On advice given here, I've got tomcat configured to _not_ unpack my .war
file. Then my ant 'deploy' target [not task] simply copies the .war file
over to /path/to/tomcat/webapps.
Now I'm trying to use the tomcat ant tasks to automate things, and I'm
running into problems. First, I can't reload
I wrote:
Then, the install task doesn't seem to work with a .war file. It
installed my .war file under the /webapps/bendev directory instead of
under /webapps where it belongs. I guess it's supposed to work with a set
of loose files?
Oops... I'm sure you know this, but it didn't move the
OK, I'll admit right up front that this is probably stupid, but I'm
running into some strange problems that have been causing me no end of
grief.
I had a mapping working (or so I thought) and now I can't get it
working again. In fact, none of my mappings seem to work. I've been
through the
There's a free one that I found helpful at http://pdf.coreservlets.com/
Be sure to read it in conjunction with the current Tomcat documentation,
because although it's a very good book, there are a few (very few)
references that are now out of date. If you read the Tomcat docs you
will spot
Hi all;
I'd like to know what others are doing in for below
situations and what are the best practices in general.
I'm producing my HTML pages by processing XML data
with XSL stylesheets, and there are certain editable
inputs, like date. The respective field is stored in
the form -mm-dd in
Howdy,
There are no stupid questions. In fact, as unfortunate as that may be,
a large number of questions on this list are not nearly as well defined
as yours.
servlet
servlet-namedolookup/servlet-name
servlet-classboa.dolookup/servlet-class
/servlet
.
.
Hello,
I don't exactly know the version (or revision) of DB2 we are using, but
it is working.
Configuration:
-DB2 version x.x on Solaris
-Tomcat 4.1.x on Linux with DB2 ClientConnect instaled
- Sun jdk 1.3.x.
Add the following line
JAVA_OPTS=-Djava.library.path=DB2/sqllib/java12/
to file
Wendy Smoak wrote:
Now I'm trying to use the tomcat ant tasks to automate things, and I'm
running into problems. First, I can't reload this app with the ant task.
It says:
w:\java\bendevant reload
Buildfile: build.xml
reload:
BUILD FAILED
file:w:/java/bendev/build.xml:159:
I like Professional JSP (2nd edition), published by WROX, ISBN
1-861004-95-8.
Don't let the name fool you, it also covers servlets a bit, struts, xml/xsl,
and some other things. It's a rather large book, with lots of examples.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original
Howdy,
I still have a good hour before the current stress test on my PC is
finished, so I'll chime in on this issue a bit.
First, to answer the question: my fav book about servlets and JSP is
available online for free:
http://java.sun.com/products/servlet/docs.html
I realize some people like
The tomcat documentation on jndi and datasources
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html asks for feedback on setup with postgres. We finally got
it working using java 1.4, tomcat 4.1.18 on linux, postgres 7.2.1 on
linux with pg73jdbc2ee.jar. The
Case studies, ideas about practices, amusing annotates, less eye strain (as
compared to a monitor). You don't get those in the java docs. However I'll
agree, I don't look at the books often, usually by this point I go to the
java docs.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
Shapira, Yoav wrote:
To other people who answered, and to the original poster of this
question: what do get from the books that you can't get online? Do you
not find that the books, or at least parts thereof, become outdated very
quickly?
Yoav,
I'm not sure if you're familiar with the book
Mike Jackson wrote:
However I'll
agree, I don't look at the books often, usually by this point I go to the
java docs.
I'll second this, the javadocs are much quicker than going to a book now
that I know where to look for stuff. The book was just a great way to
get the basics down. And for
The netscape/mozilla sdk has a pool included in it. Check out
netscape.ldap.util.ConnectionPool.
Jon Roberts wrote:
Rob Moore wrote:
Hi, Joshua,
FWIW, you can use LDAP connection pooling in JDK 1.4.1. See:
http://java.sun.com/products/jndi/tutorial/ldap/connect/pool.html
This is
To other people who answered, and to the original poster of this
question: what do get from the books that you can't get online? Do
you
not find that the books, or at least parts thereof, become outdated
very
quickly?
To learn the basics and see the relations/how it works it's simpler
to read in
On Thu, Feb 20, 2003 at 01:41:43PM -0500, Erik Price wrote:
Mike Jackson wrote:
However I'll agree, I don't look at the books often, usually by this
point I go to the java docs.
I'll second this, the javadocs are much quicker than going to a book now
that I know where to look for stuff.
I would like to use instanceof's keyword funcionality.
The problem is that I want to test if a class is subclass of a
java.lang.Class object... There is a way? Instanceof keyword doesn't
work, so I implemented the following, but I'm not very proud of myself:
private boolean
Perhaps you ought to post a snippet of what doesn't work. I personally
haven't had any problems with instanceof, but without seeing what you're
doing I don't think any of us can help.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Felipe Schnack [mailto:[EMAIL
The problem is that I want to test if a class is subclass of a
java.lang.Class object...
are you saying that you have an object that extends java.lang.Class? pretty
interesting :)
in that case (obj instanceof Class)
Filip
-Original Message-
From: Mike Jackson [mailto:[EMAIL
Maybe I'm missing something, but Class is a final class.
Quoting Mike Jackson [EMAIL PROTECTED]:
Perhaps you ought to post a snippet of what doesn't work. I personally
haven't had any problems with instanceof, but without seeing what you're
doing I don't think any of us can help.
--mikej
If I load a singleton class, does it become a session variable or an application
variable
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
it doesn't become a variable at all.
but to answer your question, if you load a singleton class it all depends on where the
class is in the classloader hierarchy.
if you put the class in a jar in common/lib, the singleton will be for your entire
tomcat server. if you put it in a jar in
Hmmm
My jar is located in web-inf/lib
Perhaps I should rephrase that question.
When I load the singleton class, will it be the same singleton called from all
sessions or will it be unique to each session?
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent:
Hi all.
I would like to have a link in a HTML page that invalidate (through a
servlet) the actual session.
How I can invalidate the session through my servlet??
Thanks in advance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
request.getSession().invalidate();
Filip
-Original Message-
From: Tomcat User [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 11:24 AM
To: [EMAIL PROTECTED]
Subject: Invalidate a session
Hi all.
I would like to have a link in a HTML page that invalidate (through a
Ok, I wasn't clear... let me re-write my mail:
The problem is that I want to test if an object is subclass of a
java.lang.Class INSTANCE... Nonsense example:
java.util.Date date1 = new java.util.Date();
java.sql.Date date2 = new java.sql.Date();
Class clasz = date1.getClass();
if
Same, if you code it correctly.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Luc Foisy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 11:26 AM
To: Tomcat Users List
Subject: RE: Loading Singleton Classes
Hmmm
My jar is located in
How can I declare an LDAP datasource in the server.xml file without the need
to use it for authentication. The documentation I have read so far assumes
that I am using LDAP for authentication. When looking at the datasources
section of the JNDI docs, it assumes a relational database. Can
From: Mike Jackson [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 11:06 AM
Subject: RE: instance of (ot)
Perhaps you ought to post a snippet of what doesn't work. I personally
haven't had any problems with instanceof, but without seeing what you're
doing I don't think any of us can
1 - 100 of 161 matches
Mail list logo