Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic