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:
>

Reply via email to