I have been seen there is a "default location" for all my actions when debugging using the Struts plugin "config-browser". Something like the below one:
Action information - list*
Action name: list*
Namespace:
Action class: listAction
Action method: {1}
Parameters:
Default location: /mysite/list*.action
I'm wondering what is this "default location" means anything? Can I change it? How can I change it?
BTW: I've changed my struts filter in web.xml to only listen to /test/* and /action/*. I'm not sure why it's still says the "default location" is /mysite/list*.action.
There's no such concept "default location". There's "default action".
If you look at the
ActionMappingclass you see that it has not the location attribute. InsteadServletDispatcherResultandServletRedirectResulthas such parameter. So, using it with mapping can figure out the final location.there's also default namespace and default class concepts that is mentioned when calculating the final location.
Also, the term location could be treated as the path and map to the configuration file where the action is configured.