Struts 2在Google App Engine中使用点传递参数

时间:2012-05-03 11:07:02

标签: google-app-engine struts2

我可以在Struts 2(GAE app)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://

0 个答案:

没有答案