Session Creation with IE

2005-02-15 Thread Mark O'Driscoll
Using 5.0.28 on WIndows 2K. We have three ways of getting at our webapp from the client side: IE Favourites Email link (usually Outlook express) Desktop shortcuts. All clients are running IE6. If the client goes into the app via the browser favourite all is fine. If the first client window is

Stopping creation of sessions

2004-12-03 Thread Mark O'Driscoll
My application uses FOP to create pdf documents on the fly. The xsl description for docn creation includes a directive to load an external object, eg a jpeg file. The spec looks like this fo:external-graphic [EMAIL PROTECTED] scaling=uniform vertical-align=middle width={$width} / So for each

Working directory for tomcat service on W2K

2004-11-25 Thread Mark O'Driscoll
Is there any way to change this, when tomcat runs as a service, from c:\winnt\system32? TIA Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

New session created from same client/different host

2004-11-24 Thread Mark O'Driscoll
If my client (IE6) connects to a single tomcat(5.0.28 Windows2k) using different hostnames (e.g. http://localhost:8080/myapp/test.jsp AND http://127.0.0.1:8080/myapp/test.jsp ) a new session is created for each alias. Is there any way to stop these new sessions being created? TIA Mark

Sessions on restart

2004-11-18 Thread Mark O'Driscoll
Hi, Using 5.0.28 on Windows2000. I have a session listener that implements HttpSessionListener,ServletContextListener,HttpSessionActivationListener,HttpSessionBindingListener and it works fine in that I am notified of the context start, sessions being added destroyed. I am using this to

Re: Sessions on restart

2004-11-18 Thread Mark O'Driscoll
Well, as you can see my listener implements this interface but the activation/ passivation methods are never called :-( I have flagged the class as a listener in m web.xml. Is there anything else I have to do? TIA Mark - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To:

Re: Sessions on restart

2004-11-18 Thread Mark O'Driscoll
methods are called on objects that implement the listener AND are attributes of the session to be activated/passivated. Tomcat works as Yoav described. HTH, Jon Mark O'Driscoll wrote: Well, as you can see my listener implements this interface but the activation/ passivation methods

Re: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Mark O'Driscoll
Use Linux! (Sorry, couldn't resist that one) You can run it as a service? (net start ...) - Original Message - From: RAJESH KANNAN [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 25, 2002 3:31 PM Subject: Starting TOMCAT without opening new DOS promt Hi all, We

SIGINT kills tomcat

2002-09-09 Thread Mark O'Driscoll
On Solaris 8, under bourne shell, tomcat 4.0.3. Run tomcat/bin/startup.sh prints out env. variables starts tomcat Script exits and returns to the shell prompt. All is fine. Tomcat now seems to be running as a background process If I type ^C (SIGINT) at the command prompt (or at a subsequent

Programmatically remove an application?

2002-08-22 Thread Mark O'Driscoll
Is there a way to programmatically remove or stop the installation of a web application? i.e. call a function that does the same as http:/:8080/manager?remove=/app TIA -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Stopping application installation?

2002-08-21 Thread Mark O'Driscoll
I want to stop the installation of an application under certain conditions. I have a servlet that is loaded on startup and I check some things in its init() method. I want to be able to disable the application at this point. Throwing a ServletException in the init() doesn't seem to work.

Precompilation

2002-08-19 Thread Mark O'Driscoll
Hi, I currently recompile all my jsp's using jspc and update the entries in web.xml as created by jspc. This is fine but not quite what I want. One of the problems is that my default welcome page is index.jsp which, of course, is no longer there when the file is precompiled. I have got around

Re: servlet-jdbc-SQL server

2002-08-19 Thread Mark O'Driscoll
MySQL has a last_insert_id() function which you can use on a connection - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 19, 2002 4:38 PM Subject: RE: servlet-jdbc-SQL server With oracle there's a way to specify

re: tomcat stops randomly. why??

2002-08-14 Thread Mark O'Driscoll
I have a similar but different problem. Running 4.0.3 on solaris 8 standalone with jdk 1.4 Occasionally, tomcat dies with no error message in any log file. It is as if someone has kill -9'ed the jvm. Has anyone seen anything like this? People here are getting very wary of tomcat. I need some

Re: forward to TOP-Frame

2002-08-14 Thread Mark O'Driscoll
Is this a game? You are trying to manipulate client side functionality without using the only client side programming feature (javascript) you have. Trying to develop any system with a browser front end without using javascript is a futile exercise. Tell whoever mandated the ban on javascript

How to keep track of sessions

2002-08-14 Thread Mark O'Driscoll
I am trying to keep track of the current sessions that are active in my web application. I have a HttpSessionListener that is correctly called on sessionCreated/sessionDeleted. I keep a reference to each session in the servletContext as a Vector. If tomcat is restarted then the sessions are

Re: How to keep track of sessions

2002-08-14 Thread Mark O'Driscoll
I am using the sessions to keep track of who is logged on, for how long and what they have done. Obviously there are other non servlet ways to do this but as tomcat gives the opportunity to track sessions, I thought I'd use it. Session persistence highlights a 'hole' in the sessionListener

Re: filter

2002-08-14 Thread Mark O'Driscoll
filter-classcom.test.FilterTest/filter-name ^^^ // should be /filter-class Failing that, i'd have to see the error but my guess is that you have the order of things in your web.xml wrong. filter tags should appear after

Re: How to keep track of sessions

2002-08-14 Thread Mark O'Driscoll
This is all very interesting but. The sessions are currently persisted or serialized on tomcat exit, fine. I have a collection of session object references. If I save the references they will be invalid when tomcat starts up. If I save (serialize) the objects then I am duplicating what

Re: Trouble re-deploying a war file through manager

2002-07-25 Thread Mark O'Driscoll
I do something similar but different: 1: remove existing application 2: remove the war AND the unpacked war 3: install the new war from somewhere other than /webapps 4: All works OK - Original Message - From: Erik Mattsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 25,

Re: Is there any way to stop exceptions getting logged to log file?

2002-07-24 Thread Mark O'Driscoll
You're right. It is too late! I don't want to get involved in a programming practice debate BUT.. Too late ... :-) The performance hit from exceptions occur because exceptions are thrown, not in how they are handled. You cannot programatically avoid exceptions with xhaustive

Is there any way to stop exceptions getting logged to log file?

2002-07-23 Thread Mark O'Driscoll
I am using a filter to trap exceptions thrown by jsps/servlets. In normal program operation, lots of these exceptions get thrown. In order to stop 'localhost_log.-MM-DD.txt' getting clogged, I'd like to stop exceptions that are handled by the servlet engine from being logged. Or at least ust

How do I determine the error code

2002-07-17 Thread Mark O'Driscoll
Using the error-pageerror-code directive in my web.xml, I am redirecting errors exceptions to one error page. I know I can query the exception but how do I query the error that may have caused the page to be invoked. e.g. if I call response.sendError(234), how do I tell in CheckError.jsp that

Re: How do I determine the error code

2002-07-17 Thread Mark O'Driscoll
- javax.servlet.error.exception - javax.servlet.error.request_uri -Tim Mark O'Driscoll wrote: Using the error-pageerror-code directive in my web.xml, I am redirecting errors exceptions to one error page. I know I can query the exception but how do I query the error that may have caused the page

Re: Default Servlet Parameters

2002-07-08 Thread Mark O'Driscoll
I have a supplementary question to this. Is there any accepted way to pass parameters to servlets/jsps that may be edited? I can see that init-param context-param do what I want but I need to allow a user to change values of some parameters, save them and the new values would be used

Re: LoadOnStartup woes

2002-07-08 Thread Mark O'Driscoll
99 means that it is the last of the loadonstartups to run, you hope. Get your servlet to create its own thread rather than sleeping the current one and all should be OK - Original Message - From: Cato, Christopher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 08, 2002 3:14

Re: Property Editor

2002-07-05 Thread Mark O'Driscoll
Users List [EMAIL PROTECTED] Sent: Thursday, July 04, 2002 6:59 PM Subject: Re: Property Editor On Thu, 4 Jul 2002, Mark O'Driscoll wrote: Date: Thu, 4 Jul 2002 18:07:35 +0100 From: Mark O'Driscoll [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List

Re: Installation successfull but still problems!

2002-07-04 Thread Mark O'Driscoll
Jasper can't find the entry point for the java compiler. In java1.4 it's in $JAVA_HOME/lib/tools.jar. Have you JAVA_HOME set up? (needed by catalina.sh/bat) - Original Message - From: Gunter D'Hondt [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, July 04,

Property Editor

2002-07-04 Thread Mark O'Driscoll
I need to use jsp:setProperty with a value of a non supported type? I need to register a Property Editor to do this. Any ideas where I might find some info. on configuring specific data types to work with the bean mechanisms for tomcat? TIA - Mark -- To unsubscribe, e-mail:

Redirecting one jsp to another

2002-07-03 Thread Mark O'Driscoll
Can I easily redirect a single JSP to another? Like: servlet-mapping servlet-name/one.jsp/servlet-name url-pattern/two.jsp/url-pattern /servlet-mapping I know this doesn't work ... but what, if any, is the alternative. I really want to call lots of jsps the same name. e.g.