Re: help!! for tomcat installation

2001-10-01 Thread chris brown
Go to http://jakarta.apache.org/tomcat/ and subscribe to the "tomcat-user" list. It's more specialised that this list, is heavily used, and has archives (in which you'll find the answer to the question). But to give you a hint, forget the instructions about "mod_jserv.dll" ; the current "bridge"

"JSP Syntax Card" - updated for JSP 1.2 ?

2001-09-24 Thread chris brown
Hello, A while back, there was a simple PDF document available from the JSP section of java.sun.com called the "JSP Syntax Card" with reminders of syntax and common objects for JSP 1.1. Is there an updated equivalent for JSP 1.2 ? Thanks, Chris =

Re: Internationalization Issue

2001-08-20 Thread chris brown
Use java.sql.PreparedStatement for creating and executing your queries. PreparedStatements are simple to use ; they're like template SQL strings with ? symbols marking all your changeable values to include in the SQL statement. After creating the PreparedStatement based on the template, use its

Why doesn't Tomcat 3.2.2 correctly handle non-ASCII characters (when making ".java" files from ".jsp" files)???

2001-06-22 Thread chris brown
I have two instances of Tomcat 3.2.2, one running under Windows NT, the other running under Linux. The problem is identical in the two. No matter what character set I use when saving my JSP files to disk, Tomcat always assumes that they're in UTF8 format. When I activate "DEBUG" logging for "ja

Re: Deploying a web app as a war file then supplying init params

2001-06-08 Thread chris brown
utions are not always available. -Chris - Original Message - From: "Hans Bergsten" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 08, 2001 1:41 AM Subject: Re: Deploying a web app as a war file then supplying init params > chris brown wrote: >

Re: Deploying a web app as a war file then supplying init params

2001-06-08 Thread chris brown
operty files, and put your custom properties in the > classpath. (i.e., in the application lib dir, or the application server lib > dir, or even higher, if you like.) > > > >From: chris brown <[EMAIL PROTECTED]> > >Reply-To: A mailing list about Java Server Pages specificat

Deploying a web app as a war file then supplying init params

2001-06-07 Thread chris brown
Hello, I'm developing a web app which I plan to deploy on several systems. I'm trying to avoid hard-coding anything into the app, so for example database connections, log file paths, etc. are specified as init-params on the appropriate servlets. When I deploy this as a "war" file (web archive),

Re: Jikes and Tomcat for JSP compilation

2001-06-07 Thread chris brown
Sorry, wrong list. Wasn't trying to cross-post. - Original Message - From: "chris brown" Sent: Thursday, June 07, 2001 9:57 AM Subject: Re: Jikes and Tomcat for JSP compilation > If it's any consolation, I've asked the same question on many mailing lists

Re: Jikes and Tomcat for JSP compilation

2001-06-07 Thread chris brown
e. However, this didn't work at all well, as it seemed to give Tomcat a headache. I've already posted on this ("overriding default web.xml with custom web.xml). Not a lot of luck there either... Hope someone can give a clear answer as to how to do this -- and verify that it works!

Re: A Poor Man's JSP compatible Search Engine Implementation

2001-05-21 Thread chris brown
The title of this thread was originally had the word "poor" in it, so this message may not answer that question ; however, it may be interesting for large projects. A very good search engine (used by MSN, AOL, Hewlett-Packard, and many others) for extremely large intranets and internets is called

Re: Multilingual WebSite

2001-05-14 Thread chris brown
You could use Cocoon for that (I can't be more specific than that though). In general, to make an application multilingual, your best bet is to "externalise all strings", as in "don't embed any language-specific resources with your code". If some language-specific data is stored in a database, y

Re: What's going on with web.xml ?!

2001-04-24 Thread chris brown
sing Tomcat via its built-in HTTP connector, > >not Apache or whatever). > > > >So I decided then to put a copy of the default web.xml file within the > >WEB-INF folder of my context (without restoring the default in tomcat/conf). > >And another surprise: compilation fail

What's going on with web.xml ?!

2001-04-24 Thread chris brown
m I missing? How can I define a full "web.xml" file for my context without these problems? I may for example wish in some contexts to use the Jikes compiler instead of Javac, which requires overriding the "jsp" servlet (and this is what I'm stuck on). Many thanks for hel

Re: Basic question about web.xml

2001-04-23 Thread chris brown
m: "Dennis Leary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 23, 2001 3:51 PM Subject: Re: Basic question about web.xml > Difficult to say what the problem is but it sounds like something in your web.xml file. I recommend replying with your web.xml conte

Using JkMount to handle root-level servlets

2001-04-23 Thread chris brown
I'm using Tomcat with Apache via mod_jk. In Apache's httpd.conf, I have: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 In my "web.xml" file for a root context (context mapping is "/"), and a servlet with the URL pattern "/servlet/toto" and the appropriate name-to-class mapping in web.xml, this w

Basic question about web.xml --- more info

2001-04-23 Thread chris brown
default web.xml would be harmless (indeed, very useful in some cases, in order to provide different JSP behaviour for different webapps under the same server..!). Please explain ! Many thanks, Chris - Original Message - From: "chris brown" <[EMAIL PROTECTED]> To: <[EM

Basic question about web.xml

2001-04-23 Thread chris brown
I'm using nothing but copies of the standard files, and none of the possible causes of an HTTP 404 error given in Tomcat's documentation correspond to my case. Incidentally, I'm using Tomcat 3.1 on top of JDK1.3 on Windows NT4. Thanks in advance, Chris Brown ==

Re: date problems

2001-04-23 Thread chris brown
me other time. > now i am extracting various values as > int month_curr = df_curr.get(Calendar.MONTH); > > but i need to know exact difference irrespective of year between two dates > in days.. > > Can you please explain further.. > > sandarbh > > > - Ori

Re: date problems

2001-04-20 Thread chris brown
You should be able to extract a Date object (using Calendar.getTime()) , then from this Date, call getTime() to get a long (in milliseconds). Do the same for your other date, then compare the two long values. A day can generally be assumed to be equal to : 1000ms * 60s * 60m * 24h You may wish

java.util.Calendar, Timezone, and Daylight Savings Time change

2001-04-20 Thread chris brown
e specified timezone automatically... but on the other hand, I don't want to irritate the user by forcing him or her to change this manually (especially as the server's host OS seems capable of doing this...). Thanks, Chris Brown

Re: Good JSP books/URLs?

2001-01-25 Thread Chris Brown
good URL: http://www.esperanto.org.nz/jsp/jspfaq.jsp good book: Coreservlets and JavaServer Pages, by Marty Hall good code reference: Pure JSP, by Sams -Original Message- From: Chowaniok Mirek [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 1:38 PM To: [EMAIL PROTECTED] S

(RE: COMPILING BEAN TO .CLASS????)

2001-01-12 Thread Chris Brown
-Original Message- From: L-Soft List Server [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 1:29 PM To: Chris Brown Subject: Your post has been returned (RE: COMPILING BEAN TO .CLASS) IMPORTANT MAILING LIST POLICY - Sun maintains this service