Difference between JspWriter and PrintWriter in Java EE?

前端 未结 2 850
囚心锁ツ
囚心锁ツ 2020-12-28 17:35

For all you \"duplicate\" fanatics, there is a similar question on SO right here. The difference is that I paint a vivid example that I can not understand the output of.

2条回答
  •  我在风中等你
    2020-12-28 18:21

    JSPs should use the JspWriter denoted by the “out” implicit object for sending output back to the client. A JspWriter is a buffered version of the PrintWriter. Refer JspWriter API for details. JspWriter also differs from a PrintWriter by throwing java.io.IOException, which a PrintWriter does not.

提交回复
热议问题