You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Howard Moore <Ho...@Datapulse.com> on 2001/01/25 18:12:14 UTC

RE: Post without getting new page? -- RE: Handling refresh in a w eb b ased application

There is a HttpServletResponse code 204 (SC_NO_CONTENT) that stipulates that
the browser should continue to display the previous document because no new
document is available. This might do what you want.

> -----Original Message-----
> From: GU,JAMES (HP-Corvallis,ex1) [mailto:james_gu@hp.com]
> Sent: 25 January 2001 16:53
> To: 'struts-user@jakarta.apache.org'
> Subject: Post without getting new page? -- RE: Handling 
> refresh in a web
> b ased application
> 
> 
> By saying "the request is ignored", what do you expect to be 
> displayed in the
> browser? I assume you just wnat what page is displayed before 
> the refresh. 
> 
> I have a related question that has been puzzling me for a 
> while: 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.
> 
> -james
> 
<-- snip -->