• Post Reply Bookmark Topic Watch Topic
  • New Topic

redirect via http post

 
snoofle
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,
i want to redirect an user to an url witch only accepts http posts, has anybody an idea how i can do this within a servlet ?
tia
andreas spiessl
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, you can't since a redirect can only use a URL. You could send a page with a POST form and hidden variables and a button saying click here to go to xxxx
Bill
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or as a slight modification, you can redirect to the second page and make it an 'auto-submitting form'

The advantage here is that although the user has to be sent to an intermediate page, they don't see anything and don't have to do anything.
Dave
 
snoofle
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello William, David
thanks a lot, it works fine
andreas
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats cool David - is that Javascript function widely available? I don't see it in this JS Pocket Reference.
Bill
(whoops, there it is, I should have looked under Form in the first place!)
[ June 28, 2002: Message edited by: William Brogden ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!