I don't understand why I need to modify the buffer and autoflush attributes in JSP, what do they do? What could happen if I do not modify them?
Why do I need to modify buffer and autoflush attributes in a JSP?
4.3k Views Asked by zer0uno At
1
There are 1 best solutions below
Related Questions in JSP
- Why we use double % in Java or JSP
- How to get specific values from select menu and use her in mysql query?
- How to compile an individual jsp file from command line
- How to keep a variable in the URL when using Spring LocaleChangeInterceptor
- How to pass value from input text to jsp variable?
- Importing a downloaded JAR file into a Servlet
- Upload PDF and display on same page
- Use javascript variables in JSP code
- How to add '%' symbol in textbox using jsf and jsp?
- Execute RequestDispatcher after 5 seconds
- Score book using javabean; how do I get overall average?
- Struts2 jqGrid DatePicker in Column Filter
- java.lang.StackOverflowError in spring controller
- Error on java application
- Requested Resource is not available error
Related Questions in PAGE-DIRECTIVES
- Setting Content-Type and Status-Code in JSP
- What's the equivalent of C++'s "#ifdef #endif" macro in JSP?
- Asp.net page crashes other asp pages
- How to use page directive in jsp using netbeans
- isErrorPage="false" is ignored by container
- Is there any performance overhead if I use a lot of <%@ Register directives on markup?
- JSP Page Directive
- How to force execution of value assignment in blocks of type <%=value%>
- can we extend multiple classes in jsp page using export attribute
- ASP.NET @Register vs. @Reference
- Set StyleSheetTheme in @Page directive in ASP.NET
- Converting CodeFile to CodeBehind
- ASP.NET Directive Convention for Declaring Client-Side Includes
- How to Include a HTML file outside my web-application into a JSP inside my application
- Page directive: can't have multiple occurrences of language error on tomcat 4
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Anything generated by the JSP page is stored in a buffer. When the buffer is full, it's sent back to the client (browser). When the buffer is flushed once, redirection or forwarding won't work because all changes to the HTTP response header must occur the first time a buffer is sent to the client. Similarly you cannot add cookies to the response after the first flush.
Said that, you could want to disable autoflushing and/or to increase buffer size to allow your code to add a cookie to the response very lately. However if you need to do so, your code is probably not elegant.
The buffer size also affects performance: see Optimal buffer size for JSP's and autoflush property.