• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Mislead to believe that the page is completed without any errors

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Settings in the jsp:
---------------------
<%@ page autoFlush="true" %>

Background knowledge :
----------------------
If error occured BEFORE the 1 batch of buffered output is flushed, the JSP container will stop processing the current problematic page and redirect to the error page (either the default ugly one or a programmer defined user friendly one).
If error occured AFTER the 1 batch of buffered output is flushed, the JSP container will also stop processing the current problematic page, flush the remaining output in the 2nd (let's assume 2nd) batch of buffered output produced before the error occurred. No redirection.

Problem :
---------
It is fine with me for the 1st case. For the 2nd case, I understand that redirection cannot happen anymore as the HTTP header is already sent to the browser with the 1st batch of buffered output.
What I find misleading/dangerous is that although an error occured, the status bar in IE shows "Done" and the page too, does not have any error message. The browser user had been mislead to believe that the page is completed without any errors.
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai
 
Karan V Praba
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Timothy Toh ,
The status in browser(IE) DONE tells the excution status of browser.For example we can examine that "[B]opening http://hostname/XXX.xx[b]" as status text when we try to access the page.It will not imply the error in the page or in the URL.(Even error in the ERL,it used to show "[b]Done[b]" ).
 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you agree with me that it is misleading ? This is especially so when the incomplete erroneous page (so happen) looks fine to the user.
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!