RE: ELF data encoding not big-endian

2001-08-10 Thread William Kaufman
The Apache folks don't seem to distribute Linux/PPC libraries, just Linux/Intel; and SuSE doesn't package Apache/Tomcat on PPC. So, while you can use the Java classes and any other files you've already downloaded, you'll need to build mod_jk.so (and any other libraries you need) yourself. You

RE: ELF data encoding not big-endian

2001-08-10 Thread William Kaufman
Thanks Bill for your prompt reply, At the URL you've given I can see the source for tomcat and the API but not mod_jk.. is the source for mod_jk bundled within the tomcat file? Sorry, it's in jakarta-tomcat-3.2.3-src.*, under src/native/ . Will I need to build tomcat as well or just

RE: Using Tomcat with MSAccess

2001-08-09 Thread William Kaufman
snip / .equals(passwd) rather than passwd.equals( ) snip / No you shouldn't. That's totally evil. For a start, you're creating another String object by doing snip/ remark As is a constant string, it is created just once. So there is not much overhead. True, other

RE: Further documentation

2001-08-09 Thread William Kaufman
- JDBCRealm, how to use in an applet (Did you really mean use JDBCRealm in an applet? Tomcat doesn't run applets, only servlets,...) Did you read the online Tomcat docs? http://jakarta.apache.org/tomcat/ (Pick the version of Tomcat you're using under Documentation on the left side.) Or

RE: two tomcats on one pc

2001-08-09 Thread William Kaufman
Yes, as you say. You'll need a separate server.xml file for each instance, setting the ports uniquely across all instances. -- Bill K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09, 2001 7:38

RE: Using Tomcat with MSAccess

2001-08-09 Thread William Kaufman
PROTECTED]] Sent: Thursday, August 09, 2001 9:50 AM To: [EMAIL PROTECTED] Subject: Re: Using Tomcat with MSAccess Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: William Kaufman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday

RE: JDBC

2001-08-09 Thread William Kaufman
Tomcat doesn't do JDBC. Tomcat comes with optional classes (like JDBCRealm) which do, but those are extensions. So the answer is, it comes with all the JDBC drivers it needs, which is none. If _your_ code uses JDBC, _you'll_ need to get the driver(s) you want yourself.

RE: Using Servlet in different path then /examples/servlets/

2001-08-08 Thread William Kaufman
Try adding a url-pattern element to your web.xml. The servlet spec details the format of web.xml: http://java.sun.com/products/servlet/download.html -- Bill K. -Original Message- From: Yuval [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: Getting the user environment variable::Need help

2001-08-07 Thread William Kaufman
1) This isn't a Tomcat question: if you'd done the same in a java application, you'd have found the same thing. There are forums, newsgroups, and mailing lists for Java questions. 2) You're confusing environment variables with properties. Properties are defined either by loading them from a

RE: Servlet/ Database Conenction Persists Question

2001-08-07 Thread William Kaufman
I have developed a servlet web application which connects to a database to retrieve information. I noticed that if within my servlet I destroy the connection to the database there is no way to reconnect to the database . Maybe this is a JSP thing (I'm not too familiar with those), and

RE: Servlet/ Database Conenction Persists Question

2001-08-07 Thread William Kaufman
it. Simply refreshing the servlet page doesn;t seem to work. --- William Kaufman [EMAIL PROTECTED] wrote: I have developed a servlet web application which connects to a database to retrieve information. I noticed that if within my servlet I destroy the connection to the database

RE: Servlet/ Database Conenction Persists Question

2001-08-07 Thread William Kaufman
problem in a little more detail, I figured this must be the issue. I guess this leads to another question. Once you destroy a servlet, can you reinitialize it. If so how? thanks, -Amos --- William Kaufman [EMAIL PROTECTED] wrote: This is not really a jdbc

RE: How to keep existing info in tomcat logs at restart

2001-08-06 Thread William Kaufman
Change tomcat.(bat/sh) to move the log file(s) to a new location before starting the java process. Or, change it to invoke your own Java main routine which moves the files before calling org.apache.tomcat.startup.Tomcat.execute(). -- Bill K.

RE: Application Server

2001-08-02 Thread William Kaufman
The important bit is: ezmlm-reject: fatal: Sorry, I don't accept messages of MIME Content-Type 'multipart/alternative' (#5.2.3) The lesson here is, use plain text, like it says in the welcome message we're all sent when we sign on to the mailing list. In Outlook, you can set this in the

RE: HTTP 404 Error

2001-08-01 Thread William Kaufman
1) Tomcat, by default, connects on port 8080. If you want to change that, edit your server.xml. 2) It sounds like your HTML is malformed or empty. Use the View source menu in the browser to see what you're spitting out. -- Bill K. -Original

RE: image resize

2001-07-31 Thread William Kaufman
There's also the possibility of letting the browser resize it for you, by setting the width and height attributes of the IMG tag. Browsers don't scale images well, but it's a whole lot easier than doing it yourself. (Also note that AWT can't run on Unix without an X server, nor can it run if

RE: How to increase HTTP timeout?

2001-07-31 Thread William Kaufman
You should be able to set this in your web.xml file, with the session-timeout tag. Take a look at the servlet spec, at http://java.sun.com/products/servlet/download.html . -- Bill K. -Original Message- From: Andrew Jarman [mailto:[EMAIL

RE: Security questions

2001-07-30 Thread William Kaufman
What is the default password for the admin context? It's in tomcat/conf/tomcat-users.xml . where can I find documentation on implementing security with tomcat? Start with the servlet specification at http://java.sun.com/products/servlet/ . You could also look at JDBCRealm (sources and

RE: Java script problem using servlets

2001-07-25 Thread William Kaufman
First question: Did you try running this in a browser debugger? MS has one for IE (search for JScript debugger), and Netscape 4 has one. parent.document.critere document.critere isn't defined, unless you're defining it somewhere else. And, is this actually, really the HTML you're using?

RE: keeping sessions when switching from http to https

2001-07-25 Thread William Kaufman
Are you encoding the cross-protocol links (with HttpServletResponse.encode[Redirect]URL())? The only reason I ask is that it seems strange that it does OK with cookies but not with URL encoding: the code paths are similar, so I'd expect it to fail with both or succeed with both.

RE: Wat is JDBC realm basically

2001-07-24 Thread William Kaufman
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/JDBCRealm.howto -- Bill K. -Original Message- From: Mehul S Dave [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 6:00 AM To: Tomcat User archive Subject: Wat is JDBC realm basically

RE: tomcat 3.2.3 configuration

2001-07-24 Thread William Kaufman
It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to /baseball like, cut here web-app servlet servlet-name

RE: Tracking Threads inside Tomcat

2001-07-23 Thread William Kaufman
Depending on your JVM, you may be able to do a break (Ctrl+Break on Windows, Ctrl+Y on several Unixes) in the window running Tomcat (or any Java application) to get a stack trace. Dunno how (or even if) it can be done on Macs. Failing that, you could use jdb to connect to the Tomcat process,

RE: load-on-startup

2001-07-19 Thread William Kaufman
I'm not sure I understand what you're trying to accomplish, but the JSDK explains how to use load-on-startup. Look at the JSDK spec, at, http://java.sun.com/products/servlet/download.html or web.dtd, at, http://java.sun.com/j2ee/dtds/web-app_2_2.dtd

RE: Setting Tomcat HTTP Request Timeout

2001-07-18 Thread William Kaufman
Tomcat isn't timing out--your browser is. It gives up if it doesn't get a response from the server in a certain amount of time. And I don't think you can change that setting on any browser I've seen. You could try calling ServletOutputStream.flush() each time you write data: hopefully, that

RE: Double Click

2001-07-18 Thread William Kaufman
I can think of a few ways to deal with it: 1) Disallow double-clicking on the client, ever. Add ondblclick=javascript: return false; to the anchor tag(s). (The servlet engine never knows whether the user single- or double-clicked. If you need that specific information, you always

RE: Generate Excel File

2001-07-18 Thread William Kaufman
We've got it working exactly as you say, but only if the data is delimited with _tabs_, not _commas_. -- Bill K. -Original Message- From: Erin Lester [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 2:21 PM To: [EMAIL PROTECTED]

RE: problems serving HTTP requests

2001-07-17 Thread William Kaufman
From the HTTP spec at http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2068.html : ] 10.2.7 206 Partial Content ] The server has fulfilled the partial GET request for the resource. That means you called HttpServletResponse.setContentLength() with a number bigger than the actual amount of data

RE: jdbc

2001-07-16 Thread William Kaufman
(You know, this has nothing at all to do with Tomcat, or even servlets,...) Use a PreparedStatement, and call setString(). -- Bill K. -Original Message- From: Andrea Mari [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 6:58 AM To:

RE: multipart/form-data

2001-07-12 Thread William Kaufman
Page not found is browser-speak for your servlet blew chunks. Take a look at the window Tomcat is running in: unless you wrote a good deal of code to avoid it, you should see a stack trace which tells you where your code broke. If there's no stack trace, chances are your servlet is locked up.

RE: Tomcat memory-leak problem

2001-07-11 Thread William Kaufman
Then i would like to know if there is a program to clean up objects. Like a garbage collection on the system. Of course there is: it's Java. The JDK will garbage-collect released objects. The problem is, you aren't releasing them. You need to figure out _why_ you're caching them: is it on

RE: Tomcat problems on Solaris

2001-07-11 Thread William Kaufman
Tomcat terminates when the user who starts tomcat logs off the server. man nohup. -- Bill K. -Original Message- From: Neil Anderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:57 AM To: [EMAIL PROTECTED] Subject: Tomcat

RE: Help with using getRequestURL()

2001-07-11 Thread William Kaufman
Assuming you mean the getRequestURI() (not URL) method of HttpServletRequest (not Servelt),... What exactly is the compiler complaining about? What's the error it's producing? -- Bill K. -Original Message- From: Tia Haenni [mailto:[EMAIL

RE: getServletContext() throws NullPoinetException

2001-07-10 Thread William Kaufman
Looking at the source (available from http://jakarta.apache.org/builds/jakarta-tomcat/release/) it looks like the only way this would happen is if it doesn't have the ServletConfig passed into its init() method. Are you intercepting the call to init() in your servlet? If so, are you making sure

RE: creating a instance of a servlet: takes too long!!

2001-07-06 Thread William Kaufman
Note that a good deal of this time might be spent in HttpServletRequest.getSession(): the 3.2.1 implementation is much slower than the 3.2.2 version. You might want to time your calls and, if that's where the slow-down is, upgrade to 3.2.2. -- Bill K.

RE: generic exceptions on startup

2001-07-05 Thread William Kaufman
Looking at the source code, he's just throwing the execption to himself as a debugging message. You could turn it off by dropping your debug level to 20, but I wouldn't worry too much about it. -- Bill K. -Original Message- From: [EMAIL

RE: Killing endless loop servlet - howto ? killing JVM or unload class ?

2001-07-02 Thread William Kaufman
OK, no one's answered this yet, so,... First, I don't know if it's killing a thread is the right approach. Should I do that, without shutdown Tomcat ? So, why are you creating an infinite loop? I mean, if you didn't, you wouldn't have to kill it. If you're generally asking how one can kill

RE: IOException and Tomcat hanging

2001-07-02 Thread William Kaufman
I've got random java.sql.SQLException: Io exception: Socket closed error in my web application, which uses Tomcat 3.2.2 and struts. It happens only when a link is clicked without the page fully loaded. I don't get any exception while the page is fully loaded. That exception tells you

RE: Restarting Tomcat on NT

2001-07-02 Thread William Kaufman
Maybe you didn't really kill off Tomcat, but just the DOS box it was running in,... (I've seen it happen after closing the DOS box, but not after Ctrl+C'ing the program.) Try bringing up the Task Manager, and make sure there aren't any instances of a java image name running.

RE: multipart/form-datatomcat 3.2.2 problem

2001-06-29 Thread William Kaufman
I think it's more accurate to say, Don't call anything that would read the upload stream--for instance, you could ask about the headers or the URL, but don't ask about the parameters. If this is the problem you're having, check the console window that Tomcat is running in:

RE: How do I get context-params that are set in the web.xml file?

2001-06-29 Thread William Kaufman
You want ServletConfig.getInitParameter(); you can get the ServletConfig with Servlet.getServletConfig(), or intercept it on the servlet's init() call. -- Bill K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent:

RE: port problem

2001-06-29 Thread William Kaufman
Start tomcat on port 80 instead of 8080. (This is listed in your server.xml.) Note that you may have to start it with administrator/root privileges, since ports below 1024 are access-controlled. -- Bill K. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: trapping session invalidation

2001-06-29 Thread William Kaufman
Look at HttpSessionBindingListener: http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSess ionBindingListener.html -- Bill K. -Original Message- From: Pankaj Chhaparwal [mailto:[EMAIL PROTECTED]] Sent: Friday, June

RE: Using the servlet element on web.xml to define short name for a servlet in a package

2001-06-29 Thread William Kaufman
Try adding, servlet-mapping servlet-name controller /servlet-name url-pattern /something /url-pattern /servlet-mapping to your web.xml. Then, http://localhost:8080/something should work.

RE: open xml/xsl files inside classpath

2001-06-26 Thread William Kaufman
ServletContext.getResourceAsStream(): http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContex t.html#getResourceAsStream(java.lang.String) (I believe it shows up starting in JSDK version 2.1, or Tomcat 3.2.) -- Bill K.

RE: How to mask servlet ?

2001-06-21 Thread William Kaufman
Look at the web.dtd file in tomcat/conf--specifically, the url-pattern tag. The complete spec is at http://java.sun.com/products/servlet/ . -- Bill K. -Original Message- From: Eric MARTIN [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001

RE: mysteriously dying connections (Oracle - tomcat)

2001-06-21 Thread William Kaufman
These look like two different issues: 1) Oracle is running out of cursors. a) Make sure you close every ResultSet, Statement and Connection when you're done with them. One trick you can use on Oracle is to log into the database in SQL*Plus as SYS while your application is running, and do,

RE: Javascript not working

2001-06-21 Thread William Kaufman
I have some jsp files, which work under JRun on our intranet, but when I put them on our server on the internet and open them with a browser, I get a javascript error message in the status bar at the bottom of the browser window. Try debugging the javascript. Both Microsoft (for IE) and

RE: Tomcat Version

2001-06-21 Thread William Kaufman
javax.servlet.ServletContext: getMajorVersion(), getMinorVersion() (returns the version of the JSDK it implements) getServerInfo() (returns a text description of the Tomcat version) -- Bill K. -Original Message- From: Amer Mallah

RE: what is this number -2147483646

2001-06-21 Thread William Kaufman
From the JSDK 2.2 spec, available at http://java.sun.com/products/servlet/download.html : The load-on-startup element indicates that this servlet should be loaded on the startup of the web application. The optional contents of these element must be a positive integer indicating the order in

RE: mysteriously dying connections (Oracle - tomcat)

2001-06-21 Thread William Kaufman
Eh,... It might have a different name on your version of Oracle, or be under a different schema. Try running, SELECT OWNER, VIEW_NAME FROM ALL_VIEWS WHERE VIEW_NAME LIKE '%OPEN%CURSOR%'; and see what pops up. -- Bill K.

RE: mysteriously dying connections (Oracle - tomcat)

2001-06-21 Thread William Kaufman
the recordset and statement one way?) At 07:33 PM 6/21/2001 +0300, you wrote: you can use v$parameter view for getting OPEN_CURSORS paremeter value. or in sql plus or svrmgrl type show parameter OPEN_CURSORS -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent

RE: Tomcat version

2001-06-21 Thread William Kaufman
(You know, I just mailed this text _this_morning_,...) javax.servlet.ServletContext: getMajorVersion(), getMinorVersion() (returns the version of the JSDK it implements) getServerInfo() (returns a text description of the Tomcat version) -- Bill

RE: 100% CPU Usage by upload from Netscape under Windows NT

2001-06-20 Thread William Kaufman
Well, from your description, it sounds like it's a Netscape issue, not a Tomcat issue. Which process is taking the CPU? (Look at the process list in the Windows Task Manager.) If it's actually Tomcat sucking CPU, activate the window Tomcat is running in, and hit Ctrl+Break: that will give you

RE: Adding data to HTTP header responses?

2001-06-20 Thread William Kaufman
http://java.sun.com/products/servlet/2.2/javadoc/index.html Look for Header in javax.servlet.http.HttpServletRequest and javax.servlet.http.HttpServletResponse. -- Bill K. -Original Message- From: Joe Dalessandro [mailto:[EMAIL PROTECTED]] Sent:

RE: duplicate posts

2001-06-19 Thread William Kaufman
Are you sure they're not double-clicking the submission control? Are these the kind of users who know the difference between a single-click and a double-click? Is it only happening with one user and not another? (Can you tell that from your logs?) (I find that many users single-click buttons

RE: how to make a war file?

2001-06-19 Thread William Kaufman
- is war-file a jar-file? Yes, except it's got some extra entries, and it ends in .war. See the servlet spec, at http://java.sun.com/products/servlet/2.2/ , for more information on the WAR file format. - which command/tool can I use to do it? jar.

RE: memory allocation

2001-06-14 Thread William Kaufman
The only time you need to set a variable to null is when the variable itself sticks around (e.g., a class variable, or an instance variable on some object on a class variable). You never have to null out local variables. This is a general Java question, not a Tomcat question. If my answer

RE: Windows 2000 problems with HttpSession

2001-06-13 Thread William Kaufman
1) Do you have cookies turned on in your browser? 2) Did you call HttpServletResponse.encode[Redirect]URL() on all your links? (See the javadoc for that method.) -- Bill K. -Original Message- From: James Manna [mailto:[EMAIL PROTECTED]] Sent:

