• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

URL Redirect

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With out using HttpServletResponse, how would you do a url redirect with java.net.URL or HTTPClient?
Thanks for any help
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iceman:
Welcome to JavaRanch! We know you will enjoy your stay here. However, we have a simple username policy which is fully explained at: http://www.javaranch.com/ubb/Forum10/HTML/000180.html .
Please re-register and come back!
Thanks,
---
Sheriff Tony
PS: I couldn't find the HTTPClient class in Sun's doc.
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This httpClient is in another package from another company it is open source.......
Heres the link great package alot more functionality at the lower level.
http://www.innovation.ch/java/HTTPClient/
------------------
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an aside, you can include or forward other JSPs/Servlets through the RequestDispatcher.
For example ...

Simon
------------------
Simon Brown
Co-author of Professional JSP 2nd Edition
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic