Dear ivy team, I building an JSP page in ivy, use Web Element to load that jsp page Here is content of that page: I try to import two javascript files to page, but got exception:
This happen when i import js via script tag with relative resource. When i change to a external link like Then everything is fine. My question is:
You could see full stacktrace at here and index.js, configuration2.js 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. asked 01.11.2018 at 08:10 trungdv
showing 5 of 6
show 1 more comments
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 01.11.2018 at 08:10
Seen: 2,469 times
Last updated: 02.11.2018 at 06:13
One more hint i see in stacktrace is my script it mention:
> didn't match format No closing tag found!
and the script start with <(function () { .
somehow ivy auto add < to starting of script. but missing > at the end so this issue occur
Hi The Script Expander looks for <%=expression%> or <%code%> to replace/execute ivy script code. But you have <%s> which he can not find the end tag '%>'. I think that is the problem.
Where did you put your script file in ivy?
hi @SupportIvyTeam ♦♦
i put this js file on <myproject>/webcontent/resources/js
and load it on JSP page as image on this question.
Hi
An easy workaround would be to replace all '<%' with '< %' in your script.
hi @SupportIvyTeam ♦♦
Thanks for your information, i have removed all <% from my script and somehow it works.
But i think we should enhance this validator because the <% is appear inside the text like
warning$1(false, "<%s /> is using incorrect casing...")
then it would not be an EL expression.
Even when i comment out that line, problem still happen.
Thanks again
Hi @SupportIvyTeam ♦♦ it works when i replace <% to < %