RE: Applets in Servlets ---- again

2001-11-14 Thread Shen Shengjun
I think I still didn't get it in Tomcat 3.2.2 although it works if I use the html code the servlet generated directly, that is, save as an html file. Do I have to upgrade to Tomcat 4.0 to use applets in servlets? Thanks! Shen __ Do You Yahoo!?

RE: Why am I getting a Javascript file instead of my servlet ?

2001-11-14 Thread Rajah Kalipatnapu
From my experience you might be facing this problem with Netscape browser. If you try the same with explorer you may not face this problem. This is only one possibility I know. There may be some other reasons which I cannot guess. Ok, lets c if you can access your page through IE( thought IE

RE: Dynamic Email

2001-11-14 Thread Kevin McBrearty
Check out Velocity at apache.org Kevin McBrearty ATG Automation Technologies Group Ltd. __ A computer lets you make mistakes faster than any other invention in human history, with the possible exception of handguns and tequila. - D.W. McArthur -Original

RE: Byte Serving PDF's

2001-11-14 Thread MacDonald, Todd
The PDF's are pre-existing. I need to byte serve them (for page-at-a-time access via the Acrobat Reader plug-in in the client's browser). Currently we have a servlet that reads the file and streams the whole thing back. Some of the PDF's are quite large (13 megs). This means that the user has

RE: Byte Serving PDF's

2001-11-14 Thread Chris Tucker
Is this even possible? From my understanding of the PDF format, it is inherently random-access and relies on the entire file being available before it can be displayed. -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 2:24 PM To:

RE: Tomcat 3.2.3 - Image loading problem

2001-11-14 Thread Marko Sarunac
Larry, The time that image does not load apache says [Wed Nov 14 14:45:32 2001] [error] [client ip.address] File does not exist: /home/user/www/site/images/corner_top.jpg;jsessionid=92s03xnlw1 However the second time around, it comes up and there is no log entry for every images missing i get

Class location

2001-11-14 Thread Mihai Gheorghiu
I have the following structure: /webapps/development/WEB-INF/classes I put together a web page that includes an applet, Search.class. Search.class makes use of Swing and some other graphics classes included in Fields.jar So I created the web page Search.html with HTMLConverter and placed it in

RE: Can't get Tomcat 3.2.3 and IIS to work together

2001-11-14 Thread Rob Griffin
I'll answer my own question now that I have found the answer in case anyone else has this problem. I found that I had inadvertently (stupidly??) added the ISAPI filter in two places in IIS, once on the Default Web Site node and again on the computer node. The duplicate filters interfere

RE: Byte Serving PDF's

2001-11-14 Thread MacDonald, Todd
Yes. It's not only possible, but support for it is built in to most modern web servers. The PDF has to be optimized for byte-serving and the web server has to be capable of byte-serving. So my question remains. Anyone out there done it or know how to configure Tomcat 4 to do it? -T

Netscape 4.7 and Tomcat 4.0.1 SSL

2001-11-14 Thread Brian Lind
I normally use mod_ssl to do SSL, but was testing out SSL with Tomcat 4.0.1 under Linux JDK 1.4beta3 and ran into a strange problem. IE 5.5 accepts the certificate from Tomcat, even though the issued by and issued to fields are blank for some reason, but Netscape spits out the following error:

RE: Dynamic Email

2001-11-14 Thread Timothy Shadel
Thanks for the tip. It looks like the developer's guide at http://jakarta.apache.org/velocity/developer-guide.html#Using%20Velocity%20In%20Servlets is going to give me the most options there. I'd REALLY like to avoid training my group on ANOTHER view mechanism, and I'd like to take custom

Re: Byte Serving PDF's

2001-11-14 Thread David Wall
Is this even possible? From my understanding of the PDF format, it is inherently random-access and relies on the entire file being available before it can be displayed. I don't know how it does it, but I've downloaded PDFs that seem to work page-by-page because when I click down, I can see

RE: Byte Serving PDF's

2001-11-14 Thread Timothy Shadel
I wrote a small servlet that went through PDF's byte by byte sending them to the output stream. It also looked for default values in PDF form fields and replaced them with parameters sent in by the request. Here's a slice of the code, but it's the part that loads the PDF file. The actual

Re: Wrap an HttpServletRequest

2001-11-14 Thread Jeff Kilbride
Hi Diego, You can also do this by adding query string data to the URL you are forwarding to, for example: - String myPage = /path/myPage.jsp; String myForward = myPage + ?newParam1=value1newParam2=value2; RequestDispatcher rd = getServletContext().getRequestDispatcher(myForward);

RE: Byte Serving PDF's

2001-11-14 Thread Chris Tucker
Ok, so now I want to know more. :-) This sounds like a potentially very useful solution to an irritating problem... are there any issues with increased file sizes or anything? As far as byte-by-byte sending of data, it's really easy to write a custom application that runs as a server to do this

