Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6951511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:13:44+00:00 2026-05-27T14:13:44+00:00

if you defined a url mapping as follows: @URLMapping(id = myPage, pattern = /myPage,

  • 0

if you defined a url mapping as follows:

@URLMapping(id = "myPage", pattern = "/myPage", viewId = "/faces/pages/myPage.xhtml")

if you tried to enter the url as:

http:localhost:8080/myPage

this will work fine, but if you changed the case to:

http:localhost:8080/mypage

or http:localhost:8080/MYPAGE

it won’t work, it won’t find the page, so is there’s a way to ignore the case in the pattern, or such thing is not supported in PrettyFaces yet, if not supported, then please suggest a workaround.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:13:45+00:00Added an answer on May 27, 2026 at 2:13 pm

    Something like this is currently not directly supported with PrettyFaces. But you could achieve something like this with a simple workaround:

    Change your mapping to a completely lowercase URL:

    @URLMapping(id = "myPage", pattern = "/mypage", viewId = "/faces/pages/myPage.xhtml")
    

    And then add a rewrite rule that performs the lowercase transformation:

    <rewrite match="(?i)/mypage" toCase="lowercase" redirect="chain" />
    

    I think this should work fine. You could also try to build a more general pattern so that you don’t have to repeat the rewrite rule for every mapping.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some suggestions. I have defined servlet mapping as <servlet-mapping> <servlet-name>My Servlet</servlet-name> <url-pattern>/</url-pattern>
Using Pretty Faces 3, I have some mappings like these: <url-mapping id=search> <pattern value=/search
Hello I wish I could define two filters like this <filter-mapping> <filter-name>SecurityFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
why defined extension method with UrlHelper don't added in Url. EXTENSIONMETHOD when i want
Is it better to check for a defined constant, check the url, or any
Say in my web.xml file, I define a servlet like so: <url-pattern>/MyURL/*</url-pattern> How do
I have implemented URL mapping in our ASP.NET 4 application, but I have a
Hi this is my folder structure: -Web Pages -WEB-INF -template.xhtml -gebruiker -index.xhtml -index.xhtml and
I know that there is a way to make any defined URL resolve to
Error info: No mapping found for HTTP request with URI [/TestSpringWebApp/hello.htm] Any help would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.