Re: importing multiple packages

2001-03-28 Thread William Brogden
Kris Gonzalez wrote: tej... you have to use multiple import items, one for each class or package you're importing such as: %@ page language="java" import="java.util.*" import="java.io.*" % According to the spec, you import multiple items as a comma separated list. %@ page

Re: BookDOMbean class not found

2001-03-28 Thread William Brogden
MingLong Wu wrote: Hi, I got the following error when I type http://localhost:8080/JSPbook/Chap06/BookTopics.jsp Error: 500 Location: /JSPbook/Chap06\BookTopics.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for

Re: Request 2 times received

2001-03-24 Thread William Brogden
Reto Badertscher wrote: When generating and sending a rtf file from a servlet, the browser ask for - display from current location - saving the document When "display from current location" is chosen by the user, the servlet receives a second request (that means the file will be

Re: Checking for timed-out sessions

2001-03-23 Thread William Brogden
A Yang wrote: Hi, Can anyone tell me what the proper convention for checking for invalidated sessions is? Do people really write code checking for whether the session is valid EVERY time they are about to refer to one? And if so, do they just examine the LastAccessedTime and create a

Re: Java Question on Inheritance

2001-03-22 Thread William Brogden
Ryan wrote: Then this is my next problem. I currently have getThumb() returning an Image object. The part where I am stuck at is what to do in the toURL() method. my mock getThumb() method currently looks something like public Image getThumb(){ this.iValue = "/home/thumbs";

Re: PLEASE READ LIST ADMINISTRATORS (original subject was . )

2001-03-21 Thread William Brogden
"Michael G. Anderson" wrote: Scott, I know this is phucked and a lot of work but -- at the bottom -- "Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading." RIE Bullshit - those scumbags just use your reply to

Re: Problem accessing a bean from a jsp page...

2001-03-21 Thread William Brogden
Jason Sardano wrote: I created a jsp page that uses a custom bean. When I try to access the jsp page, I get the error listed below. I don't understand what is going on; my java file compiled correctly, I put the package in my jsp page's WEB-INF\classes directory, yet I receive this error.

Re: Newbie Group

2001-03-20 Thread William Brogden
Arafat Mohamed wrote: There was a discussion a while ago about starting a Tomcat newbie group. Anyone know where that ended up? There is a newbie discussion running at www.javaranch.com - pick the "saloon" option. -- WBB - [EMAIL PROTECTED] Java Cert mock exams

Re: problem with JSP displaying broken image link

2001-03-18 Thread William Brogden
jdh wrote: I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP.

Re: Applets, Servlets, Security issues

2001-03-17 Thread William Brogden
"Caprio, Mike" wrote: Hi folks, I'm hoping someone on the list can point me in the right direction on a problem I'm having with applet to servlet communication. Specifically, I'm getting: java.security.AccessControlException: access denied (java.lang.RuntimePermission

Re: Java Shutdown?? - Help

2001-03-17 Thread William Brogden
Mick Sullivan wrote: Hi all Everytime I load a certain JSP page in my application I get a Java alert box saying: "This program has performed an illegal operation and will be shutdown. If the problem persists, contact the vendor" There is a 'details' button with loads of Machine code

Re: Applet-servlet communication examples

2001-03-15 Thread William Brogden
http://javaranch.com/common.jsp Look for the HTTP, ObjectServlet and Servlets packages. JavaRanch also hosts a servlets discussion board http://www.javaranch.com/cgi-bin/ubb/Ultimate.cgi -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java

Re: JSP, sessions: how to notify bean about the session end?

2001-03-14 Thread William Brogden
"Sergey V. Udaltsov" wrote: Hello all My JSPs uses some session-scoped bean. This bean, among other duties, is responsible for logging in and out of some app server. I would like the bean to perform autologout on the session end. Is it possible? How? AFAIK usual finalize can be called

Re: NullPointerException

2001-03-14 Thread William Brogden
William Au wrote: Thanks for the reply. But I am sure the NullPointerException is coming from within Tomcat. I got them while accessing a static page with no JSP code. So how do I test if pointers with "x.equals(null)"??? The exceptions do not show up when I access the page manually

Re: JSP, beans JRUN and TOMCAT 3.2.1 (embedded JBOSS) HELP

2001-03-13 Thread William Brogden
Joel Cordonnier wrote: Hi! I have to port an application that run on JRUN to embedded JOBSS-TOMCAT3.2.1 in my JSP pages i have the following %@page import="de.hyphony.application.ebtf.viewValue.loginPortlet.IVV_vd_login_input"% jsp:useBean id="view" class="IVV_vd_login_input"

Re: Colombo Java mystery -- the case of the unrecognized Parser jar

2001-03-13 Thread William Brogden
Kemp Randy-W18971 wrote: Here is a Colombo mystery I am wrestling with, called the case of the unrecognized Parser jar. See if you have any insights. 1. On windows 2000, I get this message when running Resin or Tomcat. Error: 500 Internal Servlet Error:

Re: Optimizing Tomcat

2001-03-11 Thread William Brogden
Richard Seymour wrote: Is there anything like a "Ten Things you can do to Optimize Tomcat" document? I've just dropped a web app onto a dual Pentium Pro box and it's running unacceptably slow. I just want to see a list of steps I might take to get the most out of the box. The

Re: Servlets work, JSP pages don't - WHY?

2001-03-11 Thread William Brogden
Peter Adamek wrote: I installed Apache and Jakarta-Tomcat on my Linux box running RH 7. Basically, I created a new context in the document root directory and tried to write my own servlets and jsp pages. Well, servlets work OK, jsp pages don't Internal

Re: problems with conf

2001-03-10 Thread William Brogden
You can not rely on any directory being the default directory. Thats why the API specifies the directories WEB-INF.classes, WEB-INF.lib to be used for class and jar files in web applications. You should study the way the Tomcat examples are organized, especially the web.xml file. You should

Re: Please !!! I seek some documentation about web.xml file

2001-03-08 Thread William Brogden
1) The example web.xml and web.dtd that come with Tomcat 2) The Java servlet API - download from java.sun.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]

Re: threading issues with tomcat

2001-03-06 Thread William Brogden
Byrom Robert-LRB005 wrote: thanks for the help, one further question, if I initialise a Database connection within the init() method of a servlet and use this reference in the doGet() for example, will each servlet share this connection object? ie if more than one servlet requests the

Re: Overriding JspWriter/JspFactory

2001-03-05 Thread William Brogden
Jim Cheesman wrote: Is there anyway to redirect the JSP output (in my case xml, html and wml) to a file? The web.xml that tomcat uses on startup has the servlet org.apache.jasper.runtime.JspServlet controlling the JspFactoryImpl (and JspWriterImpl, PageContextImpl etc.)

Re: Background Threads and JSP

2001-03-04 Thread William Brogden
Ryan Detert wrote: I have a generic public class containing a Vector that implements Runnable. I then have a subclassed singleton that I getInstance() in a jsp page to make sure that the browser clients are all using the same Vector. I want to add an element to the Vector every 4

Re: loading applet from web-inf/classes sunfolder

2001-03-02 Thread William Brogden
"Jost, Dominique" wrote: hi my home-directory on the tomcat server looks like this http://localhost:8080/fundopt. under fundopt i have a folder (called jsp) containing all my jsp files. i want to acces an applet (which has its source files in the web-inf/classes/xy folder) with the

Re: Problem with cache

2001-03-01 Thread William Brogden
matteo belloni wrote: I've a servlet that write on a file. If the Tomcat is running the first time the application rewrite the file, the other time this file is appended but, If I first shutdown the webserver, the information in a file isn't appended and the application function

Re: Problem with cache

2001-03-01 Thread William Brogden
- From: "William Brogden" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 1:52 PM Subject: Re: Problem with cache matteo belloni wrote: I've a servlet that write on a file. If the Tomcat is running the first time the application rewrite t

Re: useing beans.

2001-03-01 Thread William Brogden
Pater Pandoson wrote: Hello My jsp pages work fine but when I try to use beans I get this 2001-03-01 12:10:19 - Ctx( ): Exception in: R( + /test.jsp + null) - javax.servlet.ServletException: try to access class NormalizeText from class _0002ftest_0002ejsptest_jsp_4 at

Re: /servlet

2001-02-28 Thread William Brogden
Josh wrote: I'm beginning to thing no one knows the answer to this question. Can anyone help me? Does anyone currently have their setup as follows? As far as I can tell, tomcat doesn't have a way to just allow a /servlet directory so I can put all my .java, .class, and .jar files in

Re: newbie help

2001-02-27 Thread William Brogden
Number one note for newbies. STOP sending HTML formatted email to the list. Plain text only please. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2

Re: load on start-uo

2001-02-26 Thread William Brogden
Neil Wood wrote: How do I get a servlet to load up on start-up of tomcat. probably easy but I dont know how to? where can i find answers to questions that are similar to this one? Read the documentation, study the Tomcat examples - especially the way web.xml is used, download the

Re: Tomcat3.2.1 with IIS5

2001-02-16 Thread William Brogden
Steve Wong wrote: I have the green arrow in the ISAPI filter in Internet Manager. I can browse http://localhost/examples/jsp/index.html But when I browse http://localhost/examples/servlet/HelloWorldExample It shows: The Page cannot be displayed. There is no error in the isapi.log And

Re: Tomcat

2001-02-16 Thread William Brogden
Julie Ruiz wrote: Hi, Where can I find a configuration manual of Tomcat??? A manual that explain all the directives that we can configure in the server.xml and in the web.xml. Julie Ruiz. Configuring web.xml is covered in detail in the servlets API documentation - download it in

Re: configuring web.xml

2001-02-14 Thread William Brogden
Chahal Damendra wrote: I am trying to run my own servlets that are placed in the appropriate directories (which are sub directories of Web-inf\classes). Can you advise on how to modify the web.xml file and where i can find information regarding the tag definitions Regards Damendra

Re: xsl java extensions won't work in tomcat

2001-02-13 Thread William Brogden
[EMAIL PROTECTED] wrote: hi all, i have an xsl stylesheet that includes calls to a java class of my own devising. when i call this stylesheet via the command line (bypassing tomcat), everything works just swell. However, when the same thing is called from within a jsp page, i get the

Re: tomcat only executes certain beans

2001-02-12 Thread William Brogden
Trish wrote: i have installed tomcat 3.1.1 on SPARC/Solaris 7 platform. everything is working fine except that the application i am trying to run/test gives an error: org.apache.jasper.JasperException: Cannot find any information on property 'UserId' in a bean of type

Re: errorpage.jsp: Can't convert javax.servlet.jsp.JspWriter to java.io.PrintWriter

2001-02-11 Thread William Brogden
Jason Novotny wrote: I've been learning JSP with this great book from manning.com and I've been trying to write an error page. According to the book, I should be able to do the following: %@ page isErrorPage="true"% h1The following error has been detected:/h1 b%= exception %/bbr

HttpSession timeout

2001-02-08 Thread William Brogden
In your web.xml you should find: session-config session-timeout 30 /session-timeout /session-config 30 is timeout in minutes. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and

Re: howto include static content in a JSP file

2001-02-06 Thread William Brogden
[EMAIL PROTECTED] wrote: How do I include a file in a JSP-file? What tag do I use? I'm using Tomcat 3.1. Regards, David I heartily recommend that you obtain the JSP API documentation from java.sun.com - there you will find the answers to many questions. You can also find a handy 2

Re: quick Tomcat question

2001-02-05 Thread William Brogden
R N Mukherjee wrote: SUB: is TOMCAT is a JSP ENGINE + SERVELET ENGINE or ONLY A JSP ENGINE.?? If it is JSP + Servelets then why we have to run JSDK for testing the JSP files.? You should totally remove all traces of JSDK library from your system because the jsdk.jar library

Re: A lot of params equals in web.xml

2001-02-05 Thread William Brogden
Alberto wrote: Hi everyone. I've a question: in my web.xml I have a lot of servlets that use the same set of parameters (same param name, same param value). The value of these parameters could change a lot of time in a month so: there's a way to write only one set of param name / param

Re: What means HTTP 400?

2001-02-05 Thread William Brogden
Rogrio Meneguelli Gatto wrote: Hi, guys, What is a HTTP 400 status/error? I'm seeing a lot of these in my tomcat.log: 2001-02-05 01:27:17 - Ctx( ): 400 R( /) null Look in the Tomcat \webapps\ROOT\docs\api Javadocs for the HttpServletResponse class documentation - there you will

Re: Can't see line numbers in exceptions

2001-02-04 Thread William Brogden
Angus M wrote: When I dump a stack trace the the brower or to the tomcat log I can seem to see the line numbers in the trace. How do I turn this on? build.xml snippet: target name="compile" depends="prepare" javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"

