You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eddie Fang <ed...@virtualtourist.com> on 2006/06/07 00:30:40 UTC

get status from http response

Hi,

In order to get the status back from HttpServletResponse, I've tried
overriding servletwebresponse, as well as implementing a
HttpServletResponseWrapper, to no avail.  setStatus() doesn't seem to be
called either way.  Does anyone have an idea how to get the status back
by any chance?

Thanks,

Eddie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: get status from http response

Posted by Shing Hing Man <ma...@yahoo.com>.
Have you tried to  inject a HttpServletReponse into a
Tapestry page .java file with the following?

@InjectObject("service:tapestry.globals.HttpServletResponse")
public abstract HttpServletResponse
getServletResponse();


Shing



--- Eddie Fang <ed...@virtualtourist.com> wrote:

> Hi,
> 
> In order to get the status back from
> HttpServletResponse, I've tried
> overriding servletwebresponse, as well as
> implementing a
> HttpServletResponseWrapper, to no avail. 
> setStatus() doesn't seem to be
> called either way.  Does anyone have an idea how to
> get the status back
> by any chance?
> 
> Thanks,
> 
> Eddie
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
> 
> 

Home page :
  http://uk.geocities.com/matmsh/index.html

Send instant messages to your online friends http://uk.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org