aspose file tools*
The moose likes Servlets and the fly likes support lower and upper case in web page url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "support lower and upper case in web page url" Watch "support lower and upper case in web page url" New topic
Author

support lower and upper case in web page url

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 249
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?
parampreet sethi
Greenhorn

Joined: Aug 03, 2009
Posts: 27

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.


Param
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: support lower and upper case in web page url