我可以在 Struts 2(GAE 应用程序)Url 中传递参数,如下所示:
http://localhost:8888/user/jr
http://localhost:8888/user/jr@jrgalia
但我有一个错误
http://localhost:8888/user/jr@jrgalia.com
如何允许使用点字符传递参数?
下面是struts.xml
....
<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
...
<action name="/user/*" class="LinkAction" method="usersLink">
<param name="userName">{1}</param>
<result>
<param name="location">/index.jsp</param>
<param name="parse">false</param>
<param name="encode">false</param>
</result>
</action>
以下是错误:
HTTP ERROR 404
Problem accessing /user/jr@jrgalia.com. Reason:
NOT_FOUND
Powered by Jetty://