you can try this instead of System.out.print:
PrintWriter out = response.getWriter();
out.print(smt);
More Related Contents:
- how to execute the code by pressing the button? JSP
- How to loop through a HashMap in JSP?
- getOutputStream() has already been called for this response
- How do you store Java objects in HttpSession?
- How to do if-else in Thymeleaf?
- How to get a index value from foreach loop in jstl
- Calling a java method in jsp
- No results returned by the Query error in PostgreSQL
- How to Properly Handle Exceptions in a JSP/Servlet App?
- Multiple submit buttons in the same form calling different Servlets
- How to send an email from jsp/servlet?
- Display Pdf in browser using java servlet
- The ultimate Java version table (J2EE, Java EE, Servlet, JSP, JSTL)
- How to convert HTML to PDF using iText [duplicate]
- Help getting image from Servlet to JSP page [duplicate]
- How can I print error stack trace in JSP page?
- Unable to get Struts2 Hello World to work using Eclipse and Maven
- Get windows username using JAVA or JSP [closed]
- Can I serve JSPs from inside a JAR in lib, or is there a workaround?
- Pass Hidden parameters using response.sendRedirect()
- Concatenate strings in JSF/JSP EL and Javascript [duplicate]
- What is the lifecycle of a HttpServlet?
- JSTL/JSP EL (Expression Language) in a non JSP (standalone) context
- How to map a ResultSet with unknown amount of columns to a List and display it in a HTML table?
- calling java method in javascript [closed]
- Using for loop inside of a JSP
- JSP: EL expression is not evaluated [duplicate]
- javax.servlet.ServletException: bean [name] not found within scope
- Where are the generated JSP class files located?
- Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”