henrylin,
JSP expressions are used to propagate HTML content where script section is for embedded scripts. I do see the code being flagged as multiple errors and reports ‘Expression expected’ error which looks valid. If your code is working fine, then you can ignore the error.
Let us know if you have any further questions.
–Swapna
Genuitec Support