let's put javascript into : MYWARPROJECT/WEB-INF/js/myscript.js
on your jsp :
| <%@taglib
uri="http://java.sun.com/portlet"
prefix="portlet"%>
| <portlet:defineObjects />
|
| <script
src="${renderRequest.contextPath}/js/myscript.js"></script>
|
note for your script, the project IS the war/ear, it cannot see the portal, theme, etc..
A+
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152390#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...