Strange, it says in the javadoc that it can return 404, for example. But it also says it'll throw an exception on a bad connection. Confusing indeed.
On 5/10/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Yeah, weird it is. Perhaps that method only returns something when there > was a result code representing a successful retrieval, so anything in > the 200-299 range. I am positively very sure that non-2XX codes will > trigger an IOException. > > Regards, > Erik. > > > Lowell Kirsh wrote: > > Really? What about the getResponseCode() method? > > > > http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html#getResponseCode() > > > > But I'm sure if you are right about not being able to get it from that > > class, my clients will use the jakarta (or other) client instead. > > > > So the idea of using a POS (plain old servlet ;-) did cross my mind, > > but I was hoping to make my web page serve both purposes so that I > > could minimize the amount of coding I would have to do. Hopefully I > > can actually use the AbortWithWebErrorCodeException to serve this > > purpose. > > > > > > > > -- > Erik van Oosten > http://2007.rubyenrails.nl/ > http://www.day-to-day-stuff.blogspot.com/ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
