Please pardon me if my question sounds very basic. I am working on a project where they’re using struts 1. My supervisor told me that the codes are very messed up. It seems to be that a combination of struts 1 framework and some self created framework are being used.
Is there a way to find out which method is being called when I click a button? I looked at the struts-config.xml file but it didn’t help.
Is there a way to put a breakpoint automatically(dynamically) as soon as I click the button, so I know that this is the class being called?
Any help will be much appreciated.
struts-config file:
<action path="/adddispatches-fsav3-02-01" name="dispatchesForm" scope="request"
type="com.us.web.struts.action.DispatchesNassSimpleSearchAction"
validate="false">
Methods in the class(because the class has over 5000 lines)
DispatchesNassSimpleSearchAction.java





Find out what
Actionclass your class,com.us.web.struts.action.DispatchesNassSimpleSearchActionextends from.If it extends
Actiondirectly, then theexecute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)method is invoked. In your instance, it seems that your class doesn’t extend anyDispatchActionas there isn’t anyparameterattribute defined in your<action />tag in yourstruts-config.xmlfile.