Struts2 .action extension causing CSS, JavaScript and Struts Dojo to break

前端 未结 1 791
闹比i
闹比i 2020-11-27 22:30

We have been running on Struts 2.1.8 for some time and all Struts actions have been working as expected, i.e. href\'s to the Struts actions are rendered with the action name

1条回答
  •  旧巷少年郎
    2020-11-27 22:45

    Try to use struts action exstension with comma like this
    .
    From the struts2 properties file:

    Used by the DefaultActionMapper You may provide a comma separated list, e.g. struts.action.extension=action,jnlp,do The blank extension allows you to match directory listings as well as pure action names without interfering with static resources, which can be specified as an empty string prior to a comma e.g. struts.action.extension=, or struts.action.extension=x,y,z,, struts.action.extension=action,,

    0 讨论(0)
提交回复
热议问题