InvalidFormatException when importing java script on JSP page
Dear ivy team,
I building an JSP page in ivy, use Web Element to load that jsp page
![alt text][1]
Here is content of that page:
![alt text][2]
I try to import two javascript files to page, but got exception:
InvalidFormatException: > didn't match format: <No closing tag found!>
at ch.ivyteam.ivy.scripting.internal.expander.TextTagExpander.getNextToExpand(TextTagExpander.java:147)
at ch.ivyteam.ivy.scripting.internal.expander.TextTagExpander.getNextToExpand(TextTagExpander.java:80)
at ch.ivyteam.ivy.scripting.internal.expander.EmbeddedScriptExpander.expandEmbeddedScripts(EmbeddedScriptExpander.java:81)
at ch.ivyteam.ivy.scripting.internal.expander.EmbeddedScriptExpander.expandEmbeddedScripts(EmbeddedScriptExpander.java:56)
at ch.ivyteam.ivy.macro.internal.MacroExpander.expandMacros(MacroExpander.java:76)
This happen when i import js via script tag with relative resource.
When i change to a external link like
![alt text][3]
Then everything is fine.
My question is:
- What is different between two ways on ivy? does ivy try to read js file then validate it when we using relative path?
You could see full stacktrace at [here][4]
and [index.js][5], [configuration2.js][6]
Thanks and hope you can help.
P/S: when i try with HtmlUserDialog, it's seem to work. but my page is React and need to use JSP.
[1]: https://answers.axonivy.com/upfiles/cob-page-structures.png
[2]: https://answers.axonivy.com/upfiles/cob-page-structures_S8qlK57.png
[3]: https://answers.axonivy.com/upfiles/cob-page-structures_imu9DbS.png
[4]: https://raw.githubusercontent.com/trungdoviet/import-script-exception/master/stracktrace.txt
[5]: https://github.com/trungdoviet/import-script-exception/blob/master/index.js
[6]: https://github.com/trungdoviet/import-script-exception/blob/master/configuration2.js