You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andrew Boyko <ab...@fabgear.com> on 2001/01/25 18:12:26 UTC
RE: Post without getting new page? -- RE: Handling refresh in a web based application
> can you just do
> a simple data post to the server from a web browser (form, link,
> or any DOM
> event etc) without causing the browser to expect/display new
> pages from the
> server? For instance, when the state at the client side has
> changed (e.g., the
> user changed the content in a form, notice that no submit button
> is clicked
> yet), I'd like to notify the server the user state has been
> changed but I don't
> need and don't want to get/display any new page from the server.
Just setStatus(HttpServletResponse.SC_NO_CONTENT) in your response;
the browser will cheerfully do nothing.
Andy Boyko aboyko@fabgear.com