Here is my problem, I'm using Angular and Require.js with Struts2 and lets say i have the URL
http://localhost:6666/struts-context/action/#/angular-fragment
and a resource in
http://localhost:6666/struts-context/scripts/script.js
,
when i hit the refresh button or F5 on this URL, my "struts-context" get lost, and the server try to find the script on
http://localhost:6666/scripts/script.js
,
is like the URL http://localhost:6666/struts-context/action/#/angular-fragment
is not interpreted by struts.
That is all, thanks for any response.
You can use <s:url>
tag
<s:url action="scripts/script.js" var="jsURL"></s:url>
<script type="text/javascript" src="${jsURL}"></script>