My current web.xml looks like (excluding prolog)
It's pretty cool that tomcat's web.xml lets you code in prolog, although I
think
that will fail the sun standards test :-)
-Original Message-
From: Martin Coxall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 10:56 PM
To:
I have some code that looks something like this;
RequestDispatcher rd =
_req.getRequestDispatcher(/invalid.jsp);
try {
rd.forward(_req, _resp);
} catch ( ServletException e ) {
} catch ( java.io.IOException e ) {
}
Hi Ronald
This has come up quite a few times. Search the archives @
http://marc.theaimsgroup.com http://marc.theaimsgroup.com for things like
getResource.
cheers
lyndon
-Original Message-
From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 3:33 PM
To:
You need to find out if its a browser-cache problem, or a
tomcat-not-recompiling-source problem.
-Original Message-
From: Franky Tong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 9:42 AM
To: [EMAIL PROTECTED]
Subject: Problem in refresh the new jsp file
Hi all,
I have a
Even easier, the latest xerces/xalan supports JAXP ( javax.xml.transform ),
which allows very simple access
to XSLT transforms. Using the Transformer class, Stream input can be
transformed by XSLT to Stream output.
-Original Message-
From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]]
something.
Thread.currentThread().getContextClassLoader.getResources() doesn't list
the resource required - do I have to list it in the web.xml descriptor?
jim
- Original Message -
From: Samson, Lyndon [IT] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 5:47 PM
Subject
Or more succinctly;
this.getClass().getResourceAsStream(String);
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: RE: Accessing a packaged file
This works a treat for me
InputStream is = this.getClass().getResourceAsStream("myapp.properties");
Properties p = new Properties();
try {
p.load(is);
} catch ( java.io.IOException e ) {
// Can't load props file
}
That way the properties file can be anywhere in the classpath.
In your tomcat.[bat|sh] place the xalan/xerces jar files b4 the xml.jar ( ie
tomcats xml parser ) reference. In tomcat 4.0 CLASSPATH will not be
available to your servlets/JSP's and WEB-INF/lib will be isolated.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent:
Works fine for me? My jar file had a manifest, a class ( default package )
and a properties file. I added the jar to the CLASSPATH and executed the
class. Voila!
As the InputStream has no concept of file paths there is no easy way to
determine where
in the CLASSPATH it was loaded from. CLASSPATH
is not in the jar. Just the class that tries
to access it. I didn't try it with the properties file inside the
jar, so it may work. But I don't want to do that. I want
to make it readily editable.
Mark
- Original Message -
From: "Samson, Lyndon [IT]" [EMAIL PROTECTED]
To: [EMAIL PROTE
You could allways get the source to Tomcat, and insert your own logging!!!
Ooh now, there's an idea :-)
-Original Message-
From: Andy C [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 9:34 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: re: Fed up to the back teeth
Hi Alistair,
I tried to get to the Virtuso link www.openlink.com buts its a redirect to
internet.com Was your email some kind of clever spam :-)
-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:48 AM
To: [EMAIL PROTECTED]; [EMAIL
Well actually in the context of generating web applications, XSLT and JSP
are both competing.
IMHO, XSLT has the huge advantage of separating content and format, unlike
JSP.
XSLT is also turing complete, I would think for many applications it would
be a much better
solution than Perl/LineNoise
Its usually not a good idea to get political on lists like this, but I just
wonder
about your email address, it icould/i be considered quite offensive to
some people.
I'm sure it isn't meant to be.
Regarding your error, have you compiled and successfully run the simple
hello world servlet,
Kresimir,
You may want to analyse what network traffic originating from the browser,
just watch the
TCP data that IE sends to the server, if the request is the same the problem
is most likely on the
server, otherwise the browser may be trying to 'intelligently' ( read: brain
dead ) cache and
IANAE but...
this
url-pattern
/TrainingPlansRepository/born/servlets/LoginController
/url-pattern
doesn't seem to match this
FORM METHOD=POST ACTION="born/servlets/LoginController"
try changing one or the other.
regards
lyndon
-Original Message-
From: tomcat user [mailto:[EMAIL
Are you running the supplied examples or your own servlet?
Try compiling a helloworld servlet, then modifying it incrementally.
regards
lyndon
-Original Message-
From: Rajesh A [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 5:12 PM
To: [EMAIL PROTECTED]
Subject: First
You could try outputting this header.
META HTTP-EQUIV='Expires' CONTENT='-1'
Failing that just tack a random number ( System.currentTimeMillis() ) onto
each URL to guarentee uniqueness.
-
To unsubscribe, e-mail: [EMAIL
You can use the nohup command to ensure processes continue after logoff.
-Original Message-
From: Gary Lawson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 11:42 AM
To: [EMAIL PROTECTED]
Subject: Logout of telnet session - tomcat stops
Hello
I want to be able to control
You could write a custom applet, which could use any encryption algorithm
you prefer.
-Original Message-
From: Sam Newman [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 2:35 PM
To: [EMAIL PROTECTED]
Subject: Encrypting password
Am I right in saying the only method for
Courier a disk :-)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 3:09 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Encrypting password
On Mon, 12 Mar 2001, Samson, Lyndon [IT] wrote:
You could write a custom applet, which could use
Is parkingPriceHandler an instantiated object or a class?
-Original Message-
From: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: Please Help On Static Reference
Hi all,
I was wondering could someoone please
, Samson, Lyndon [IT] wrote:
But but but... tomcat does serve static pages. It can be used as a stand
alone web server, and with a simple servlet, it could run cgi progams.
Where is this simple servlet? Please do not confuse people...
Supporting the CGI protocol according to specs is quite
But but but... tomcat does serve static pages. It can be used as a stand
alone web server, and with a simple servlet, it could run cgi progams.
-Original Message-
From: Brett W . McCoy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 5:52 PM
To: [EMAIL PROTECTED]
Cc: tomcat
You can find out what processes have the file open using handleex from
www.sysinternals.com. A top site for nt tools.
-Original Message-
From: Eli Segev [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 9:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Log File isapi.log Too Big
This seems ok for the job. There should be some speedups if you need them.
Cheers
// --- cut ---
public class GenID {
private static String validChars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
private int _IDlength;
public GenID(int IDlength) {
_IDlength =
goonsArrrh The HTML email, please not the HTML email.../goons
make a directory under webapps in the tomcat dir ( easiest just to copy an
existing dir ), your classes go in
dir/WEB-INF/classes, jar files in dir/WEB-INF/lib. HTML gifs etc in
dir
You don't have to but you can change
Hi Madar
You are missing enctype="multipart/form-data" in your post tag on the form.
cheers
-Original Message-
From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 7:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Anybody doing doPost successfully ?
Hi ,
You should really run tomcat using the jdk from Sun ( or IBM ) rather than
that supplied by
an IDE.
-Original Message-
From: Ashant Chalasani [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 17, 2001 8:19 AM
To: [EMAIL PROTECTED]
Subject: RE: Newbie Question, this should be easy
Hello Sunil
The Jdk's have been proven to be quite stable for a long time now. Its
highly likely your
problem is in the binary code of your jdbc driver. Is a newer driver
available? Can you 'switch' databases for a round of testing ( ie try the
eval version of oracle ) to see if the
problem goes
How ironic. An email from a guy asking how to unsubscribe is the ONLY post
which doesn't acutally contain the unsubscribe information... Maybe because
its HTML?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I'm not entirely sure what you are saying, however I wrote a
multipart/form-data parser whos contructor is passed req.getInputStream()
and it works fine under Tomcat. I use the service method
of the HttpServlet class rather than doPost, I don't think that would make
any difference.
This came up before with the subject tools.jar. I think the response was
basically to use jspc to precompile your JSP source.
-Original Message-
From: Philip Halsey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 10:17 AM
To: '[EMAIL PROTECTED]'
Subject: legal issue???
This is true, I wrote a multipart/form-data parser and the only character
set which preserved
binary data was ISO-8859-1. Conversions between bytes and characters only
work with this encType, your input and output should both use this if you
use characters to store binary data.
Output streams
Hi
This question comes up alot on this list. The fix is to put your xml parser
before the tomcat one in the CLASSPATH. ie xalan.jar;xerces.jar;xml.jar
This will avoid the less functional classes in xml.jar being used when you
really want the newer classes. You can make the change in
-
Von: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 14. Februar 2001 14:32
An: '[EMAIL PROTECTED]'
Betreff: RE: Hi Ho - Problem with ServletOutputStream in Tomcat
This is true, I wrote a multipart/form-data parser and the only character
set which preserved
binary data
Is your Building class and constructor public? I know it sounds basic but
its important to the servlet container.
-Original Message-
From: Matt White [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 5:02 PM
To: [EMAIL PROTECTED]
Subject: IllegalAccessError?
This is most
Well no simple solutions will do exactly what you want. There is nothing
special about the init method in java. It might be nice if the servlet
container promised to walk up the class hierachy calling each init as it
goes but thats not how it works.
But you could;
1.Use the java debugging
Hi Xavier
I think its the total length of your path, not just the filename component.
Perhaps you should chop out some intermediate directories.
cheers
-Original Message-
From: Xavier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 4:15 PM
To: [EMAIL PROTECTED]
Subject:
You could of course set it first thing in your tomcat.[sh|bat] file...
-Original Message-
From: Jefferson Oliveira Andrade [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 6:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Where to set the JAVA_HOME?
You do not set it in
If you are using *nix you could look up the system command tee, but if
apache is using stderr it wont work. Its pretty easy to write a little C
program ( someone prob. already has ) to do this.
PS I knew a guy who used to work @ reef, Ross Dyson ring a bell?
-Original Message-
by:
\bin\startup tomcat.log
but the trace() lines are still being sent to the console instead of the log
file.
What else is there that I could do?
-Original Message-
From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2001 16:47
To: [EMAIL PROTECTED]
Subject: RE: How do I
Why don't you compile you code as a bean and just usebean it from your jsp
pages?
-Original Message-
From: Bob Jones [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Unable to compile class for JSPerror: HELP!
I am running tomcat
Tomcat use this ( its in the system Classpath created by tomcat.bat ) I need
to install another XML parser for my servlet ( WEB-INF/libs ) however the
classes in the system classpath seem to be loaded first, screwing up my
installed parser. Is there anything I can do about this, ideally I'd like
You could use EJB's or a mobile agent framework?
-Original Message-
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 5:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Running Tomcat as non-root user
You may be able to write yourself some native code to do
Hi All
I'm asking this even though I'm pretty sure of the answer and I'm sure its
come up before.
Short version is, what is the class path search order of WEB-INF/lib ?
If it containts a.jar and b.jar and they both contain class C, which class C
is instantiated by a servlet?
I think its
is used.
-Original Message-
From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 9:58 AM
To: '[EMAIL PROTECTED]'
Subject: Clarification
Hi All
I'm asking this even though I'm pretty sure of the answer and I'm sure its
come up before.
Short version is, what
Just as a matter of interest, you don't actually need apache to serve out
http requests. tomcat can do that on
its own. Only if you req the features of apache ( performance/config etc )
should you use it.
If your primary interest is servlets/JSP/taglibs etc just use tomcat on its
own.
lcs
49 matches
Mail list logo