RE: Problem in access control of resources

2001-06-12 Thread William Kaufman
MS Word documents should use application/msword. (See the registry of MIME types at ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types .) -- Bill K. -Original Message- From: Hemant Singh [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: Java Question

2001-06-12 Thread William Kaufman
public static String getYear(String str){ synchronized(str){ newStr = str.substring(0,4); return newStr; } } While your use of synchronize is correct, _this_ synchronization is not necessary at all. java.lang.String is unmodifiable: there's nothing you can do with it

RE: Session timeout during long file upload

2001-06-11 Thread William Kaufman
Are you sure it's the _session_ timeout, not the browser's connection timeout? The session timeout defaults to 30 minutes. That should be plenty of time to load anything, even a Word document at 9600 baud,... More likely, the browser is timing out when it doesn't get a response quickly enough.

RE: Reloading changed servlets problem

2001-06-07 Thread William Kaufman
I think the reason no one responded was, you didn't say _what_ problem you had. If you're getting an exception/error somewhere, post the stack trace, and the line of code where it happened. If it's just that the servlet didn't reload, it might be a problem with the timestamp on the file (esp.

RE: Problem: Using Tomcat 3.2.1 on NT 4.0 SP5, get Internal Servlet E rror on writing POST response approx. 800kb in length

2001-06-07 Thread William Kaufman
Location: /servlet/MyServlet Internal Servlet Error:java.lang.ArrayIndexOutOfBoundsException: 10 at MyServlet.doPost(MyServlet.java:157) This isn't a Tomcat issue: _your_ code is throwing an ArrayOutOfBoundsException, at line 157. Moreover, the code you posted doesn't look like it'd throw

RE: Messages

2001-06-06 Thread William Kaufman
See this posting: http://marc.theaimsgroup.com/?l=tomcat-userm=98770302314327w=2 -- Bill K. -Original Message- From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 7:03 AM To:

RE: Questions about Tomcat Cookies

2001-06-06 Thread William Kaufman
1) If the cookies are not found in the directory , where are they ? In memory. The cookie is set with an expiration of -1, which suggests to the browser that it shouldn't bother writing it to disk. 2) If I disable cookies in the browser , still session tracking will work ? Your servlet

RE: Jakarta Tomcat NT service stopping itself

2001-06-06 Thread William Kaufman
And to remind folks, the archives are at two locations: http://marc.theaimsgroup.com/?l=tomcat-user http://tomcat.mslinn.com/ (under Listservs) -- Bill K. -Original Message- From: Randy Layman [mailto:[EMAIL

RE: download files using ftp

2001-06-05 Thread William Kaufman
Do you mean you're trying to do an FTP download _of_ Java _in_ Java? I wouldn't attempt this: there's one form (the license agreement) followed by another form (the FTP download site selection). And Sun would probably consider bypassing the forms (if possible) as legally questionable,

RE: About GET and POST methods

2001-06-05 Thread William Kaufman
Look at the method attribute of the form element in HTML, and form submission: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13 -- Bill K. -Original Message- From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL

RE: About GET and POST methods

2001-06-05 Thread William Kaufman
On the browser side: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13 On the servlet side: http://java.sun.com/products/servlet/download.html -- Bill K. -Original Message- From: Nael Mohammad [mailto:[EMAIL

RE: Netscape crash!

2001-06-05 Thread William Kaufman
You might need to specify the content type to convince Netscape that the content is HTML (while IE just looks for an html tag). Try, HttpServletResponse resp; resp.setContentType(text/html); before streaming the XSL results. You can also try adding, xsl:output

RE: get/setAttribute and getParameter...

2001-06-04 Thread William Kaufman
Hemant's right, that performance is often dependent on many things,... but doing new Boolean is guaranteed to be slower. If you look at the source of java.lang.Boolean, you'll see that the your version of the code is identical to what Boolean itself does: therefore, using Boolean is no win (and

RE: IE calls servlet multiple times for one request

2001-06-04 Thread William Kaufman
Most likely, your problem is the same as the one spelled out here: http://marc.theaimsgroup.com/?l=tomcat-userm=98770302314327w=2 -- Bill K. -Original Message- From: Rod Frey [mailto:[EMAIL PROTECTED]] Sent: Monday, June

RE: URL Help

2001-06-04 Thread William Kaufman
I can only get it to work if I include 'servlet' like the following: http://localhost/Gillette/servlet/Venus?SerialId=ZVXZVContactId=1 ... web.xml: servlet servlet-nameVenus/servlet-name servlet-classGVservlet/servlet-class /servlet Which is the name of your

RE: Security Questions

2001-05-30 Thread William Kaufman
RequestInterceptorclassName="org.apache.tomcat.request.AccessInterceptor" debug="0" / From that class' javadoc: * Access control - find if a request matches any web-resource-collection* and set the "required" attributes.** The spec requires additive checking ( i.e. there is no "best

RE: servlet error..

2001-05-30 Thread William Kaufman
The AWT classes need an x-server to work with images. Worse yet, the server has to be unlocked: you can't connect to a locked server. -- Bill K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent:

RE: Using JDBCRealms

2001-05-29 Thread William Kaufman
-mail -Ben -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 16, 2001 8:05 PM To: Tomcat Users (E-mail) Subject: Using JDBCRealms (Tomcat version 3.2.1.) I'm trying to use JDBCRealm to manage access to some static files

RE: Retrieving the current directory path...

2001-05-29 Thread William Kaufman
Yes, there is. Don't do it. What are you actually trying to accomplish? -- Bill K. -Original Message- From: Rui Oliveira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 12:19 PM To: [EMAIL PROTECTED] Subject:

RE: Query

2001-05-24 Thread William Kaufman
It means what it sounds like: the method isn't defined in the version of HttpSession that's on your CLASSPATH. I thinkthat method was added in JSDK 2.1. What version are you compling against? -- Bill K. -Original Message-From: haneesh [mailto:[EMAIL PROTECTED]]Sent:

RE: Changing Tomcats default servlet url?

2001-05-24 Thread William Kaufman
I need the url to not have the 'servlet' in it. Anybody know how to do this? Add a servlet-mapping tag to your web.xml file. The DTD for that file (for JSDK 2.2 / Tomcat 3.2) is available at http://java.sun.com/j2ee/dtds/web-app_2_2.dtd and in the JSDK 2.2 specification. Also, how

RE: Aliasing urls in Tomcat (without using Apache)

2001-05-23 Thread William Kaufman
I'm not sure I get you, but, can't you just alias the servlet's URL using the url-pattern tag in your web.xml? (Take a look at the DTD for web.xml, at, http://java.sun.com/j2ee/dtds/web-app_2_2.dtd or in the JSDK spec.) -- Bill

RE: JDBC/ODBC: Technological choice

2001-05-23 Thread William Kaufman
-first, is it possible to use a JDBC IV sheme with Tomcat Yes. -if so, how is it possible? How is it made? The same way you use any JDBC implementation. In other words, where can i find documentation about that? The obvious place would be Sun's JDBC home page:

RE: servlet deployment

2001-05-22 Thread William Kaufman
Try http://myserver:8080/servlet/dummy.HelloWorld 1) 8080 is the default port for Tomcat: you can change it in server.xml. 2) All servlets (by default--settable in web.xml) appear under /servlet. 3) After that comes the full class name.

RE: Context loading of .properties files

2001-05-22 Thread William Kaufman
Take a look at web.xml--specifically, the context-param element. -- Bill K. -Original Message-From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 22, 2001 7:33 AMTo: '[EMAIL PROTECTED]'Subject: Context loading of .properties files I have several

RE: modify html error page in Tomcat

2001-05-21 Thread William Kaufman
Look at the error-page element in web.xml; the DTD is in the JSDK spec, and at http://java.sun.com/j2ee/dtds/web-app_2_2.dtd -- Bill K. -Original Message- From: Andrew Chou [mailto:[EMAIL PROTECTED]] Sent: Monday, May

RE: Cookies

2001-05-17 Thread William Kaufman
(I'm not sure what this question has to do with cookies,...) I use JDBCRealm and I'd like to have the connection times out after a certain period of time. Currently, it seems that once you have logged in, as long as you don't exit from your browser, the servlets can be run forever. Is there

RE: Difficult question Urgent!!!

2001-05-17 Thread William Kaufman
javax.servlet.http.HttpServletRequest.getRemoteUser(). -- Bill K. -Original Message- From: mohamed imdadullah [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 9:17 AM To: [EMAIL PROTECTED] Subject: Difficult

RE: inserted line feeds in concatenated strings

2001-05-17 Thread William Kaufman
So what's the value of text? Does it include some kind of line break character, or doesn't it? (You might want to try something like, for (int i = 0; i != text.length(); i++) { char c = text.charAt(i); if (Character.isSpace(c) c != ' ') System.err.println(Char + i

RE: Browser Closed

2001-05-17 Thread William Kaufman
javax.servlet.http.HttpServletRequest.isRequestedSessionIdValid(). -- Bill K. -Original Message- From: Alin Simionoiu [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 11:34 AM To: [EMAIL PROTECTED] Subject: Re:

RE: inserted line feeds in concatenated strings

2001-05-17 Thread William Kaufman
Orignal poster, correct me if I'm wrong, but it sounds like the _browser_ is on Unix, not necessarily the _server_. Asking about the line separator on the server will always return the same value, regardless of the browser; in fact, I can't think of any way to find out the proper line separator

RE: SessionListener

2001-05-17 Thread William Kaufman
You mean HttpSessionBindingListener? (I can't find any other reference to Listener in tomcat/conf/* or the JSDK 2.2 spec; nor can I find that class in the Tomcat sources.) That's not related to web.xml, and I find it pretty easy to use. What troubles are you having?

RE: Browser Closed

2001-05-17 Thread William Kaufman
: Re: Browser Closed Corect. But this is true for existing session. Want I'm trying to find is something like : isSessionValid(Session) Alin - Original Message - From: William Kaufman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 1:11 PM Subject: RE

RE: Session Question

2001-05-15 Thread William Kaufman
Call HttpServletRequest.encodeURL() or encodeRedirectURL() on each URL you put in the page. -- Bill K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 5:34 AM To: [EMAIL

RE: RTFM?

2001-05-15 Thread William Kaufman
Please read the fine Jargon File, at http://www.tf.hut.fi/cgi-bin/jargon . -- Bill K. -Original Message- From: Sachin Phatak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 4:08 AM To: [EMAIL PROTECTED] Subject:

RE: Accessing environment variables

2001-05-15 Thread William Kaufman
Yes, there is. But it's not really a good idea. What you ought to do instead is to specify these properties in your web.xml file as a context-param element, like, webapp !-- ... -- context-param param-nameTomcatHome/param-name param-valuec:/tomcat/param-value /context-param

RE: socket write error

2001-05-11 Thread William Kaufman
This is IE being goofy. Look at this email from the Tomcat mailing list archives: http://marc.theaimsgroup.com/?l=tomcat-userm=98770302314327w=2 -- Bill K. -Original Message- From: Sankaranarayanan Ganapathy

RE: Tomcat start error

2001-05-11 Thread William Kaufman
Don't start Tomcat in a new window. In tomcat.bat, there's be a line like, start Tomcat java org.apache.tomcat.startup.Tomcat ... Strip everything before java. Then, when you run tomcat.bat, any errors will show up in your current window.

RE: Posting multipart/form-data

2001-05-11 Thread William Kaufman
You'll need to package your data in a MIME message. There may be something in the O'Reilly package for that; if not, you can use JavaMail, available at, http://java.sun.com/products/javamail/index.html Look specifically at the javax.mail.internet package, and all the Mime* classes.

RE: Classpath Question

2001-05-11 Thread William Kaufman
Tomcat has its own ClassLoader implementations (in 3.2, org.apache.tomcat.loader.*) which can pull the classes from the webapps directory. Look up java.lang.ClassLoader for more info. -- Bill K. -Original Message- From:

RE: problem with amp;

2001-05-10 Thread William Kaufman
PATIENT: Doctor, it hurts when I raise my arm. DOCTOR: Well, then, stop raising your arm. (Translation: don't use amp;, use . amp; is only necessary in XHTML, which few browsers support.) -- Bill K. -Original

  1   2   >