• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

UrlRewrite Rule works on tomcat 4.1.34 but fails on tomcat 5.0.28

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to do the following:
rewrite from
http://localhost:8080/testApp?arg1=abc&arg2=def
to
http://localhost:8080/testApp/index.jsp?arg1=abc&arg=def

So i have the following rule in my urlrewrite.xml (under WEB-INF
directory)
<rule>
<from>^\?(deviceCode=.*)$</from>
<to type="redirect">%{context-path}/index.jsp?$1</to>
</rule>

Everything works in tomcat 4.1.34. But when I deploy the same webapp
in tomcat 5.0.28, url rewrite does not work.
When I enter 'http://localhost:8080/testApp?arg1=abc&arg2=def', it goes
to
http://localhost:8080/testApp/?arg1=abc&arg2=def

Can you please tell me how can I achieve the same thing in Tomcat
5.0.28?

Thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic