This might be a useless or lame question but please explain me this.
In struts2 when we assign an action to a form button and click on that button, that action is called. Now, when the result of the action file is displayed, the URL in browser shows
localhost:8080/HelloWorld/ClassName.action
Sometimes by default .action
part doesn't show. But both works the same.
I am required to explain to someone what is significance of this .action
. Why is that extension shown in URL and is there some specific thing which enables and disables the .action
in Struts2 URL?