Thanks for reply Joachim, I tried <s:url ...> also it is working fine when used with <a href="<s:url...>"> But if I try to use it in script tag as follows, <script src="<s:url ...>"></script> In the above tag it is not working. Where as <html:rewrite ...> works fine in both the above tags.
Any idea about how can we achive above functionality in struts 2.
Joined: Jan 22, 2008
I did not find anything to achive the above functionality so used <script src="<c:url value='...'/>">