regexp look-ahed pattern problem

Splash Forums PrettyFaces Users regexp look-ahed pattern problem

This topic contains 1 reply, has 1 voice, and was last updated by  m1m 5 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18034

    m1m
    Participant

    I use want this mapping to be executed for every url where name0 != “products”:

    <url-mapping id="page1">
    <pattern value="/#{/(?!products).*/name0}/#{name1}-#{id}/"/>
    <view-id value="/page.html"/>
    </url-mapping>

    but I got

    Error parsing url: </about-us/contact-3/>, a parameter did not match compiled segment in pattern: /#{/(?!products).*/name0}/#{name1}-#{id}/

    I don’t see what’s wrong.

    #21429

    m1m
    Participant

    another problem:

    I have this

    <rewrite match=".*(?!/javax.faces.resource/).*.html" substitute="/"/>

    it’s only rule in pretty-config, when I enter

    http://127.0.0.1/webapp/javax.faces.resource/style.css.html?ln=css

    got redirected to:

    http://127.0.0.1/webapp/?ln=css

    EDIT: SOLVED

    <rewrite match="^(?!.*/javax.faces.resource/).*.html.*$" substitute="/" outbound="false"/>

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.