Force URL Encoding for a single URL

2008-04-18 Thread Chris Pratt
Is there a way to force URL Encoding for a single URL? Here's my problem, for most of my site, I'm perfectly happy letting Resin take care of whether to use Cookies or URL Rewriting to track sessions. But I have one situation where I need to pass a URL into a PDF generator so that it can call back

Re: PRIVATE VARIABLES WITHIN PUBLIC CLASS

2006-02-06 Thread Chris Pratt
On 2/6/06, VERONICA ROACH <[EMAIL PROTECTED]> wrote: hello - thank you so much for your response - I now realise what Ihave to do with servlets.I had been using the following assumptions in a non-servletenvironment - read somewhere - cant find which book to blame !! - if I invoke a new object with

Re: PRIVATE VARIABLES WITHIN PUBLIC CLASS

2006-02-06 Thread Chris Pratt
No private is an access modifier, not a replication or synchronization keyword.  All that it means is that only the specific class can access the data (not the specific instance).  You have to remember that Servlets use a single instance of your servlet class to serve all the requests that come in.

Re: When should I update the database?

2005-10-21 Thread Chris Pratt
Put a reference to the data that needs to be saved to the database in the Object that implements HttpSessionBindingListener.  Then you will have access to it when the valueUnbound() method is called.   (*Chris*)On 10/21/05, Ming Li <[EMAIL PROTECTED]> wrote: I have some data kept in the session obj

Re: servlet

2005-10-18 Thread Chris Pratt
That is correct, during init() and destroy() there is only allowed to be one active instance.   (*Chris*)On 10/18/05, Duc Vo <[EMAIL PROTECTED]> wrote: I believe the answer is "no", by default you only have one instance ofthe servlet running.-Original Message-From: A mailing list for discus

Re: Close the Stream

2005-10-04 Thread Chris Pratt
Nope.  I always do out of habit and because I consider it cleaner code, but it is the Servlet Engine's responsibility to close the stream if you don't.   (*Chris*)On 10/4/05, SUBSCRIBE EJB-INTEREST anonymous <[EMAIL PROTECTED]> wrote: Hi,I use HttpServletResponse's getOutputStream().println(String)

Re: Filling-in a Bean inside a Servlet

2005-09-03 Thread Chris Pratt
Although I haven't used it extensively.  I believe Struts has a method or doing something similar.   (*Chris*)  On 9/2/05, Zerbe John W <[EMAIL PROTECTED]> wrote: Hi,An alternative would be to do what the jsp processor does. Write your own piece of code that uses reflection to determine what "sette

Re: Servlet Init method

2005-09-01 Thread Chris Pratt
The API isn't based around GenericServlet, it's based around Servlet.   (*Chris*)On 9/1/05, Nic Ferrier <[EMAIL PROTECTED]> wrote: Chris Pratt <[EMAIL PROTECTED]> writes:> Actually, what I remember from the early days of Servlets, it is because the> Servlet API is in

Re: Servlet Init method

2005-09-01 Thread Chris Pratt
Actually, what I remember from the early days of Servlets, it is because the Servlet API is interface based, and you can't specify constructors in a Java interface.  The developers decided to use a method that they can specify in the interface contract.   (*Chris*)On 9/1/05, Nic Ferrier <[EMAIL PRO

Re: Global Data

2005-08-31 Thread Chris Pratt
Use the static singleton pattern to construct a States object to hold the static data.  Make sure it has some method to allow it to be reloaded on the fly.  Then add an extra web page to your web app (possibly with higher security) that allows you to reload the States singleton after you've updated

Re: redirecting from a servlet to an exterior URL using a POST

2005-06-22 Thread Chris Pratt
True redirection in the HTTP sense is not possible with a POST request, but that does not mean that you can't accomplish the same end result. There are two options, depending on where you want to "redirect" to. First, some insight. An HTTP redirect is nothing more than a response to an HTTP requ

Re: (New subscriber) "Busy Page"

2004-10-10 Thread Chris Pratt
Or you can fake it like most of the web sites do and pop up a window with an animated gif file in the onsubmit event handler of the and close the window in the onunload event handler of the tag. That way it pop's up and stays there until the response is ready to be processed by the browser, then

Re: General strategy for determining current server, or specific for WebLogic?

2004-09-17 Thread Chris Pratt
Original Message- > From: A mailing list for discussion about Sun Microsystem's > Java Servlet API Technology. > [mailto:[EMAIL PROTECTED] On Behalf Of Chris Pratt > Sent: Friday, September 17, 2004 1:38 PM > To: [EMAIL PROTECTED] > Subject: Re: General strategy for det

Re: General strategy for determining current server, or specific for WebLogic?

2004-09-17 Thread Chris Pratt
Is there a reason you're not just using request.getServerName()? (*Chris*) Original Message --- David, One way you could determine the server it is running on is to us the IP address. You could do this in a servlet of jsp. If this example doesn't go deep enough (actu

Re: multiple connections made when only 1 needed

2004-09-16 Thread Chris Pratt
I'd look at the user agent on those lines in the access log. My guess is that you are being spidered by a bot. They usually make a large number of connections in a short amount of time to see if anything has changed on your site and update their indexes. This would not be a problem if it was

Re: where do tags...

2004-07-27 Thread Chris Pratt
When you define a tag in the Tag Library Definition (TLD) file, you have to specify the that you wrote. So the service() method code includes calls to your methods. (*Chris*) Original Message --- fit into the compile scheme of servlets? I note that scriptlet code (<%) g

Re: The 414 Error

2004-07-09 Thread Chris Pratt
If it's a form request, use method="POST". If not, you'll have to dig into the documentation for whatever servlet engine you're using to find out if it's possible to extend or remove that limit. (*Chris*) -Original Message- From: A mailing list for discussion about Sun Microsystem's Jav

Re: How Unix was developed by using 'C' ?!!

2004-07-08 Thread Chris Pratt
There are two basic methods to accomplish this. The oldest and least used these days is called bootstrapping. It involved creating small parts of the OS (usually using an assembler or directly in machine language), then creating a compiler that could use those new facilities and not much else. Th

Re: parsing .class file and .exe file

2004-06-26 Thread Chris Pratt
ve the compilation step out and run your not-written program on the sources, do your tests or whatever and the build? Let me guess: You want to use servlets for the upload part (just trying to make this Q servlet related)!? -mw Chris Pratt wrote: >How do you plan to parse a binary, machine langu

Re: parsing .class file and .exe file

2004-06-21 Thread Chris Pratt
How do you plan to parse a binary, machine language, .exe file into a text file? And what good would it do if you could? (*Chris*) -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED] On Behalf Of Zouhua Di

Re: Concurrent Users

2004-06-16 Thread Chris Pratt
Two things to note. Since there is no way to positively no when a user has left your site, there's no accurate way of knowing how many users are currently viewing your site. With that said, if you want to count the number of outstanding users whose sessions have not timed out, make a User obje

Re: requested resource (/quiz/servlet/quiz) is not available

2004-03-28 Thread Chris Pratt
5 version? Shud i make an entry for each servlet that i use to submit in my html? Vj - Original Message ----- From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 29, 2004 9:48 AM Subject: Re: requested resource (/quiz/servlet/quiz) is not

Re: requested resource (/quiz/servlet/quiz) is not available

2004-03-28 Thread Chris Pratt
Try going to http://majid:8080/quiz (*Chris*) -Original Message- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED] On Behalf Of Majid Nakit Sent: Sunday, March 28, 2004 7:43 pm To: [EMAIL PROTECTED] Subject: [SERVLET-INTER

Re: Date in a query Statement

