Hy all, there's an article about using reflection in servlets on the javaworld homepage: http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-reflection_p.html Jens Niall Pemberton wrote: > Donnie, > > How about this as an alternative. I have created a subclass of Action called > StandardAction which uses reflection to invoke a method with the same name > as the "actions" path (defined in the struts-config.xml file). So all you > have to do is extend the Standard action and implement methods that > correspond to the paths that use it. > > For example if you define three actions in your struts-config.xml file of > /saveOrder, /editOrder and /deleteOrder that all use a class OrderAction > which extends StandardAction and then create a OrderAction class as shown > below: >
- Minimizing Action class proliferation DONNIE HALE
- Re: Minimizing Action class proliferation Martin Cooper
- RE: Minimizing Action class proliferation Hines, Bill
- RE: Minimizing Action class proliferation DONNIE HALE
- RE: Minimizing Action class proliferation Hardee, Tony
- RE: Minimizing Action class proliferation Dan Cancro
- RE: Minimizing Action class proliferation Niall Pemberton
- Re: Minimizing Action class proliferation Elod Horvath
- RE: Minimizing Action class proliferation Jens Rehpöhler
- RE: Minimizing Action class proliferation DONNIE HALE
- Re: Minimizing Action class proliferation Richard Reich
- RE: Minimizing Action class proliferation Jeff Schnitzer
- RE: Minimizing Action class proliferation DONNIE HALE
- RE: Minimizing Action class proliferation Jeff Schnitzer
- RE: Minimizing Action class proliferation nic.hobbs
- RE: Minimizing Action class proliferation DONNIE HALE
- RE: Minimizing Action class proliferation Cook, Levi
- RE: Minimizing Action class proliferation DONNIE HALE