Is it possible with Resin 3.1 to ignore query parameters in case of a
redirect using the built-in rewrite-dispatch capabilities?
For example requests to "/old.jsp?p1=val1" should be redirected to
"/new.jsp", discarding the query parameters such as "?p1=val1"

I have tried this

  <rewrite-dispatch>
    <redirect regexp="^/old.jsp" target="/new.jsp"/>
  </rewrite-dispatch>

but the query parameter is used in its new location:

---request begin---
GET /old.jsp?p1=val1 HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: localhost:8080
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.0 302 Found
Server: Resin/3.1.9
Location: http://localhost:8080/new.jsp?p1=val1
Content-Type: text/html
Content-Length: 75
Date: Wed, 17 Jun 2009 20:26:23 GMT

---response end---

Any ideas how to remove all query-parameters and just redirect to "/new.jsp"
?


Steffen
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to