Re: [Wicket-user] programmatic access to a wicket site

2007-05-10 Thread Erik van Oosten
Lowell, Yes, it matters a great deal. The class java.net.HttpURLConnection does not give you return codes, it just throws an exception. You need to use something like apache commons HttpClient. Btw, if you can not massage Wicket into doing what you want, you can always add a self-written

Re: [Wicket-user] programmatic access to a wicket site

2007-05-10 Thread Lowell Kirsh
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

Re: [Wicket-user] programmatic access to a wicket site

2007-05-10 Thread Erik van Oosten
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

Re: [Wicket-user] programmatic access to a wicket site

2007-05-10 Thread Lowell Kirsh
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

Re: [Wicket-user] programmatic access to a wicket site

2007-05-10 Thread Frank Bille
Perhaps take a look at: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/pages/InternalErrorPage.java?view=co specially in the configureResponse section. Frank On 5/10/07, Lowell Kirsh [EMAIL PROTECTED] wrote: Strange, it says

Re: [Wicket-user] programmatic access to a wicket site

2007-05-10 Thread Igor Vaynberg
https://issues.apache.org/jira/browse/WICKET-552 -igor On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: One of the requirements of the site that I'm building is that oneof the pages be exposed programatically so that other programs can 'call' it. They would know whether they'd succeeded or

[Wicket-user] programmatic access to a wicket site

2007-05-09 Thread Lowell Kirsh
One of the requirements of the site that I'm building is that oneof the pages be exposed programatically so that other programs can 'call' it. They would know whether they'd succeeded or not by inspecting the http status code returned. Since this is just a regular page of the site, when the call

Re: [Wicket-user] programmatic access to a wicket site

2007-05-09 Thread Jeremy Thomerson
What are they going to use to call it? wget? perl? etc Jeremy Thomerson On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: One of the requirements of the site that I'm building is that oneof the pages be exposed programatically so that other programs can 'call' it. They would know

Re: [Wicket-user] programmatic access to a wicket site

2007-05-09 Thread Lowell Kirsh
I think they will be using a java.net.HttpURLConnection. Does it matter? On 5/9/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: What are they going to use to call it? wget? perl? etc Jeremy Thomerson On 5/9/07, Lowell Kirsh [EMAIL PROTECTED] wrote: One of the requirements of the