How To Pass Javascript Variable To Struts2 Property Tag
Here's my problem: When I write this in javascript it works // OK: alert(' '); But when I try to set tha
Solution 1:
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.
Post a Comment for "How To Pass Javascript Variable To Struts2 Property Tag"