I know this is simple thing, but i was not aware.
I used println in gsp file and expected to print output in console. But this is showing on page.
<%
for(int i =0; i < threads.size();i++) {
println i
}
%>
thanks.
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.
You can use
But why use sniplets in a GSP page?
If you want console debug output from your GSP i suggest using this plugin: https://grails.org/plugin/debug