0

I am my migrating my Struts 1.1 application to Struts 2.1. I know that in struts 1 all action urls have .do eg myLoginAction.do So can Struts 2 also have action with .do extension? If yes what is the correct way to that? Need step by step solution.

Roman C
  • 48,723
  • 33
  • 63
  • 158

1 Answers1

0

You can use struts.action.extension to define acceptable multiple patterns.

The following constant allows actions with the suffixes of "", ".action", or ".do".

<constant name="struts.action.extension" value=",action,do" />
Anupam
  • 7,870
  • 3
  • 42
  • 62