2003-09-09 Thread Chris Pratt
The best option would be to use a prepared statement like this: PreparedStatement pst = con.prepareStatement("SELECT code,fname,lname FROM employee WHERE datestarted = ?"); try { pst.setDate(1,datestarted); ResultSet res = pst.executeQuery(); try {

Re: Using Response.sendRedirect()

2003-06-10 Thread Chris Pratt
Actually, it completely depends on where you redirect to. If you are redirecting to another page within your web app, and you have sessions enabled, and either the user has Cookies enabled or you properly used URL Rewriting to communicate the session then the session data will be available. Ot

Re: getParameter

2003-02-27 Thread Chris Pratt
Try %2B123456 instead (*Chris*) - Original Message - From: "Hui, Steven" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 10:48 PM Subject: [SERVLET-INTEREST] getParameter > Dear sir, > > I am using request.getParameter("phone") to get a vale of "+123456",

Re: odd oracle error [MAX cursors]

2003-02-04 Thread Chris Pratt
gt; wanted a strategy that would have all this code centralized. > > ~Manav. > - Original Message - > From: "Chris Pratt" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 04, 2003 5:35 PM > Subject: Re: odd oracle error [MA

Re: odd oracle error [MAX cursors]

2003-02-04 Thread Chris Pratt
I have used this pattern over and over with all manner of JDBC drivers and have not found one that it does not work with. There were issues with performance in the initial 1.1 JVM's since try/catch blocks had a fairly severe overhead, but with the newer 1.2+ JVM's it's negligible. I do recommend

Re: odd oracle error [MAX cursors] and more :-)

2003-02-04 Thread Chris Pratt
But since you replaced one handle on the stack (the Connection) with a different handle on the stack (the Wrapper) There should be no additional stack space consumed. Now as far as Heap Space is concerned, that's a whole other matter, and would be far more than 4 bytes. (*Chris*) - Origina

Re: how get Session Id from Java Application

2003-02-03 Thread Chris Pratt
It's included in a cookie, the url or a request parameter. It's up to the servlet container you are using what it is named and which one to use. So you'll probably have to do some investigation on your own to figure it out. (*Chris*) - Original Message - From: "randie ursal" <[EMAIL PR

Re: Servlet question...

2003-01-20 Thread Chris Pratt
Try setting the expires header and/or overriding the HttpServlet.getLastModified() method. (*Chris*) - Original Message - From: "Hélder Sousa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 20, 2003 9:42 AM Subject: [SERVLET-INTEREST] Servlet question... Hello This

Re: Curiousity: return types of various "get..." methods in servlet spec

2002-11-15 Thread Chris Pratt
Ahh, I think you need to look a little closer at those definitions, I believe what you'll find is actually this: Enumeration ServletRequest.getAttributeNames() Enumeration ServletRequest.getParameterNames() Enumeration ServletConfig.getInitParameterNames() Enumeration HttpServletRequest.getHeaderN

Re: JSP String not reconizing a variable

2002-10-23 Thread Chris Pratt
Have you tried URLEncoding the String? I believe it would be something like: query += java.net.URLEncoder.encode(" AND CATEGORY (" + categoryQuery + ')'); (*Chris*) - Original Message - From: "Lance Prais" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 2

Re: about getRemoteHost()

2002-10-16 Thread Chris Pratt
Subject: Re: [SERVLET-INTEREST] about getRemoteHost() > NO MORE GARBIGE MAIL, PLS > > -Original Message- > From: Chris Pratt [mailto:[EMAIL PROTECTED]] > Sent: 16. lokakuuta 2002 5:33 > To: [EMAIL PROTECTED] > Subject: Re: about getRemoteHost() > > > Depend

Re: debug Servlet

2002-10-16 Thread Chris Pratt
The task manager shows what memory has not been allocated to any programs by Windows, it cannot see within a program to know what memory is actually being used. With that in mind, remember that, at least to Windows, the JVM is just a program. The JVM has it's own memory management system that al

Re: about getRemoteHost()

2002-10-15 Thread Chris Pratt
Depends whether the Router is set up to do NAT or not. If the Router is NATing, you will get the address at the Router, if it's not you'll get the address of the machine. (*Chris*) - Original Message - From: "randie ursal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Octo

Re: help required regarding serialisation of a bean

2002-10-11 Thread Chris Pratt
Serializable only means that it CAN be saved to disk, not that it will be. You need to either deserialize/serialize the object in the Servlet's init() and destroy() methods, or instruct the object to load/save it's state from those methods. It won't be done for you. (*Chris*) - Original Me

Re: problem with <@include file %>

2002-10-07 Thread Chris Pratt
While you're absolutely right about the @include file vs jsp:include page question. I believe you're incorrect about the page attribute not being rtexprvalue. The documentation I have lists it as being {relativeURL | <%= expression %>} which looks like an rtexprvalue to me. (*Chris*) - Or

Re: Encoding JPEG

2002-10-03 Thread Chris Pratt
The basic mechanism is to set the Content Type and Length, get the OutputStream from the Request, getBinaryStream from JDBC and loop through reading from the JDBC Input Stream and writing to the Servlet Output Stream. (*Chris*) - Original Message - From: "Emmanuel Eze" <[EMAIL PROTECTED

Re: tomcat 3.2 changed to select tomcat

2002-10-01 Thread Chris Pratt
That means that you have clicked on the tomcat window and the OS is waiting for you to finish your selection so that it can copy those characters to the clipboard. The simplest thing to do when you see that is to give the window focus and press the escape key. (*Chris*) - Original Message

Re: Mixing HTML and JPEG image on one output page

2002-09-30 Thread Chris Pratt
Your Servlet is going to have to get a little fancier. Basically, you have to look at what's being requested, and serve up the right component. Here's a start: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.awt.*; import java.awt.image.*; import com.sun.image

Re: mime problem

2002-09-25 Thread Chris Pratt
ber 25, 2002 2:32 PM Subject: Re: [SERVLET-INTEREST] mime problem > There is an audio MIME type. Check > > http://www.nacs.uci.edu/indiv/ehood/MIME/2046/rfc2046.html > > Luis. > > > - Original Message - > From: "Chris Pratt" <[EMAIL PROTECTED]> > To: &

Re: mime problem

2002-09-25 Thread Chris Pratt
Does seem a little oxymoronic, doesn't it. (*Chris*) - Original Message - From: "Galbreath, Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 2:26 PM Subject: Re: [SERVLET-INTEREST] mime problem > There's no such thing as an audio mime. > > Mark > (

Re: Tomcat Mime settings

2002-09-25 Thread Chris Pratt
According to http://www.isi.edu/in-notes/iana/assignments/media-types/media-types (the first thing returned by Google) it should be audio/mpeg (*Chris*) - Original Message - From: "Peter Maas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 12:56 PM Subje

Re: simplest Servlet-JDBC not working

2002-09-25 Thread Chris Pratt
t; > Any relevanet infor. on this is appreciated. > > THANKS EXPERTS. > > Manoj G. Kithany > > >From: Chris Pratt <[EMAIL PROTECTED]> > >Reply-To: "A mailing list for discussion about Sun Microsystem's Java > > Servlet API Technology."

Re: simplest Servlet-JDBC not working

2002-09-25 Thread Chris Pratt
> > > Yeah, and he's calling super.init( config ) too. > > -Original Message- > From: Chris Pratt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 12:44 PM > To: [EMAIL PROTECTED] > Subject: Re: simplest Servlet-JDBC not working > > >

Re: simplest Servlet-JDBC not working

2002-09-25 Thread Chris Pratt
It's a servlet, it doesn't have a main(), so you can't run it using the java command at the command line. You have to run it under a Servlet Engine. (*Chris*) - Original Message - From: "Manoj Kithany" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 9:32

Re: DB Connection and Servlets

2002-09-25 Thread Chris Pratt
You're on the right track, a Connection Pool is the correct answer to your question. But the servlet or tomcat (just like most things in computer science) doesn't do anything you don't tell it to do. You'll have to either use a Connection Pool from your JDBC driver (if it supports that) or add o

Re: request.getParameter() decode a url incorrectly

2002-09-25 Thread Chris Pratt
Not sure how you're using the URL, but you might have to HTML/XML encode those before you URL encode them. Try changing them to & before you URLEncode the string. Just a thought. (*Chris*) - Original Message - From: "M. Amin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday

Re: request.getParameter() decode a url incorrectly

2002-09-25 Thread Chris Pratt
It sounds like you encoded the whole URL, rather than just encoding the values of the query arguments.  That won't work, you need to encode just the query argument values, so that your final URL looks something of the form:  http://host.domain.com/path/file.html?arg1=Encoded+Value&arg2=Encod

Re: Tomcat and IIS

2002-09-25 Thread Chris Pratt
Unfortunately Microsoft disagrees with you.  They don't allow that tight an integration with IIS.  Most programmers must choose between Servlets/JSP and ASP before starting their project and pretty much stick with the technology that has been chosen.  The ability to mix ASP and JSP on a sing

Re: Tomcat and IIS

2002-09-24 Thread Chris Pratt
They use completely separate session management systems.   (*Chris*) - Original Message - From: Luca Ventura To: [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 10:36 AM Subject: [SERVLET-INTEREST] Tomcat and IIS Hello everybody!   I have ins

Re: Getting ServletContext attributes from a Filter

2002-09-24 Thread Chris Pratt
FilterConfig.getServletContext() (*Chris*) - Original Message - From: "Marc-andre Thibodeau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 9:28 AM Subject: [SERVLET-INTEREST] Getting ServletContext attributes from a Filter > Hi, > > Is there a way to

Re: Custom Tag retrieving ServletContext Objext

2002-09-24 Thread Chris Pratt
Make sure that both your initialization Servlet (that puts the dbPool into context) and your application JSP are in the same context (i.e. The same Web Application), then (just for ease of use) you might try pageContext.findAttribute("dbPool"); or pageContext.getAttributeScope("dbPool"); to

Re: sharing

2002-09-24 Thread Chris Pratt
Depends, do you actually expect your users to have your site up in multiple browser windows of the same machine so that the session data would actually be accessed by multiple threads concurrently. It's usually not a problem, but there are some site types that have to worry about this more than o

Re: return two CachedRowSet

2002-09-24 Thread Chris Pratt
That error means that, if you follow the flow through your method, you will never reach that statement, no matter which path you take.  Basically, you need to reevaluate your code, not your concept.   (*Chris*) - Original Message - From: Halil AKINCI To: [EMAIL PROTECTE

Re: java.lang.NoClassDefFoundError

2002-09-24 Thread Chris Pratt
It depends on which server you're running, but generically you want the compiled classes to end up in the WEB-INF/classes/Starter.class and WEB-INF/classes/dip/OrdreReader.class directories (based on the package statements). (*Chris*) - Original Message - From: "Anders Jørvad (RWDK)" <[

Re: Http-post in Servlet

2002-09-20 Thread Chris Pratt
One ugly, yet functional way that I've seen this handled is to return a small html page containing a form with all hidden fields and an onLoad event handler on the body tag that submits the form. Basically, it requests that the user's browser do the work for you. Your only alternative is to get

Re: Forwarding request to multiple web servers - the best solution

2002-09-19 Thread Chris Pratt
One option might be to use the Filter technique that was just introduced in the latest Servlet Spec. You could run your Authentication and Registration system as the same Servlet Filter on each site. Not sure how viable this is, but it's probably worth a look. (*Chris*) - Original Message

Re: Using Frames with servlets

2002-09-18 Thread Chris Pratt
One option would be to just add a query parameter to each of the frame source addresses, something like this: Then in your servlet you can use request.getAttribute("frame") to find out which frame to draw. (*Chris*) - Original Message - From: "Fawaz Ahmad" <[EMAIL PROTECTED]> To: <[

Re: MSIE GET when it should POST

2002-09-17 Thread Chris Pratt
From: Siddharth To: [EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 10:11 PM Subject: Re: [SERVLET-INTEREST] MSIE GET when it should POST Dose it work on any other browser..? [I hope it is not]   Siddharth - Original Message - From: Chris

Re: Cookie help...

2002-09-17 Thread Chris Pratt
For safety sake you should also check cookies.length > 0 before you reference cookies[0]. (*Chris*) - Original Message - From: "Siddharth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 17, 2002 9:49 PM Subject: Re: [SERVLET-INTEREST] Cookie help... > Mike, > > C

MSIE GET when it should POST

2002-09-17 Thread Chris Pratt
Has anyone out there experienced a problem where Microsoft IE sends a GET request (with no parameters) when submitting a form that clearly states method="post"?  We're trying to understand what is causing this intermittent problem we're seeing on our site.  Thanks for any input.  (*Chris*)

Re: [ANN] Need Java Training?: Servlets, JSP and XML

2000-01-10 Thread Chris Pratt
Ed, Maybe you should check the archives, this has been discussed time and time again. On-topic Announcements are permitted provided they are short and to the point and only posted to the list once. (*Chris*) - Original Message - From: "Leonard, Ed" <[EMAIL PROTECTED]> To: <[EMAIL

Re: Running a servlet with arguments?

2000-01-09 Thread Chris Pratt
Most Servlet Runners support the ability to pass in Initialization Arguments into the Servlet at init() time. You can retrieve the arguments with the ServletConfig.getInitParameter() method. (*Chris*) - Original Message - From: "Andreas Schlegel" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: Java Web Server

1999-12-28 Thread Chris Pratt
Try using http://localhost:9090/ to get the admin applet, if you just enter localhost:9090, it assumes you want to use the file:// protocol and can't open the applet.     (*Chris*) - Original Message - From: Moloy Biswas To: [EMAIL PROTECTED] Sent: Monday, December 27, 1

Re: Sevlet & Applet

1999-12-27 Thread Chris Pratt
applet = browser application servlet = server application The major conceptual difference is that an applet executes in the context of the browser, whereas a servlet runs in the context of the web server. This means that the applet has easy access to the user interface, which isn't directly acce

Re: URL rewriting in JSDK2.1 Java Web Server

1999-12-27 Thread Chris Pratt
Most Servlet Engines consider URL Rewriting a last resort, they first attempt to use Cookies, and if all else fails they resort to URL Rewriting. Try turning off Cookies in your browser and see if your servlet engine starts rewriting the URL's. Some Servlet engines also allow you to force URL Rew

Re: session tracking basics...?

1999-12-27 Thread Chris Pratt
To be completely correct, you'd have to say that existing browser "don't save session cookies to persistent storage". Which means that when the browser is shut down, the session cookies are lost (since they were only in memory). But they will be kept for the lifetime of the browser. (*Chris*

Re: Reply: size of file

1999-12-27 Thread Chris Pratt
Or you could just use the File.length() method of the java.io.File class. It's much simpler. (*Chris*) - Original Message - From: "Paresh Gheewala" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 27, 1999 2:16 AM Subject: Reply: size of file > Hi, > To find the si

Re: MS Access problem

1999-12-27 Thread Chris Pratt
In my opinion, it's easier to just use a PreparedStatement and forget all the escaping. When you use a PreparedStatement, it becomes the JDBC Driver's job to escape the characters that the database doesn't understand, so change your code to con.prepareStatement("insert into table (row1, row2, row

Re: Servlet init() called multiple times - yet not implementing Singl eThreadModel

1999-12-26 Thread Chris Pratt
The two ways I know this can happen are if you implemented SingleThreadModel in your servlet, or if you register the servlet as com.domain.package.MyServlet.class for some reason, having the .class on the end causes some servlet engines to always create a new instance of the servlet. (*Chris*)

Re: browser problem

1999-12-23 Thread Chris Pratt
I think there's a JDBC driver for MySQL, but I'm not positive since I don't use MySQL. You might take a look on their site. (*Chris*) - Original Message - From: "Darko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 23, 1999 3:11 PM Subject: Re: browser problem

Re: browser problem

1999-12-23 Thread Chris Pratt
That's normally a ClassPath problem. Make sure the ClassPath accessible to your Servlet Engine includes the classes.zip or rt.jar file from your JDK or JRE. (*Chris*) - Original Message - From: "Darko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 23, 1999 2:36

Re: Native Threads or Green Threads

1999-12-23 Thread Chris Pratt
Native threads are almost always faster than Green threads.  Plus the IBM JVM is faster and more stable than the BlackDown, check out http://www.volano.com and look at their benchmark section.  It compares many Intel VM's for Speed and Stability.     (*Chris*) - Original Message -

Re: Problem Solved in JDBC connectivity

1999-12-23 Thread Chris Pratt
Thin drivers work find with servlets and are much easier to configure. There has been some talk that the OCI drivers are marginally faster than the Thin drivers, but I haven't been able to confirm it with our product. (*Chris*) - Original Message - From: "Ravi Shanhar Pandian" <[EMAIL

Re: Thanks

1999-12-22 Thread Chris Pratt
Actually if you think about it, that's probably wrong also. The calendar has been changed numerous times over the last two thousand years and so even 2001 won't be exactly 2000 years from year 1. The fact is that this January 1st is being heralded as the "popular" turn of the millennium, just as

Re: Efficient Java coding...

1999-12-21 Thread Chris Pratt
My hunch is that you are trying to access an Oracle database using Java2 with the 8.0.4.0.6 JDBC Drivers (that come with Oracle 8.0.5). Unfortunately those drivers don't support the new security model of Java2. Try downloading the new Oracle 8.1.6 drivers from www.oracle.com, and make sure you get

Re: Request Parameters

1999-12-17 Thread Chris Pratt
Neither or Both. Depends on your point of view. This is not behavior that was specified by the Servlet Specification, that has been fixed in the 2.2 Servlet spec where the returned value should be a concatenation of the query arguments followed by the post parameters. So: When the servle

Re: servlet zones in Apache/JServ

1999-12-16 Thread Chris Pratt
How can you do Sessions at all (let alone Load Balanced, Multi-Server Session) without either Cookies or URL-Rewriting? (*Chris*) - Original Message - From: "Ray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 16, 1999 3:11 PM Subject: Re: servlet zones in Apache

Re: Displaying HTML Source

1999-12-16 Thread Chris Pratt
Have you tried the tag? (*Chris*) - Original Message - From: "Jay Macarty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 16, 1999 11:32 AM Subject: Re: Displaying HTML Source > Setting the content type will not work in this case because I am outputting > some

Re: Servlets & databases a part

1999-12-08 Thread Chris Pratt
Make sure you've set up a System DSN on your NT box and not a User DSN.  This seems to have bitten a number of people on the list.     (*Chris*)   - Original Message - From: Pol Millan To: [EMAIL PROTECTED] Sent: Wednesday, December 08, 1999 1:16 AM Subject: Servl

Re: Connection with oracle

1999-12-08 Thread Chris Pratt
First of all, you should probably use the JDBC drivers that come with Oracle (or download them from www.oracle.com), but if you need to use the JDBC/ODBC Bridge, make sure you use a System DSN and not a User DSN. (*Chris*) - Original Message - From: "Naresh Singh Chhonker" <[EMAIL PRO

Re: 'Thin driver is best for Applet while OCI is best for Servlet'

1999-12-07 Thread Chris Pratt
There has been a raging debate in the list for a while. Through contacts I have at Oracle I have learned that the Thin driver is the preferred driver for all use with Java, but there are those who have heard differently. (*Chris*) - Original Message - From: "Wilson. P" <[EMAIL PROTEC

Re: [Session tracking]

1999-12-05 Thread Chris Pratt
*200 requests per second when absolutely nothing is > happening. > > > >This is not a particularly good design... > > > >> -Original Message- > >> From: A mailing list for discussion about Sun Microsystem's Java Servlet > >> API Tech

Re: [Session tracking]

1999-12-04 Thread Chris Pratt
being off (again, assuming a stable, non-flooded network). (the other way, > even without power failures, is to terminate the browser process directly). > ron. > > -Original Message- > From: Chris Pratt <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED]

Re: [Session tracking]

1999-12-03 Thread Chris Pratt
This still doesn't catch power failures. So, I guess there is really no sure way. (*Chris*) - Original Message - From: "Ted Neward" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 03, 1999 8:14 PM Subject: Re: [Session tracking] > You *can* get guaranteed notific

Re: pop3 servlet problem with Apache and JServ

1999-12-02 Thread Chris Pratt
Sounds like a CLASSPATH problem. If it's more than that, you might try the JavaMail-Interest Mailing List. (*Chris*) - Original Message - From: "G.Betul Akin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 02, 1999 8:26 AM Subject: pop3 servlet problem with Apac

Re: Cookie help

1999-11-29 Thread Chris Pratt
The getDomain method of the Cookie class is supposed to return the domain that this cookie is registered for. Unfortunately the Cookie specification doesn't supply this data when it returns a cookie, only when one is being set. So, this call is really only useful when you're getting ready to set

Re: Need help on Sessions

1999-11-17 Thread Chris Pratt
Try using getValue() (*Chris*) - Original Message - From: Vinay Kulkarni <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 1999 2:03 PM Subject: Need help on Sessions > Hi Guys, > > I know this is a Servlet Forum. But if I can get any help on sessions, it > w

Re: Deprecation of java.util.Date methods

1999-11-16 Thread Chris Pratt
Are you getting deprecation warnings with this code?  It doesn't seem to be using any deprecated methods.     (*Chris*)   - Original Message - From: Tom Kochanowicz To: [EMAIL PROTECTED] Sent: Tuesday, November 16, 1999 11:26 PM Subject: Re: Deprecation of java

Re: multiple copies of servlets running on the same machine

1999-11-16 Thread Chris Pratt
We do the same thing on JWS. Basically static variables are static variables, so there is only one copy of a specified variable (per classloader) in any VM. Since most Servlet Engines use separate ClassLoader's for each Servlet that gets loaded this may work fine, but you'll have to check the im

Re: Oracle JDBC Type 2 OCI Driver for AIX

1999-11-15 Thread Chris Pratt
AM Subject: Re: Oracle JDBC Type 2 OCI Driver for AIX > Using thin driver leads to one applet -to- one Oracle session, which loses > the benefit of connection sharing in using servlet, is that correct? If > not, pls correct me, thx. > > Joe > ----- Original Message - >

Re: JDBC-Oracle connections not disconnecting

1999-11-15 Thread Chris Pratt
connection and therefore not releasing it back > into the > pool, which forces the pool to create new connections as it's available > connections dwindle, which eventually leads to the database refusing > connections? > > slightly confused > > Karl > > Chris Pratt

Re: Oracle JDBC Type 2 OCI Driver for AIX

1999-11-14 Thread Chris Pratt
Why not use the Thin driver, it works anywhere? And is much easier to configure. (*Chris*) - Original Message - From: Joe Lei <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 14, 1999 6:54 PM Subject: Oracle JDBC Type 2 OCI Driver for AIX > Dear wisers > > Pls. sug

Re: MAILServer Access from a servlet;

1999-11-12 Thread Chris Pratt
then sign up for the JavaMail-Interest Mailing List and ask questions, that's what it's there for. (*Chris*) - Original Message - From: Lalith Jayaweera <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 11, 1999 9:46 PM Subject: Re: MAILServer Access from a servlet;

Re: Perl to Java Converter

1999-11-12 Thread Chris Pratt
I haven't heard of any translators, but someone was talking about a Perl compiler that compiled Perl code to Java compatible ByteCode.  Unfortunately, I don't have any idea where to find it.     (*Chris*) - Original Message - From: Dennis To: [EMAIL PROTECTED] Sent: F

Re: Servlet Aliases>

1999-11-12 Thread Chris Pratt
This is really a better question for the JServ-Interest mailing list, but you need to set up an Servlet entry in the Admin applet before you can set up a Servlet Alias. Servlet Aliases point at Servlet Entries, not Servlet Files. (*Chris*) - Original Message - From: Andreas <[EMAIL P

Re: MAILServer Access from a servlet;

1999-11-12 Thread Chris Pratt
Take a look at JavaMail (and the JavaMail-Interest Mailing List) it can do what you ask. (*Chris*) - Original Message - From: Lalith Jayaweera <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 11, 1999 9:50 AM Subject: MAILServer Access from a servlet; > Hi > How

Re: JDBC-Oracle connections not disconnecting

1999-11-12 Thread Chris Pratt
o the > pool, which forces the pool to create new connections as it's available > connections dwindle, which eventually leads to the database refusing > connections? > > slightly confused > > Karl > > Chris Pratt wrote: > > > Make sure you close every Result

  1   2   3   4   5   >