• Post Reply Bookmark Topic Watch Topic
  • New Topic

What does 'action' mean in a URL?

 
John Paterson
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I notice there are some URLs that go like this http://..../.../calendar.action.
My question why does the URL end with 'action' instead of a html or jsp? What exactly does 'action' mean.
Hope someone can advise. Thank you.

regards
John
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the Stripes framework (which I can recommend, by the way), uses that by default. There is no specific significance to it, you can generally change that via some setting in the web.xml file. The benefit of using something other than, say, JSP is that you can map the Stripes processor (for example) to "*.action", and it will thus leave alone any direct request for *.jsp pages.

*.html is generally used for static pages which are not being processed by any active server-side component, though - using that for dynamic pages would be confusing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!