0

I'm looking for the process that strusts decided which is the action name.

the web.xml config file is:

<url-pattern>*.do</url-pattern>

when user request "a.do" in browser, how does struts know the action name is "a" not "a.do"?

Dave Newton
  • 158,873
  • 26
  • 254
  • 302
lovespring
  • 19,051
  • 42
  • 103
  • 153

1 Answers1

1

This has to do with the servlet-mapping configuration

<servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
</servlet-mapping>

Struts Configuration see section 5.4.2

jbh
  • 1,153
  • 2
  • 11
  • 24