Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are URL parameters (GET) not resent when you do a response.sendRedirect()?

 
Steffen Hauser
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this right? The URL parameters (GET) are not resent to the new resource?

Example:

http://localhost:80/myapp/myservlet01?param01=helloworld calls my servlet's doGet()-method. There I do a The second call from my browser is then http://localhost:80/myapp/myservlet02, without the ?param01=helloworld parameter.

Is this right? And why is this?



 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course they are not. You are redirecting to a new URL - if you want it to have parameters you have to compose the URL that way.

Redirect causes a whole new request, old request is done.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic