Re: Request for HTTP documentation, tutorials, and/or workshops

1999-12-06 Thread David Chisholm
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 06, 1999 10:00 AM Subject: Re: Request for HTTP documentation, tutorials, and/or workshops > David Chisolm writes: > > > I was having a very strange caching problem - dif

Re: Request for HTTP documentation, tutorials, and/or workshops

1999-12-04 Thread David Chisholm
- Original Message - From: Morten Norby Larsen <[EMAIL PROTECTED]> To: David Chisholm <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, December 04, 1999 2:16 PM Subject: Re: Request for HTTP documentation, tutorials, and/or workshops > David, > > A

Request for HTTP documentation, tutorials, and/or workshops

1999-12-04 Thread David Chisholm
I'm having a wonderful time this morning reading the HTTP 1.1 spec.  YUCH!  I hate reading IETF and W3C spec documents!  Can anyone recommend a good book, tutorial, or even a class that discusses "using" HTTP versus "implementing" HTTP?  I don't know about anyone else, but to me it's like pu

Re: Page Control in International/Regional Setting

1999-12-02 Thread David Chisholm
I think that you can still do this with one servlet. In earlier posts (subject - Which Architecture), Craig discussed a servlet design that used an action parameter in the servlet request to determine how to handle the request. It seems to me that you have at least one additional dimension, i.e.

Re: Maximum JSP Page size.

1999-12-02 Thread David Chisholm
I believe that this is a known problem in JRun 2.3.3. If you have a long block of non-JSP code, then you will get this error. You can fix it by applying the 2.3.5 patch or inserting JSP comments in the long blocks of the non-JSP code. David > -Original Message- > From: A mailing list a

Re: jsp include problems

1999-11-30 Thread David Chisholm
One suggestion: Have you tried encoding the value of article before passing it in the request parameter? It may be that the "/" character is causing a problem. You can use the JavaScript escape() method to encode it. Also, this is a dynamic include so you have to use jsp:include. David -

Re: Browser caches.

1999-11-30 Thread David Chisholm
I do the same plus this: Date dateInPast = new Date(0); response.setDateHeader("ExpiresAbsolute", dateInPast.getTime()); and I wrote it as a scriptlet in a separate file that is included in my JSP pages using <%@ include file %> so that I would have to insert a call to a method. David

Re: Scriplets as form control events

1999-11-30 Thread David Chisholm
You cannot do this because JSP scriptlets are server side entities.  They are accessible from a client.  The nearest alternative approach that I can think of is to use a scriptlet to generate JavaScript code for the onClick handler and use meta tags in the header to refresh the page.  While

Re: Forwarding with a Link

1999-11-30 Thread David Chisholm
First, with an HTML link, you're not forwarding a request. Instead, the client is creating a new request when the user clicks on the link, and this request is not the same as the request object that is used on the server-side. The servlet container creates a HttpServletRequest object from the re

Re: Off topic: Classes in a package?

1999-11-30 Thread David Chisholm
I think so. There are basically two ways of doing this (that I can think of). (1) Creating a listing of *every* class in *every* path of your CLASSPATH. That includes searching inside jar files and zip files. Then, if you understand Java bytecode, you can decode the package name of for each cla

Re: changing the URL tags in the Address Bar of IE5

1999-11-26 Thread David Chisholm
The address of the page that contains the top-most frameset will always display in the address bar because it's the "current" page for the browser. It doesn't change when the contents of a frame changes. I handled this situation by redirecting the client after login to the page containing the fra

Re: Which Architecture..?

1999-11-24 Thread David Chisholm
I agree that the approach described by Craig is the preferred approach, but the issue that I have with it in our application occurs with workflows. Not unlike many others I'm sure, we are delivering a UI via the web that in the past would have been a standalone application UI, and to do this requ

Re: ERRORPAGE does paint over on the main FRAME - goes to the frame w hich throws exception.

1999-11-17 Thread David Chisholm
The following javascript can be used once on the target page to do the same thing. The other has to be used everywhere that you reference the target page. if (top.document.href != self.document.href) { top.document.href = self.document.href; } David - Original Message - Fr

Re: Any tools to convert .class files to .java files

1999-11-16 Thread David Chisholm
Jad is a pretty good Windows tool for doing this.  See http://www.geocities.com/SiliconValley/Bridge/8617/jad.html   David     -Original Message-From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of fgs infotechSent:

Re: Help really urgent !!!

1999-11-08 Thread David Chisholm
> Or you could just use the new ThreadLocal class in Java 2 to achieve the > same thing, > > Kevin > > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of David Chisholm > Se

Re: User Security (was Re: Using JSP and Servlets.)

1999-09-22 Thread David Chisholm
I haven't tried this yet, but was considering this approach: - use one servlet to process logins and create/populate the client's session object - redirect the client to the first JSP page of my application - every page statically (i.e., at translation time) includes a file that contains

Re: Passing Connection Objects from servlets to JSP??

1999-09-01 Thread David Chisholm
- Original Message - From: Mike Engelhart <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 01, 1999 8:38 AM Subject: Re: Passing Connection Objects from servlets to JSP?? > > This is not a good practice. Contents of sessions should be > > serializable, and connectio

Re: JSP 1.0

1999-04-09 Thread David Chisholm
Great idea. They should also be told where to find the spec & the FAQ. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher Cobb > Sent: Friday, April 09, 1999 9:09 AM > To: [EMAIL PROTECTED]

Re: [Fwd: Question about Servlet lifetime]

1999-01-16 Thread David Chisholm
there are no dangling references. David > -Original Message- > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 18, 1999 1:35 PM > To: David Chisholm > Cc: [EMAIL PROTECTED] > Subject: Re: [Fwd: Question about Servlet lifetime] >

Re: Newbie to JSP - Does JSP work with Frames

1999-01-16 Thread David Chisholm
The short answer is yes you can. Why it's not working for you is most likely a problem in your environment or one of the individual JSP pages. Here are some tests to narrow down the problem: Can you load the frameset jsp page without referencing menu.jsp? Can you load menu.jsp without using the

Re: [Fwd: Question about Servlet lifetime]

1999-01-16 Thread David Chisholm
Would the technique for preventing singleton objects from being garbage collected (as described in Doug Leah's Concurrent Programming in Java, I think) also prevent servlets from being unloaded? Basically, the technique calls from creating a thread that contains a reference to the singleton. The

Re: Another newbie question

1999-01-16 Thread David Chisholm
The instructions for running the converter are located here, http://java.sun.com/products/jfc/tsc/web/converter/converter.html. David - Original Message - From: Rick L Sample <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 18, 1999 9:50 AM Subject: Re: Another newbi

Re: Another newbie question

1999-01-16 Thread David Chisholm
Javasoft provides a JDK plugin for JDK 1.1 and JDK 1.2. Just search for "java plugin" on the Javasoft site. They also provide a tool that will convert the applet tags in your HTML file to plugin tags that are compatible with either NS, IE, or both. David - Original Message - From: Rick

Re: Help really urgent !!!

1999-01-03 Thread David Chisholm
I don't know why you want to do this, but theoretically you can do it by: - getting the current thread object with Thread.currentThread() - use a hashtable to store (Thread object, count object) pairs. Note that count is now an Integer object and not an int. - use the hashtable to lookup a cou

Re: Problem

1999-01-03 Thread David Chisholm
This is a problem I've encountered with javac. The error message is misleading because it doesn't tell you the correct name of the class that can't be loaded. What's likely happening is that your Product class is importing a class that's not in your classpath, or one those imported classes is im

Re: Session values question

1999-01-02 Thread David Chisholm
OTECTED]] > Sent: Thursday, November 04, 1999 9:53 AM > To: David Chisholm; [EMAIL PROTECTED] > Subject: Re: Session values question > > > The misconception is that the object IS NOT stored in the session. ITS A > HANDLE or reference. The actual object is in memory. > This math t

Re: Garbage collection

1999-01-02 Thread David Chisholm
From the JDK 1.1.7B javadocs for java.lang.System.   gc public static void gc() Runs the garbage collector. Calling the gc method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for qu

Re: Taglib Question (SKIP_PAGE, RequestDispatcher.forward() and Beans)

1999-01-02 Thread David Chisholm
If you're wanting a JSP error page to be shown, why not just throw the exception in the bean (or, in this case maybe re-throwing a different kind of exception than the original one) and allow the JSP engine to automatically forward to your JSP error page? This doesn't require any extra scriptlet

Re: Session values question

1999-01-02 Thread David Chisholm
You're right that the session values are stored in the server, and I think a bean is a very convenient way to store these values, but I suggest that you do the math to determine whether this is consuming two much memory: num_bytes = [75 * (avg_field_name_size) * 2] + [75 * (avg_value_size) * 2] *