Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-13488

Improve error reporting for template rendering in ScriptTemplateView

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.2.2
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      ScripTemplateView is rendering in Nashorn ScriptEngine.
      This rendering phase is difficult point for debugging (because in JDK Nashorn class...).
      Server-side rendering (by Nashorn) is originally weak debugging than client-side rendering. (by browser)

      So I hope to some additionally feature and support to debugging.

      For example, compiled HTML often helpful debugging way than static template HTML, when developing mobile screen, or debugging for unusual condition(ex. Device fragmentation problem), logged compiled HTML is used to inspection in native browser (Chrome, etc.)

      Below comment by S├ębastien, I hope to more detailed way.

      Indeed logging and debugging are not that great with Nashorn. That said, debugging is still possible using a browser.
      For logging, there is perhaps a room for improvement on Spring MVC side, since we currently return the Javascript error message, but in the whole Nashorn stacktrace. Maybe just returning the Javascript error message should be enough depending of the log level...

      thanks.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sdeleuze S├ębastien Deleuze
              Reporter:
              chanwook chanwook park
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 30 weeks, 1 day ago