Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21244
| Date | 2013-01-09 09:12 +0000 |
|---|---|
| From | lipska the kat <lipskathekat@yahoo.co.uk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Web browser in java |
| References | <79904e78-2885-4a7f-a3e2-f260ffb6063a@googlegroups.com> <50ecc3a6$0$293$14726298@news.sunsite.dk> |
| Message-ID | <dq-dnQyWMeIBqXDNnZ2dnUVZ7qGdnZ2d@bt.com> (permalink) |
On 09/01/13 01:10, Arne Vajhøj wrote: > On 1/8/2013 7:19 AM, Roma Asnani wrote: >> Want to create a web browser but unable to handle cookies can any one >> help? >> I get some source from this link >> http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JEditorPane.html >> >> but it display a simple browser but has no cookies or session handling. > > I think the right way is to subclass JEditorPane and > override getStream(URL) with a method that uses > Apache HttpClient instead of HttpURLConnection. It depends. If the object of the exercise is to understand the mechanics of cookie handing then 'doing it yourself' is a great learning exercise. If however the object of the exercise is to demonstrate your ability to delegate responsibility then using HttpClient and a rendering engine and some other bits and pieces would probably earn you a good grade. Horses for courses I guess. lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Web browser in java Roma Asnani <romaasnani@gmail.com> - 2013-01-08 04:19 -0800
Re: Web browser in java lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-08 13:10 +0000
Re: Web browser in java Arne Vajhøj <arne@vajhoej.dk> - 2013-01-09 21:31 -0500
Re: Web browser in java lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-10 09:57 +0000
Re: Web browser in java Arne Vajhøj <arne@vajhoej.dk> - 2013-01-08 20:10 -0500
Re: Web browser in java lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-09 09:12 +0000
Re: Web browser in java Arne Vajhøj <arne@vajhoej.dk> - 2013-01-09 21:21 -0500
Re: Web browser in java lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-10 08:46 +0000
Re: Web browser in java Roedy Green <see_website@mindprod.com.invalid> - 2013-01-09 11:20 -0800
csiph-web