RE: Deploying an XSLT filter in Tomcat 4.0

2001-06-21 Thread Samson, Lyndon [IT]
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:

forward() question

2001-06-06 Thread Samson, Lyndon [IT]
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 ) { }

RE: Context loading of .properties files

2001-05-22 Thread Samson, Lyndon [IT]
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:

RE: Problem in refresh the new jsp file

2001-05-09 Thread Samson, Lyndon [IT]
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

RE: xslt processing

2001-04-24 Thread Samson, Lyndon [IT]
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]]

RE: Accessing a packaged file

2001-04-24 Thread Samson, Lyndon [IT]
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

RE: Accessing a packaged file

2001-04-23 Thread Samson, Lyndon [IT]
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

RE: How to read property files?

2001-04-18 Thread Samson, Lyndon [IT]
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.

RE: xalan and xerces

2001-04-18 Thread Samson, Lyndon [IT]
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:

RE: How to read property files?

2001-04-18 Thread Samson, Lyndon [IT]
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

RE: How to read property files?

2001-04-18 Thread Samson, Lyndon [IT]
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

RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Samson, Lyndon [IT]
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

RE: Fed up to the back teeth with tomcat !!!

2001-04-12 Thread Samson, Lyndon [IT]
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

RE: XSLT vs. JSP

2001-04-06 Thread Samson, Lyndon [IT]
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

RE: Error 500: Internal servlet error

2001-04-05 Thread Samson, Lyndon [IT]
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,

RE: tomcat in comb. with apache randomly rejecting requests

2001-04-05 Thread Samson, Lyndon [IT]
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

RE: web.xml problem?

2001-04-04 Thread Samson, Lyndon [IT]
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

RE: First ExceptionInInitializerError Then NoClassDefFoundError

2001-04-04 Thread Samson, Lyndon [IT]
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

RE: Cache problem with IE

2001-03-13 Thread Samson, Lyndon [IT]
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

RE: Logout of telnet session - tomcat stops

2001-03-12 Thread Samson, Lyndon [IT]
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

RE: Encrypting password

2001-03-12 Thread Samson, Lyndon [IT]
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

RE: Encrypting password

2001-03-12 Thread Samson, Lyndon [IT]
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

RE: Please Help On Static Reference ........

2001-03-07 Thread Samson, Lyndon [IT]
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

RE: Tomcat usability as a WebServer?

2001-03-06 Thread Samson, Lyndon [IT]
, 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

RE: Tomcat usability as a WebServer?

2001-03-05 Thread Samson, Lyndon [IT]
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

RE: Log File isapi.log Too Big

2001-03-02 Thread Samson, Lyndon [IT]
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

RE: Generating a random alphanumeric string

2001-03-01 Thread Samson, Lyndon [IT]
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 =

Re:confused

2001-02-28 Thread Samson, Lyndon [IT]
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

RE: Anybody doing doPost successfully ?

2001-02-19 Thread Samson, Lyndon [IT]
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 ,

RE: Newbie Question, this should be easy

2001-02-19 Thread Samson, Lyndon [IT]
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

RE: Tomcat 3.1 can't handle load

2001-02-19 Thread Samson, Lyndon [IT]
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

RE: help need

2001-02-19 Thread Samson, Lyndon [IT]
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

RE: FLAW IN SERVLET SPECIFICATION IS THE REASON FOR LACK OF STANDARD SUPPORT FOR FILE UPLOAD

2001-02-15 Thread Samson, Lyndon [IT]
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.

RE: legal issue???

2001-02-14 Thread Samson, Lyndon [IT]
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???

RE: Hi Ho - Problem with ServletOutputStream in Tomcat

2001-02-14 Thread Samson, Lyndon [IT]
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

RE: Need help! :( (XALAN CONFIG )

2001-02-14 Thread Samson, Lyndon [IT]
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

RE: Hi Ho - Problem with ServletOutputStream in Tomcat

2001-02-14 Thread Samson, Lyndon [IT]
- 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

RE: IllegalAccessError?

2001-02-14 Thread Samson, Lyndon [IT]
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

RE: Using a servlet superclass

2001-02-12 Thread Samson, Lyndon [IT]
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

RE: *** Generated Tomcat Temporary Class File Name Seem Too Long... Yes ***

2001-02-12 Thread Samson, Lyndon [IT]
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:

RE: Where to set the JAVA_HOME?

2001-02-12 Thread Samson, Lyndon [IT]
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

RE: How do I redirect console messages to a log file?

2001-01-24 Thread Samson, Lyndon [IT]
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-

RE: How do I redirect console messages to a log file?

2001-01-24 Thread Samson, Lyndon [IT]
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

RE: Unable to compile class for JSPerror: HELP!

2001-01-17 Thread Samson, Lyndon [IT]
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

xml.jar

2001-01-16 Thread Samson, Lyndon [IT]
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

RE: Running Tomcat as non-root user

2001-01-16 Thread Samson, Lyndon [IT]
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

Clarification

2001-01-12 Thread Samson, Lyndon [IT]
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

RE: Clarification

2001-01-12 Thread Samson, Lyndon [IT]
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

RE: New User help required

2001-01-12 Thread Samson, Lyndon [IT]
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