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.

Thanks

yash wardhan
Ranch Hand

Joined: Jan 22, 2008
Posts: 46

posted Sep 19, 2008 05:03:00

0

I did not find anything to achive the above functionality so used <script src="<c:url value='...'/>">