You would need a component controller, which gets executed when a submit is done to a component. A controller is just an external that also has the ability to redirect or do nothing. In this controller you can process the submit and either handle it or redirect or do whatever you need.Take a look at the Login.component, it does just this, one component that displays both login form and already logged in message. You can use request parameters to communicate between controller and externals.
If you have a login component that uses ExternalIfc then it is a 2.2.1 component not a 3.0. In 3.0+ we do not have an external interface or base class.
you can package up your class in a jar then place it in the content_center's lib dir /httpd/webapps/content_center/WEB-INF/lib. you will also need to place it in the runtime /web/WEB-INF/lib