Re: How to send response without HTML code

2008-06-11 Thread Johan Compagner
See the request targets that set a http status code (cant remember the exact name) On 6/11/08, Milan Křápek [EMAIL PROTECTED] wrote: Hello, I have newbie question. I am working on application that must be able to process two type of request. The users requests (send them some html pages in

How to send response without HTML code

2008-06-11 Thread Milan Křápek
Hello, I have newbie question. I am working on application that must be able to process two type of request. The users requests (send them some html pages in response) and server requests that expect only HTTP/1.0 200 OK or something similar with different return code. In my application I

Re: How to send response without HTML code

2008-06-11 Thread Milan Křápek
Thanks for response but this is not th exact thing I want. I need to know the name of wicket component, where can I get access to request from user and fill the response for him. All I need is some parent class of WebPage. But this object must return just http code without any HTML. (I was not

Re: How to send response without HTML code

2008-06-11 Thread Erik van Oosten
Hi Milan, I think you should throw the exception AbortWithHttpStatusException. If you change your mind and want to set the HTTP status code, but provide content as well, then call something like ((WebResponse)getResponse).getHttpServletResponse().setStatus(HttpServletResponse.SC_...) in the

Re: How to send response without HTML code

2008-06-11 Thread Peter Ertl
I think this is what AbortWithWebErrorCodeException is for Am 11.06.2008 um 13:24 schrieb Erik van Oosten: Hi Milan, I think you should throw the exception AbortWithHttpStatusException. If you change your mind and want to set the HTTP status code, but provide content as well, then call