I think so - I'm just concerned about the use of instance variables and having multiple users stepping on each other...
Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -----Original Message----- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:47 AM To: Struts Users Mailing List Subject: RE: [OT] Use of Static Methods There is nothing taboo about writing static methods. They are good in solving purpose. But there is an option -- Singleton. That will keep you safe. As there is only 1 object of the class for which you wish to invoke methods. so it's same as calling static methods. (well, syntax is diff ;-) You may change the behaviour of class in NO time if you wish there should be more objects of that class. makes sense? -navjot |-----Original Message----- |From: Jerry Jalenak [mailto:[EMAIL PROTECTED] |Sent: Wednesday, July 09, 2003 8:59 PM |To: '[EMAIL PROTECTED]' |Subject: [OT] Use of Static Methods | | |One of my programmers asked me whether or not it is OK to define helper |methods as 'static' - and I realized that I didn't know the answer. So I |guess the question is, in a web application, can common code be |factored out |to a helper class and marked as 'static'? Are there any major |problems with |doing this? I should know the answer, but just can't put my thumb on it |right now.... 8) | |TIA! | |Jerry Jalenak |Team Lead, Web Publishing |LabOne, Inc. |10101 Renner Blvd. |Lenexa, KS 66219 |(913) 577-1496 | |[EMAIL PROTECTED] | | |This transmission (and any information attached to it) may be |confidential and is intended solely for the use of the individual |or entity to which it is addressed. If you are not the intended |recipient or the person responsible for delivering the |transmission to the intended recipient, be advised that you have |received this transmission in error and that any use, |dissemination, forwarding, printing, or copying of this |information is strictly prohibited. If you have received this |transmission in error, please immediately notify LabOne at the |following email address: [EMAIL PROTECTED] | | | |--------------------------------------------------------------------- |To unsubscribe, e-mail: [EMAIL PROTECTED] |For additional commands, e-mail: [EMAIL PROTECTED] | | --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

