开发者

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

开发者 https://www.devze.com 2023-01-24 21:17 出处:网络
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:

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

精彩评论

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

关注公众号