[jboss-user] [JBoss Portal] - Re: Including a javascript in a portlet

je.a.le do-not-reply at jboss.com
Wed May 21 11:26:59 EDT 2008


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#4152390

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152390



More information about the jboss-user mailing list