I am trying to create a generic action class, which allows developers to extend it and overwrite the execute method. The structure is something like:
GenericAction extends Action -- resides in a global.jar file which is part of the server classpath
//Contains methods that will be inherited
MyAction extend GenricAction -- resides in a application
//overwrite execute method and some other stuff
A problem occurs when I run MyAction, I receive an error telling me that I cannot load 'Action' class. If I add the
struts libraries to that global.jar file, the error goes away.
There is one problem with this, struts libraries are in two places (global.jar) and in the server classpath. Is there a way to do this and not have the struts libraries in two places?
Thank you,
Mike.