Re: Generating .keystore does not work

2001-11-14 Thread Sachin Pandey
Which version of JDK are u using? Sun's JDK comes along with the KeyPairGenerator in the form of sunrsasign.jar in the jre/lib directory. The IBM's jdk doesn't come along with the RSA provider so u have to put the sunrsasign.jar in the jre/lib/ext directory and edit the java.security file to

Re: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Janek Bogucki
--- Tom Drake [EMAIL PROTECTED] wrote: Effectively the process is killed. I think we are saying the same thing. As far as I know, there's no way to receive SIGHUP (or any other Unix signal) in your java code anyway. It is possible to register a shutdown hook which is executed when the

Win32, TC4 and server

2001-11-14 Thread Brett Knights
H, I am trying to run TC4.01 with Apache 1.3.20, mod_jk, and JavaService on WinNT4 SP6a If I run with the -server option TC dies quietly (no logs, nothing written to System.out) after 2 to 6 hours of operation. Running with -hotspot seems stable but is incredibly slow (this is the first time I

Re: Why am I getting a Javascript file request instead of my servlet ?

2001-11-14 Thread James Adams
[EMAIL PROTECTED] wrote: Subject: Why am I getting a Javascript file request instead of my servlet ? Date: Wed, 14 Nov 2001 12:11:49 -0700 From: James Adams [EMAIL PROTECTED] To: [EMAIL PROTECTED] I have a page

Re: Logout with basic autorization

2001-11-14 Thread kevin ritter
Can anyone one verify if this is really the case, that is, to logout with BASIC authentication you have to close the browser window? This seems to be a little goofy. Are there any work arounds? Thank you in advance. Peace Kevin Ritter - Original Message - From: Jonathan Eric Miller

The name of the security certificate is invalid or does not match thename of the site.

2001-11-14 Thread Miao, Franco CAWS:EX
I already let 'CN' field that matches the name of the machine on which are running tomcat when I generated the key with keytool, just wondering why I still get The name of the security certificate is invalid or does not match the name of the site. message ? Anything I should do about server.xml

Re: Logout with basic autorization

2001-11-14 Thread Tom Drake
I think your servlet or jsp can simply call session.invalidate(). - Original Message - From: kevin ritter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 4:41 PM Subject: Re: Logout with basic autorization | Can anyone one verify if this is really the case,

Re: Logout with basic autorization

2001-11-14 Thread kevin ritter
Thanks for responding; however, I'm already calling session.invalidate() as show below: %@ page language=java import=com.jcafeinc.learningCenter.users.* % %@ include file=global-header.jsp % html body background=images/icon-background.jpg bgcolor=00 link=ff vlink=ff alink=ff

JDK 1.4 and Tomcat 4.01 - XML ClassCastException

2001-11-14 Thread David Sanders
Windows 2000 JAVA_HOME=\j2sdk1.4.0-beta3 Tomcat 4.01 bin\startup produces the message below in logs/localhost_log.2001-11-14.txt. * This error does NOT occur when JAVA_HOME is JDK 1.3.1. It only occurs with 1.4. 1.4 includes javax.xml.parsers.DocumentBuilderFactory. How can I avoid this

RE: Byte Serving PDF's

2001-11-14 Thread Craig R. McClanahan
If all it takes is the ability to respond to requests for ranges of a file (which is how I understand PDFs to work), then Tomcat 4's HTTP connector in stand-alone mode knows how to do this already for static files. If you create the content dynamically, then it is up to your application to

Re: Logout with basic autorization

2001-11-14 Thread Craig R. McClanahan
On Wed, 14 Nov 2001, kevin ritter wrote: Date: Wed, 14 Nov 2001 18:41:01 -0600 From: kevin ritter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], kevin ritter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Logout with basic autorization Can anyone one verify

Re: Byte Serving PDF's

2001-11-14 Thread Remy Maucherat
If all it takes is the ability to respond to requests for ranges of a file (which is how I understand PDFs to work), then Tomcat 4's HTTP connector in stand-alone mode knows how to do this already for static files. If you create the content dynamically, then it is up to your application to

Re: Byte Serving PDF's

