开发者

Is it possible for Seam url rewriting to add prefix to url?

What I need is to add an prefix (such as 'secure') for all urls which requires login, is it possible for Seam url rewriti开发者_JAVA百科ng to do this:

<page view-id="/view/*" login-required="true">
    <rewrite pattern="/{prefix}/{url}" />
</page>

<page view-id="/view/home.xhtml">
    <rewrite url="/home"/>
</page>


I don't think this would work, since it is ambigious view/* matches also view/home . In a similar situation I moved all pages to view/secure and forced login on these view-ids. With an editor which supports global search/replace you can quickly change the references between pages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