Re: Can't see line numbers in exceptions

2001-02-04 Thread William Brogden
Angus M wrote: William Brogden wrote: Angus M wrote: When I dump a stack trace the the brower or to the tomcat log I can seem to see the line numbers in the trace. How do I turn this on? build.xml snippet: target name="compile" depends="prepare"

Re: newbie writing a logout.jsp

2001-02-03 Thread William Brogden
Don't confuse what happens on the browser with what happens on the server. The cookie value that JSP uses to find the HttpSession object may be lost from the browser when it closes but the servlet engine still has the object in memory. You can explicitly destroy the HttpSession object by

Re: Reserved parameter names?

2001-02-02 Thread William Brogden
Chris Janicki wrote: I've discovered (after some frustration) than certain variable names used in an HTML form won't be passed to my bean via the "jsp:setProperty" tag. For example, using "page" as a name doesn't work. I *can* explicitly set it via:

Re: performance

2001-02-02 Thread William Brogden
There are a lot of design decisions with Java that have a great effect on throughput. I found the following book very enlightening: Java Performance and Scalability vol 1. by Dov Bulka pub by Addison Wesley ISBN 0 201 70429 3 -- WBB - [EMAIL PROTECTED] Java Cert mock exams

Re: error message new help

2001-02-01 Thread William Brogden
Nael Mohammad wrote: Hey Community, you have two people with the same error message, now can we get some suggestions. Thanks Nael [EMAIL PROTECTED] Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at

Re: applet communicating a servlet

2001-01-30 Thread William Brogden
David Treves wrote: Hi, I am looking for a "How to" document about that subject, does anyone know of a good article? thanks, David. The http://javaranch.com/common.jsp collection of methods -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/

Re: Ctx( ): IOException in: R( + /images/dm2.gif + null) socket write error (code=10053)

2001-01-29 Thread William Brogden
Each getImage starts a separate Thread and separate request so it is no wonder you are running into problems. Your applet should use MediaTracker and only do a few Threads at a time. It is also much faster to load a few images and cut them up in the Applet - assuming your big collection comes

Re: a few strange problems

2001-01-28 Thread William Brogden
Thomas Bartels wrote: I recently installed Tomcat 3.2.1 on a RedHat 6.2 Linux System and have come across some strange issues. I am using it solely for the jsp functionality not for servlets. I am running it in conjunction with Apache 1.3.12(to serve static content, images etc.)

Re: Problem in starting tomcat

2001-01-28 Thread William Brogden
Andrew Tan wrote: I installed tomcat on Windows98 When I double click on "startup.bat" it says opening in another window (the window comes on and then disappears). And it seems that tomcat has not started. Do you have similar experience? and is there a solution? Regards, Andrew

Re: POST/GET problems

2001-01-21 Thread William Brogden
David Treves wrote: Hi, I recently downloaded Tomcat 4 (b1) from apache site. After installing it I tried to write a servlet to test it's operation. I keep getting the following message from the server: "HTTP Status 405 - HTTP method GET is not supported by this URL. The

Re: file upload issues

2001-01-20 Thread William Brogden
Mike Tinnes wrote: Hello everyone. I need a jsp which downloads a serverside image to a client and instead of simply displaying the image in the browser, I'd like it to popup a save-as dialog. I've read a few posts on a similar subject, but I can't get anything to work the way I need it

Re: Performance Benchmarks

2001-01-19 Thread William Brogden
Gordon Cooke wrote: I am looking at moving from our current application servers to a new servlet/jsp container and would like to know if anybody out there has done any testing in this area or if you know a site this has published benchmarks (current). Thnaks in advance John Cooke

Re: rmi amd tomcat

2001-01-19 Thread William Brogden
wendy wang wrote: Hi there, Does anyone know how to set up tomcat3.2.1 to run servlet which look up remote object using rmi? Wendy There is nothing special required in the Tomcat setup. A servlet talking to a RMI object is just like an application doing the same. I would suggest that

Re: Tracking Session creation / destruction

2001-01-18 Thread William Brogden
Shahed Ali wrote: Hi, Is there any way a java servlet can keep track (be notified via an event), when ever a new client session is created / destroyed ? Thanks. Just implement HttpSessionBindingListener in an object that is added to all sessions when they are created. You will get a