2001-11-14 Thread Kar YEOW
I believe PDF will show the pages downloaded so far without having the users wait for the entire file. Have a look at the prospectous on this site www.funtastics.com.au the PDF file seems to behave like that. Hope this help. Kar - Original Message - From: MacDonald, Todd [EMAIL

Duplicate Class Names in JSP Question

2001-11-14 Thread Thomas Burns
I have the following code in one of my .jsp files. %@ page import=com.redsoft.ems.beans.app.User % %@ page import=com.redsoft.ems.tags.app.User % It causes the errors listed below. Interestingly, if I comment out either page directive, I don't get the error. I also verified through testing

Tomcat 4 Upgrade Assistance?? - Tomcat 3.3 app does not startup under Tomcat 4.0

2001-11-14 Thread Greg Callaghan
Hi, I've got Tomcat 4 up and running fine with the example apps. A separate application I have however, which runs fine under Tomcat v3.3, is having troubles starting up under Tomcat v4. Are there any upgrading to Tomcat 4 (from Tomcat 3.3) guidelines which exist which one needs to follow?

RE: Tomcat 4 Upgrade Assistance?? - Tomcat 3.3 app does not startup under Tomcat 4.0

2001-11-14 Thread Brett Porter
this is due to the fact that the servlet 2.3 spec enforces the order of elements in web.xml. Make sure they appear in the order given by the error and it should be fine. Cheers, Brett -Original Message- From: Greg Callaghan [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 November 2001

Re: Duplicate Class Names in JSP Question

2001-11-14 Thread Craig R. McClanahan
The generated Java class for your JSP page is required to be legal Java code -- and it's not legal to import both of these names in the same source file. Therefore, your program is in error. Craig On Wed, 14 Nov 2001, Thomas Burns wrote: Date: Wed, 14 Nov 2001 21:36:21 -0600 From: Thomas

Fw: Duplicate Class Names in JSP Question

2001-11-14 Thread Thomas Burns
Incidentially, using the following works fine as well... %@ page import=com.redsoft.ems.beans.app.* % %@ page import=com.redsoft.ems.tags.app.* % - Original Message - From: Thomas Burns To: Tomcat Users List Sent: Wednesday, November 14, 2001 9:36 PM Subject: Duplicate Class Names in

Tomcat to read cookies on session start?

2001-11-14 Thread Jeremy Pierson
I need to create a new object and load it into the session attributes whenever a new session is created. To make this more interesting, this object needs to check for information stored in a cookie sent by the browser (stored from a prior visit) and fetch any related information from a

RE: Tomcat to read cookies on session start?

2001-11-14 Thread Deacon Marcus
Hi, -Original Message- From: Jeremy Pierson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:52 AM To: [EMAIL PROTECTED] Subject: Tomcat to read cookies on session start? I need to create a new object and load it into the session attributes whenever a new session

Authentication Filter

2001-11-14 Thread Pritpal Dhaliwal
Is there an authentication filter that could be used with Servlet Spec 2.3. Does tomcat 4 come with one that could be used? Thanks in Advance, Pritpal Dhaliwal -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL

Servlet Mapping...:(

2001-11-14 Thread BacardiWasabi
time for a silly question... file - web.xml servlet servlet-nameTestAction/servlet-name servlet-classActionServlet/servlet-class /servlet servlet-mapping servlet-nameTestAction/servlet-name url-pattern/TestAction/url-pattern

Precompile JSP

2001-11-14 Thread KL OOI
Hi all, Do anyone here know how to compile all the JSP pages before I roll out for production?? Thanks.. Regards, KL OOI

Re: Precompile JSP

2001-11-14 Thread KL OOI
Can I compile it first? - Original Message - From: Lars Nielsen Lind [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; KL OOI [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 3:31 PM Subject: Re: Precompile JSP The first time you use the page with the web server the page

Re: Servlet Mapping...:(

2001-11-14 Thread Pritpal Dhaliwal
You were lucky in the first one, second one, luck wasn't there. - Original Message - From: BacardiWasabi [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 11:02 PM Subject: Servlet Mapping...:( time for a silly question... file - web.xml

Re: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Nikola Milutinovic
Every well written daemon and server process SHOULD do that (among other things). But you need to remember that you are not running Tomcat, you are running Java - that's a big difference. And it limits what is possible. Good point. Every well written daemon will do the

Re: STARTUP.SH DOESN'T WORKS FINE

2001-11-14 Thread Nikola Milutinovic
| Tom Drake wrote: | | This has nothing to do with tomcat. It is standard unix behavior. | When a user logs out, all processes created by that user are killed. | | | No, when a user logs out all processes that are children to that shell instance | are sent a HUP signal (Hang

AW: Java and double

2001-11-14 Thread Ralph Einfeldt
That changes nothing. If the left side of an assignment is double, all numbers to the right are automagically double. Such helpers are just needed if the left side has a lower precision than double (float, int, short, byte) The only ways to get more precise results: - use BigDecimal. -

Re: Logout with basic autorization

2001-11-14 Thread Fredrik Westermarck
kevin ritter wrote: Can anyone one verify if this is really the case, that is, to logout with BASIC authentication you have to close the browser window? This seems to be a little goofy. Are there any work arounds? The troubles of revoking user credentials when using HTTP-authentication is

<    1   2