I’ve done the import
import static java.lang.System.out;
then I tried
out.println( "test");
but all what it does is the same to
System.out.println("test");
Both shows in log but not browser
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While you are in the servlet you must write:
Where
responseis ofServletResponsetype (orHttpServletResponseinheriting from it). If you are trying to call this from a different class, you must either pass the wholeServletResponseorPrinterWriterreturned fromgetWriter()and use it as yououtvariable.Note that:
is equivalent to: