• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

support lower and upper case in web page url

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to support lower and upper case in web page url?
e.g.
http://127.0.0.1:8080/Myapp/displayHw
http://127.0.0.1:8080/Myapp/displayhw
are both supported.

I modified web.xml to:


and Myapp-servlet.xml to

Is there a better way than this?
 
Greenhorn
Posts: 27
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the better way would be to use a URL Rewrite handler, there you can mention a Regex or the specific URLs From and To.

If you are using Apache in front of your Tomcat server, You can achieve this either by having mod_rewrite module configured for you or if the number of URLs are much lesser then you can use mod_proxy module to forward the URLs to correct address.

You can checkout this http://param-techie.blogspot.com/2010/03/setting-up-url-rewrite-module-on-apache.html for more information on how to set up mod_rewrite module for your Apache server.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic