try this. it should work, since i use it in an app right now that works.

hResponse.setStatus (204);

where hResponse is you response.

airlan.



Aurelio wrote:
>
> I have used SC_NO_CONTENT  and doesn't work. This is my code:
>
> public void doGet(HttpServletRequest req, HttpServletResponse res)
>               throws ServletException, IOException
>   {
>
>     res.setStatus(HttpServletResponse.SC_NO_CONTENT);
>  ....
> }
>
> The servlet finishes its task rigth, but I still receive "Document contains no
> data" in the browser. Why?
>
> Hector Fabio Meza wrote:
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to