Michael J. wrote the following on 4/16/2005 2:24 PM:
Action class defines getResources(HttpServletRequest) as follows:

protected MessageResources getResources(HttpServletRequest request) {
  return ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY));
 }

I don't see why this method is not static. Hopefully, this will be
refactored.

Hopefully it WON'T be. Why would you want it static? If you wanted to provide your own implementation of ActionForm, I wouldn't want this base class method being static since an instance method in my subclass can't override it (it can only hide it). Statics are usually a bad idea if you plan to use any sort of inheritance.


http://java.sun.com/docs/books/tutorial/java/javaOO/override.html

--
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to