2 Replies Latest reply on Feb 4, 2007 10:07 PM by Chua Khoon Yong

    Problem using javascript files in Portal

    Bernie Miller Newbie

      I am trying to create a portlet that contains alot of javascript files. When I use the tag with the src attribute set to the path and filename of my javascript file it does not work. JBoss seems to be converting the js files to HTML files. If I put the javascript directly into the .jsp page then it works fine. However, I do not want to do this because I have about 50 javascript files for my portlet.

      I looked at using Portal Themes but this seems cumbersome becasue I have so many js files. Plus the javascript is not for presentation but contains most of our business logic.

      Has anyone else run into this problem? Using the tags seem to work in JBoss regular web apps but NOT in the portal.

      Thanks in advance!