Bear Bibeault wrote:
The same method used to put imags into an HTML page must be used with JSP; in other words, an <img> tag, whose src can be a servlet (not a JSP) that streams the image data.
seetharaman venkatasamy wrote:
Use Servlet . dont do this stuff in jsp
java.lang.IllegalStateException
at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:63)
at org.apache.jsp.captcha_jsp._jspService(captcha_jsp.java:192)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.ap
a.When we override init(ServletConfig config) method in our servlet then is it mandatory to call super.init(config) from within it ?
b. If it is mandatory then why my sample servlet ran fine (without giving any error) ?
c. What are the implications of
i. calling super.init(config) from within init(ServletConfig config) method in our servlet
ii. not calling super.init(config) from within init(ServletConfig config) method in our servlet
Give me the fragment from the specs about that.