I know this is simple, but I did not know.
I used println in the gsp file and was expecting to print the output in the console. But this is displayed on the page.
<% for(int i =0; i < threads.size();i++) { println i } %>
thanks.
you can use
<% System.out.println i %>
But why use sniplets on a GSP page?
If you want to get console debug output from your GSP, I suggest using this plugin: https://grails.org/plugin/debug
Source: https://habr.com/ru/post/1308110/More articles:Where to store third-party libraries? - .netHow to save a name pool? - javaThere is an error while deserializing an XML document - serializationConverting to an explicit type in C ++ - c ++What are the video formats supported by MPMoviePlayerController on iPad? - iosSQL Server: Views that use SELECT * need to be recreated if the base table changes - sql-serverLimiting the maximum number of concurrent django / apache requests - djangohttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1308113/how-to-force-net4-its-tools-to-use-english-for-exceptions-and-other-messages&usg=ALkJrhgCP4-RihiSPZuIac4GXLPHSfYCvQIs it possible to call the WSDL method just by calling some url from the browser? - wsdlFind ContextMenuStrip height before showing - c #All Articles