문제

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"?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top