[jboss-user] [JBoss Portal] - Re: How can I to include JavaScript files in Portlets to JBo
dvanwest
do-not-reply at jboss.com
Mon Feb 25 11:16:08 EST 2008
One solution:
Include your JavaScript in a file and place in the web root of your project. Lets assume the project has a context root of /MyProject. Then in your JSP, send back the following along with your other output:
| <script type="text/javascript" src="/MyProject/myjavascript.js"></script>
|
Now you should be able to reference your JavaScript code in your portlet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131923#4131923
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131923
More information about the jboss-user
mailing list