Here\'s my problem:
When I write this in javascript it works
// OK:
alert(\'
Struts Tags, like JSTL, EL, etc... are executed server side. After all of them are executed, the final page with HTML only is rendered to the client. Only then, javascript can run on the page.
You can't mix javascript and Struts tags.
Also, consider not using static method calls, you can probably do this with a call to an action method, performing the same checks that Util.getSomeInformation
method does.