RE: mysql connection with JSP

2005-10-06 Thread Mark Benussi
jdbc:mysql://hostname:3306/database?user=usernamepassword=password However on a design front I would never personally look up a database connection in a JSP. Others may disagree. -Original Message- From: Cengiz Yazgan [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 11:46 To: 'Tomcat

RE: [OT] How much RAM can java use

2005-10-06 Thread Mark Benussi
This was probably one of the best threads I have 'listened' to in ages. I am researching setting up my own Tomcat hosting. This is going to be of use. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 20:48 To: Tomcat Users List Subject: Re: [OT] How

RE: What's better, having one large servlet or many small ones?

2005-09-06 Thread Mark Benussi
Many small ones. -Original Message- From: Raueber Hotzenplotz [mailto:[EMAIL PROTECTED] Sent: 06 September 2005 10:50 To: tomcat-user@jakarta.apache.org Subject: What's better, having one large servlet or many small ones? Hello Should I have one handler with many methods or more

[OT Friday] Parse HTML file to underlying text

2005-09-03 Thread Mark Benussi
I know I missed the Friday deadline but... Has anyone any recommendations for parsing html. I use Lucene and the example has its own HTML parser but I was wondering if anyone has used an existing project or whether there is some built in functionality in an Apache lib to convert pHello

RE: can i use javax.management.timer.Timer?

2005-08-30 Thread Mark Benussi
Am I allowed to ask what it is and how it differs from java.util.Timer? Just like to educate myself from time to time... -Original Message- From: Guy Katz [mailto:[EMAIL PROTECTED] Sent: 30 August 2005 12:12 To: Tomcat Users List Subject: RE: can i use javax.management.timer.Timer? yes

RE: howto configure JAAS+SSO

2005-08-16 Thread Mark Benussi
Hi Edmund. I am sorry but I don't know much about SSO. However I can tell you about JAAS in Tomcat. In 5 certainly there are issues. Essentially when you call the LoginModule to invoke your JAAS config it works but it does not authenticate the proper session Subject. What you end up doing (Or

RE: howto configure JAAS+SSO [Apologies code attached]

2005-08-16 Thread Mark Benussi
1.Filter to go in web.xml /** * [EMAIL PROTECTED] javax.servlet.Filter Filter} to overide the HttpServletRequest and * overide isUserInRole() using the * [EMAIL PROTECTED] com.ibt.framework.security.tomcat.HttpServletRequestWrapper HttpServletRequestWrapper} * * @author Mark Benussi

RE: howto configure JAAS+SSO

2005-08-16 Thread Mark Benussi
:[EMAIL PROTECTED] Sent: 16 August 2005 17:44 To: Tomcat Users List Subject: Re: howto configure JAAS+SSO From: Mark Benussi [EMAIL PROTECTED] However I can tell you about JAAS in Tomcat. In 5 certainly there are issues. Essentially when you call the LoginModule to invoke your JAAS config

Last question on JAAS I promise

2005-08-09 Thread Mark Benussi
OK I got JAAS working with form authentication. That worked a treat (After a bit of head banging). I then moved to invoking the login from Struts (Or a Servlet for Tomcat users who don't use Struts) The code still gets invoked correctly. IBTJAASCallbackHandler callbackHandler = new

My first JAAS implementation. A few questions.

2005-08-08 Thread Mark Benussi
I am implementing my first JAAS implementation and have some problems/questions. Firstly my commit method of my LoginModule does the following (User and Role both implement Principal) // Create a new User Principal with the user name retrieved from the NameCallback User user = new

Placing a LifecycleListener in my server.xml

2005-07-27 Thread Mark Benussi
Anyone have any ideas where on earth I put my class that implements the LifecycleListener (In a jar in my WEB-INF/lib) as I don't seem to have a context in my server.xml. Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener

Re: Placing a LifecycleListener in my server.xml

2005-07-27 Thread Mark Benussi
Message Follows From: Darryl L. Miles [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Placing a LifecycleListener in my server.xml Date: Wed, 27 Jul 2005 11:47:17 +0100 Mark Benussi wrote: Anyone have

RE: Placing a LifecycleListener in my server.xml

2005-07-27 Thread Mark Benussi
Note that a Listener can have any number of additional properties that may be configured from this element. Attribute names are matched to corresponding JavaBean property names using the standard property method naming patterns. Mark Benussi wrote: Thanks Darryl

domain missing from html:rewrite html:link etc

2005-07-24 Thread Mark Benussi
I have recently moved ISPs and my sites are experiencing some strange behaviour. Basically on some of my sites (Not just one) and on some of the links (Not just all) When using html:link (A struts tag library) and the other associated tags (rewrite etc) the domain is missing. This is also seen

Re: robots.txt

2005-07-14 Thread Mark Benussi
With follow = false or something cant remember the exact syntax Original Message Follows From: Tim Funk [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: robots.txt Date: Thu, 14 Jul 2005

[OT] Name On The Net in the UK

2005-07-09 Thread Mark Benussi
to this topic but I will not be answering it, as I don't want to have to type answers to individuals. Regards, Mark Benussi

RE: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Mark Benussi
://www.mycgiserver.com/ -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 08 July 2005 09:45 To: 'Tomcat Users List' Cc: 'Struts Users Mailing List' Subject: [OT] Recommend a UK Tomcat host Apologies for the repost to the Tomcat list but I am getting desperate. Can anyone

[OT] Recommend a UK Tomcat host

2005-07-08 Thread Mark Benussi
Apologies for the repost to the Tomcat list but I am getting desperate. Can anyone recommend a UK based Tomcat hosting solution? I have been let down by my current ISP (nameonthe.net) which has gone out of business. Your help is greatly appreciated. TIA Mark

Re: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Mark Benussi
://www.positive-internet.com/products.html -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 08 July 2005 09:45 To: 'Tomcat Users List' Cc: 'Struts Users Mailing List' Subject: [OT] Recommend a UK Tomcat host Apologies for the repost to the Tomcat list but I am getting desperate

Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Mark Benussi
I am having to change my ISP and was wondering what the main differences were with these two servers. Are Servlet filters supported and more importantly what J2EE does it typically run on? TIA to the legend list that is making my nightmare week a bit better.

RE: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Mark Benussi
?? differences Date: Fri, 8 Jul 2005 12:54:06 +0100 From: Mark Benussi [mailto:[EMAIL PROTECTED] Subject: Tomcat 4.1.37 and 5.0.2?? differences I am having to change my ISP and was wondering what the main differences were with these two servers. http://jakarta.apache.org/tomcat/index.html 5.0.x

Re: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Mark Benussi
, 8 Jul 2005 08:46:57 -0400 From: Peter Crowther [EMAIL PROTECTED] snip/ From: Mark Benussi [mailto:[EMAIL PROTECTED] Subject: Tomcat 4.1.37 and 5.0.2?? differences snap/ Are Servlet filters supported Yes, on both, I believe. Additionally, after the move, you will be able to apply

Re: UK tomcat hosting recommendations?

2005-07-07 Thread Mark Benussi
the couple of time I've needed to use it. julian (no affiliation except as a paying customer, etc, etc) On 7/5/05, Mark Benussi [EMAIL PROTECTED] wrote: Having some fun with my current ISP and was wondering if any of you have UK tomcat recommendations? My technical needs are pretty small

RE: UK tomcat hosting recommendations?

2005-07-07 Thread Mark Benussi
recommendations? I use webhost.ie They are in Ireland I am in the UK but the service is second to none for me. On Thu, 2005-07-07 at 14:25 +, Mark Benussi wrote: Julian, Interesting that you recomend nameonthe.net. They have been down since Tuesday morning and none of my customers who

[OT] UK tomcat hosting recommendations?

2005-07-05 Thread Mark Benussi
Having some fun with my current ISP and was wondering if any of you have UK tomcat recommendations? My technical needs are pretty small; just tomcat 5.0+ installed with mysql 4.0+ etc. My main non-technical requirement is a good UK based support, and any recommendations would be

RE: Version issue in coding

2005-06-23 Thread Mark Benussi
Well without wishing to sound petty Your development environment should replicate you server environment as closely as possible. Understandably you may develop on windows but run on UNIX but anything else such as Tomcat, JVM, and any 3rd party Jars should be of the same version. The problem

Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Mark Benussi
I am submitting a Struts form in my live application but the values seem to be getting lost between my browser and the population of my ActionForm. This only happens if the login page is the first request of the session. If you click around on the site (even once) and then submit the form the

OT Friday - Random sorting

2005-06-03 Thread Mark Benussi
Hello. I am trying to write a comparator that randomly sorts a collection. I have something like this: new Comparator() { /** * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ public int compare(Object object1, Object

RE: OT Friday - Random sorting

2005-06-03 Thread Mark Benussi
Thanks very much -Original Message- From: Rafal Krupinski [mailto:[EMAIL PROTECTED] Sent: 03 June 2005 09:06 To: Tomcat Users List Subject: Re: OT Friday - Random sorting Mark Benussi wrote: Hello. I am trying to write a comparator that randomly sorts a collection. I have something

RE: OT Friday - Random sorting

2005-06-03 Thread Mark Benussi
Even better, thank you! -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Holger Klawitter Sent: 03 June 2005 09:06 To: tomcat-user@jakarta.apache.org Cc: user@excalibur.apache.org Subject: Re: OT Friday - Random sorting Mark Benussi wrote: Hello. I am trying

RE: Client Authentication certificates

2005-05-24 Thread Mark Benussi
certificates Mark Benussi wrote: Can I build a root certificate that is not signed by someone like Verisign or any other trusted root? (This is a cost issue). Yes, but then people have to trust your root certifcate. One of the services Verisign and the other CAs offer (depending on the type

RE: Client Authentication certificates

2005-05-24 Thread Mark Benussi
certificate to their list of trusted certificate authorities. How exactly to do this various from browser to browser (and OS to OS sometimes)... --Tim Mark Benussi wrote: Morning all.. I have a web app and for certain areas of the site I wish to restrict access to a Client

Client Authentication certificates

2005-05-23 Thread Mark Benussi
Morning all.. I have a web app and for certain areas of the site I wish to restrict access to a Client Authentication certificate. I want to generate a root Certificate for my company domain and then sub domains for a variety of customers. Then I wish to be able to generate certificates for

Client Authentication certificates

2005-05-23 Thread Mark Benussi
Did anyone see this message as Remote host said: 554 delivery error: This user doesn't have an account. Can someone please confirm they got it? -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 23 May 2005 10:38 To: tomcat-user@jakarta.apache.org Subject: Client

[OT] JSP custom taglib issue in duplicate environments

2005-05-17 Thread Mark Benussi
I have two environments with the same mysql DB, both running the same war on tomcat 5.0 and I have a problem which I can only think may lie in my JSP taglib and its extra info. Essentially I call a tag three times in the same page, and depending on taglib arguments the tag should display data

Amount of free disk space

2005-05-04 Thread Mark Benussi
I host my sites with a provider who supplied tomcat 5.0 on a UNIX platform. Is there a Java API call I can make to detect how much disk space has been allocated to my account and the current amount used?

RE: Dynamic to static conversion

2005-04-29 Thread Mark Benussi
Hi Dola, A strategy you could employ is the following. All data for your items can be held in a persistence store of some kind (DB, XML). For each product build an XML representation and then use XSLT to convert each item to a html file. Then when requesting to view an item you can build up a

RE: out of memory error

2005-04-26 Thread Mark Benussi
I hit this issue today, for a host of reasons. You are getting this error because the ammount of memory allocated to the JVM running Tomcat has been taken up. This ould be for the following reasons: You are doing some large database reads without using a methodology to read in batches. You are

RE: out of memory error

2005-04-26 Thread Mark Benussi
-user@jakarta.apache.org Subject: RE: out of memory error Date: Tue, 26 Apr 2005 15:42:51 +0100 Or you simply don't have enough memory allocated to the JVM and you need to increase it. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 15:41 To: [EMAIL

RE: [OT] Proper way to open threads in a servlet

2005-04-01 Thread Mark Benussi
I would place your e-mail in a MailManager that queues the messages and sends them out on a TimerTask (Every 10 seconds???). Secondly from a pernickety perspective I would not have a Servlet doing any of what you described. At least place this code a level down in a Manager class that can

RE: caching pattern

2005-03-29 Thread Mark Benussi
If you are caching content, e.g. pages I would recommend using XSL to transform the data into html, or jsp if you need. At startup and then whenever it is changed. For data, implement a persistence pattern (Data extends BaseData class, Persistence extends BasePersistence class). Then for any data

RE: caching pattern

2005-03-29 Thread Mark Benussi
The content or the data? -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: 29 March 2005 15:59 To: tomcat-user@jakarta.apache.org Subject: RE: caching pattern Are there any good examples of this? From: Mark Benussi [EMAIL PROTECTED] Reply-To: Tomcat Users List

RE: caching pattern

2005-03-29 Thread Mark Benussi
: caching pattern data, or as they say in new england datur From: Mark Benussi [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: RE: caching pattern Date: Tue, 29 Mar 2005 16:01:08 +0100 The content or the data

RE: url of caller?

2005-03-22 Thread Mark Benussi
Worth mentioning this as I have been down this path. Symantec Intenet Security products and the like, will remove this header. I actually contemplated writing to Symantec about this only this morning (I think I have too much time on my hands).

RE: How to access web site from other computers

2005-03-08 Thread Mark Benussi
Not wishing to be fussy but you don't have to have a static IP. You can have a dynamic IP and there are various companies that will manage this for free https://www.dyndns.org/ Some routers like my UK BT ADSL modem come with functionality that notifies dyndns as soon as the dynamic IP changes.

RE: realm configuration

2005-03-02 Thread Mark Benussi
Just done this this morning: CREATE VIEW fw_user_roles AS SELECT USERS.USER_NAME AS USER_NAME, ROLES.NAME AS ROLE_NAME FROM fw_users AS USERS, fw_user_role_rltns AS RLTNS , fw_roles AS ROLES WHERE USERS.DATA_KEY = RLTNS.PRIMARY_KEY AND ROLES.DATA_KEY = RLTNS.SECONDARY_KEY ORDER BY USER_NAME,

RE: realm configuration

2005-03-02 Thread Mark Benussi
That sql isn't mysql specific. Should work for you fine. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 02 March 2005 12:33 To: Tomcat Users List Subject: Re: realm configuration I guess (I don't use mysql) -Tim Mark Benussi wrote: Just done this this morning

RE: AW: Getting other Sessions

2005-02-23 Thread Mark Benussi
You need to implement a Session Listener like this. public class SessionHelper implements HttpSessionListener { private static Hashtable sessionsById = null; /** * @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent) */ public void

Re: HTMLArea v. fckeditor

2005-02-17 Thread Mark Benussi
My 2 pence worth is that whilst all these are great, intergating them with existing functionality such as asset manegment (Images, documents etc) is such a pain that it is best to do your own. Original Message Follows From: Oleg [EMAIL PROTECTED] Reply-To: Oleg [EMAIL PROTECTED] To:

RE: 24X7 deployment tips

2005-01-11 Thread Mark Benussi
Hi Sunil, I think they keyword for your scenario is clustering. Running multiple syncronised applications and databases allows you to take down servers during quiet periods and still maintain a service via the other servers whilst they are upgraded one by one. Saying that I have worked on

[OT] RE: 24X7 deployment tips

2005-01-11 Thread Mark Benussi
Ah good old memory leaks, I see more and more messages regarding this although thankfully I have never experienced it myself. The reason this is off topic is that I was wondering if anyone has ever found a way of recovering leaked memory, without restarting the JVM? Original Message

Re: Please recommend a Low Cost Tomcat Hosting platform

2005-01-07 Thread Mark Benussi
] To: Mark Benussi [EMAIL PROTECTED],Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Please recommend a Low Cost Tomcat Hosting platform Date: Fri, 07 Jan 2005 15:36:32 + Review of noname.net I made the mistake of selecting a Shared VM trial thinking I could get way with it but I

RE: [OT]web development fee

2005-01-05 Thread Mark Benussi
What country are you based in? Original Message Follows From: epyonne [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: [OT]web development fee Date: Wed, 5 Jan 2005 06:51:50 -0600 Sorry if this is a little off topic. I have been

RE: Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Mark Benussi
Paul, I use a company called name on the net who work out at £100 a year. They support WAR deployment in a pure sense (my only comment would be they provide a Tomcat 5 container). Support is good, they are a small company and from that point of view you always get a quick response.

Re: Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Mark Benussi
apols www.nameonthe.net Original Message Follows From: Paul Taylor [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Mark Benussi [EMAIL PROTECTED] CC: tomcat-user@jakarta.apache.org Subject: Re: Please recommend a Low Cost Tomcat Hosting platform Date: Tue, 04 Jan 2005 14:49:00 + I

HttpSessionListener Interface - Mail Archive not working so apologies for repost

2004-12-08 Thread Mark Benussi
I am sure this has ben tackled by somebody before. In my web.xml I have web-app id=WebApp display-nameSite/display-name listener listener-classhelpers.SessionHelper/listener-class /listener servlet My SessionHelper class implements

Re: HttpSessionListener Interface - Mail Archive not working soapologies for repost

2004-12-08 Thread Mark Benussi
Sorry what I mean is that the methods implemented for the HttpSessionListener do not get called when I invoke a new session. Original Message Follows From: Ben Souther [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: HttpSessionListener

Re: HttpSessionListener Interface - Mail Archive not workingsoapologies for repost

2004-12-08 Thread Mark Benussi
Hi Ben, I have not extended httpservlet, I don't see why I would have to do this? package helpers; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionHelper implements HttpSessionListener { public void

Re: HttpSessionListener Interface - Mail Archive notworkingsoapologies for repost

2004-12-08 Thread Mark Benussi
to do this? You don't... sorry (was still on first cup of coffeee ;)) You've tried putting println statements in the sessionCreated and sessionDestroyed methods to verify that they're not being called? On Wed, 2004-12-08 at 06:16, Mark Benussi wrote: Hi Ben, I have not extended httpservlet, I

RE: Blank Page when using http://192.168.1.100/

2004-11-30 Thread Mark Benussi
Are you using a router? Original Message Follows From: Ted Anagnost [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Blank Page when using http://192.168.1.100/ Date: Wed, 1 Dec 2004 00:26:51 -0600 http://localhost/ works http://127.0.0.1/

Re: Blank Page when using http://192.168.1.100/

2004-11-30 Thread Mark Benussi
-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Blank Page when using http://192.168.1.100/ Date: Wed, 1 Dec 2004 01:36:47 -0600 Yes - Original Message - From: Mark Benussi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 1:34

Securing directory: httpd vs tomcat configuration

2004-10-25 Thread Mark Benussi
Hi I need to secure two directories with a user name and password prompt. Just one is fine at the moment. I know I can do this using httpd but I was wondering if there was a better solution for Tomcat (5), i.e. by configuring something in the server config or web.xml. If anyone has a solution I

RE: Installing the MySql jdbc driver on XP?

2004-09-23 Thread Mark Benussi
Use mysql connector for your jdbc connections and place the jar in the $CATALINA_HOME/common/lib. In terms of using it in your lightweight code, you will have to describe your development practices... are you using an IDE? -

RE: Installing the MySql jdbc driver on XP?

2004-09-23 Thread Mark Benussi
If your using eclipse just place the mysql connector jar in your projects jar list... there are many examples of using DriverManager... search the web. Sorry I cant be of more help but my code uses connection pooling and you need to find and understand the use of DriverManager in its most basic