Re: Finalization of session attribute

2001-01-16 Thread William Brogden
What about the Runtime method runFinalization()? That is supposed to force execution of all GCed objects that have not yet been finalized. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2

Re: WHICH DATABASE FOR TOMCAT??222

2001-01-14 Thread William Brogden
Mary McCarthy wrote: Hi Im trying to do a project using JSP and Java Beans using tomcat as a web server. The project is a fake online car park reservation system. Can someone tell which is the easiest database and database server to implement? Can it be downloaded free from the net? Is

Re: Query regarding applet calling

2001-01-13 Thread William Brogden
Ayyappa wrote: i am calling a applet from a .jsp page in the following manner applet code="crossword.Test" height="200" width="200" /applet i am having the .class file of the applet in a package inside the classes folder in WEB-INF. It says that class Test not found I even tried

Re: getInitParameter

2001-01-12 Thread William Brogden
Luk Smolders wrote: Hi, I'm using the following command in my servlet : value = config.getInitParameter("AddressList"); Can someone tell me how to configure Tomcat to get the value assigned to AddressList. I don't know where I have to put the information (what file ... ?) Thanks,

Re: need help using bean

2001-01-12 Thread William Brogden
Kervin Pierre wrote: Hello, I can't seem to get this to work. The bean compiles OK but when I try to load it, I get a "Error: 500" below saying that my package couldn't be loaded. ... org.apache.jasper.JasperException: Unable to compile class for

Re: Listing of active sessions

2001-01-10 Thread William Brogden
Martin Vlk wrote: Hi there, please do anybody know how to list active HTTP sessions on Tomcat server? What I need to do is to track remaining lifetime for the sessions and to perform custom action on the session when certain time limit is reached. Thanks a lot --vlcak There is no way

Re: Tomcat 3.2.1/Mime type ignored

2001-01-10 Thread William Brogden
Sanjay Madhavan wrote: I am unable to get Tomcat 3.2.1 to recognise any new mime types that I enter into the conf/web.xml file. Tomcat seems to ignore these new mime types and returns the document as a text/plain document. As I understand it, 3.2 does indeed ignore /conf/web.xml

Re: bizarre JasperException on Solaris box

2001-01-09 Thread William Brogden
Jeffry Guttadauro wrote: Hi, Troy. Unfortunately, I don't have a solution for you. But, I am having the same exact problem here on long, complex pages with a configuration of Stronghold Tomcat 3.2 (using mod_jk) on Solaris 2.6. The app has a lot of long, complex pages though, so

Re: method flushBuffer()V not found

2001-01-04 Thread William Brogden
If your system ever had JSDK or other servlet engines installed you may be having interference from earlier servlet library JAR files. A stray copy of jsdk.jar kept me confused for days! Constelix - Web Developers' Community wrote: Hi, when I try any of the examples included in

Re: Memory

2001-01-02 Thread William Brogden
You can set the starting and max memory with command line parameters - see the JDK tooldocs for command line options with Java. Jed Duty wrote: Is there any good way to restrict the amount of memory that tomcat uses? With just a straight compile and starting it up it uses 20 megs of ram.

Re: Alias question

2000-12-30 Thread William Brogden
Pete Ehli wrote: Hello group -- I am trying to access a servlet via an alias. This I thought was done through the web.xml file in my directory webapps\practice\Web-inf\web.xml - practice is of course the name of my web application. I have changed only my web.xml file to run my servlet --

Re: Running a thread from a JSP

2000-12-26 Thread William Brogden
"David M. Holmes" wrote: We have a custom tag that is in every JSP that creates a socket connection to a target server and POSTs some data do a page on the target server that writes the data to a database. The issue we are having is that we don't want to delay the user's response by

Re: Running a thread from a JSP

2000-12-25 Thread William Brogden
"David M. Holmes" wrote: Is there a way to spawn a thread from a JSP that will live after the page goes out of scope? There is nothing magic about a JSP servlet - you can certainly create objects and start Threads that will continue after the response has been sent. -- WBB - [EMAIL

Re: very basic web server hosting question

2000-12-22 Thread William Brogden
Horia Bochis wrote: Thanx, I've got it now, I understood the concept. Well I have to use CGI cause it is a local application and can not keep the memory busy (as I know servlets usew to live there) and I also need a part that needs to move fast. I have to combine them. What I need is

Re: Jsp Class not found

2000-12-22 Thread William Brogden
Mallik Kandula wrote: Hi there. Can anybody help me why the jsp compiler is not finding my bean class in the useBean tag of jsp ? tomcat version 3.1, linux rh 6.2. there is no problem with the system classpath . I also have tools.jar in the classpath and have also expanded

Re: jsp bean error to find class

2000-12-21 Thread William Brogden
yaya wrote: Hi, I tried to connect to mysql database with bean but fail with following error : org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080/_0002fjsp_0002fdataba seselect_0002ejspdatabaseselect_jsp_0.java:64: Class

Re: Error: 500

2000-12-20 Thread William Brogden
Naresh Chhabria wrote: Hi all, I'am getting the following error when accessing this /jsp/Jdbc.jsp Internal Servlet Error: org.apache.jasper.compiler.ParseException: /var/net/services/infoline/doc/jsp/Jdbc.jsp(4,44) Attribute , has no value this jsp has the following code: %@

Re: Deny web-inf access (security problem)

2000-12-19 Thread William Brogden
Paul Gonin wrote: Hi, I have a JSP that uses a bean. It uses the following directory structure : webapps/myapply/myapply.jsp webapps/myapply/web-inf/classes/mybean.class It works fine but I am annoyed that people can download the bean directly and "access" its content

Re: Installation Problem

2000-12-16 Thread William Brogden
Nagendra Kumar wrote: Sir, While opening the startup.bat file i am getting the message 'out of environment space'. How could i overcome this. thanks, Nagendran Due to the large environment parameters that Tomcat sets you need to increase the space Windows reserves. From an

Re: error processing web.xml

2000-12-14 Thread William Brogden
Rogelio Triviño wrote: Hi, everybody: I´m using tomcat 3.2.0 in win2000, and debugging it with Jbuilder 4.0. I´ve found that processing this for my webapp: web-app context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value description The EMAIL

Re: Servlet is not running!

2000-12-14 Thread William Brogden
Probably your problem is that browser is requesting the applet class files from the wrong place. It is using the apparent servlet address. This also interferes with loading images, sounds, etc. Put a base href="urlForTheAppletClassesDirectory" tag in the head .. /head region of the page you are

Re: 3.X and 4.X Information

2000-12-10 Thread William Brogden
http://www.orionserver.com/ has benchmarks for JSP showing Tomcat 3.1 to be spectacularly slower than the Orion and Resin servers. You will also appreciate the benchmarks showning how much faster JSP is than ASP as implemented on Microsoft's IIS Sean wrote: Developers or other users ...

Re: tomcat and internet explorer

2000-12-09 Thread William Brogden
PerseP wrote: Hi, I have just setup tomcat 3.2 on windows 98 and i've just discovered that when running tomcat without apache on I can see the index page of tomcat in Netscape (port 8080) but I can't see anything with Internet Explorer, I just get "Can't display page". Does tomcat

Re: getServletContext return nullpointer-exception

2000-12-07 Thread William Brogden
andreas ebbert wrote: Hi, I am trying to get a servlets context with getServletContext() but all I get is a NullPointerException. Can anybody help me? greetings, Andreas The usual reason for this is a failure to call super.init() in your servlet init method. Assuming your init is:

Re: properties

2000-12-05 Thread William Brogden
andreas ebbert wrote: Hi there, does anybody know where to put property-files for servlets so that tomcat finds them? I tried to place them in the same location as the .class- -file but that didn´t work, any idea´s? regards, andreas If you are going to open a file, you have to

Re: properties

2000-12-05 Thread William Brogden
Jon Skeet wrote: [In web.xml] param-valuec:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds/param-value Surely those backslashes don't need to be escaped, do they? XML doesn't care about \ and I don't believe Java itself does either. If this were a properties file it would be a

Re: Cannot create bean of class

2000-12-03 Thread William Brogden
tony wrote: Hi, all. I created a bean class and put it at "test/WEB-INF/classes/", I call it at a jsp file, the following meg was returned to me. can anybody tell me why?thanks in advance. Error: 500 Location: /test/jsp/testBean.jsp Internal Servlet Error:

Re: default timeout of session object in tomcat

2000-12-01 Thread William Brogden
Joseph Wong wrote: Hi, How to set default timeout of session object in tomcat??? Joseph. It is a parameter in web.xml session-configsession-timeout30,/session-timeout /session-config -- WBB - [EMAIL PROTECTED] Author of Java Developer's Guide to Servlets and JSP ISBN

Re: One user - 2 parallel threads

2000-11-18 Thread William Brogden
Undoubtedly the user clicked twice on the button or link and actually created two requests. Till Gartner wrote: Hi mail list, we encounter the following problem with Tomcat. From time to time a browser request seems to be handled by two threads from tomcat in parallel. Our own log from

Re: aaargh..

2000-11-15 Thread William Brogden
Alexander ten Bruggencate wrote: for the past 3 days i've been trying to get a jsp to work with an ejb of mine. the only problem is that jsp:setProperty / and jsp:getProperty / won't work. tomcat reports: org.apache.jasper.JasperException: Attempted a bean operation on a null

Re: Session Close

2000-11-08 Thread William Brogden
Pablo Trujillo wrote: I need to execute a procedure when a session closes. Is this possible? How it is made? Make a class that is a HttpSessionBindingListener - attach an object of this class to the session. When the session is destroyed your object will get a call to the valueUnbound

Re: Session Close

2000-11-08 Thread William Brogden
[EMAIL PROTECTED] wrote: On Wed, 8 Nov 2000, William Brogden wrote: Pablo Trujillo wrote: I need to execute a procedure when a session closes. Is this possible? How it is made? Make a class that is a HttpSessionBindingListener - attach an object of this class

Re: init being called twice

2000-11-07 Thread William Brogden
David Oxley wrote: Does anyone know why the init method is being called twice. I'm using tomcat3.2b6 with IIS5 on W2K linked with isapi_redirect.dll. I have also seen this with 3.1 with apache 1.3.12 on Solaris 7 linked with mod_jserv.so. I can code around this so that the second time

Re: EXE File/ port #

2000-11-02 Thread William Brogden
Ajayan wrote: I have JWSDK server running in this port and not TOMCAT; like I mentioned earlier, I am not sure whether I successfully installed the TOMCAT or not ... If any of those JWSDK jar files are hanging around on your classpath you will get a lot of very hard to interpret errors

Re: Where to put my own class after combined with apache?

2000-11-02 Thread William Brogden
comman wrote: Here is my problem! org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta-tomcat/work/localhost_8080/_0002fnew_0002fcn_0002fclients_0002fclients_0002ejspclients_jsp_0.java:92: Class n_00025w.cn.clients.Replace not found in type declaration.

Re: Loading applet from a subdirectory of WEB-INF

2000-10-29 Thread William Brogden
Zsolt Koppany wrote: Hi, I try to load an Applet from a sub directory of "cv/WEB-INF/classes/cv/applets". The name of the applet I try to load is "cv.applets.GraphApplet.class". I always get the error 404. Tomcat displays me even the correct absolute path of the applet file that I try

Re: Loading applet from a subdirectory of WEB-INF

2000-10-29 Thread William Brogden
that the bean classes can be found. Any ideas what I could do? Zsolt William Brogden wrote: Zsolt Koppany wrote: Hi, I try to load an Applet from a sub directory of "cv/WEB-INF/classes/cv/applets". The name of the applet I try to load is "cv.applets.GraphA

Re: calling a pre-loaded servlet from html gives Eorror:404

2000-10-27 Thread William Brogden
[EMAIL PROTECTED] wrote: All, I am trying to invoke a preloaded servlet from a .html page with Tomcat 3.1. For some reason I am getting the Error :404 /servlet/MyServlet. Does anyone know why. The servlet is pre-loaded...? Thanks in advance, David. Here is my for tag: FORM

Re: BeanInfo

2000-10-25 Thread William Brogden
Prashant Rao wrote: Hi I am new to Tomcat. I am trying to incorporate my own beans in JSP. However I am unable to access the form variables in the beans though the bean is instantiated on execution of the JSP execution. Going through the archives I found the some articles on including

Re: help with generated servlet and IllegalStateException

2000-10-24 Thread William Brogden
Elisabeth Freeman wrote: Hi, I have noticed that the servlets being generated from my JSPs *always* grap the PrintWriter "out", even if I am not using it in my JSP. This causes serious problems when I want to redirect - I get an IllegalStateException which seems to hang the thread in my