3 Replies Latest reply on Sep 10, 2007 4:53 AM by Advait

    including javascript and css files in jsp

    Advait Newbie

      I am running Jboss portal 2.6. I want to include JS and css files in jsp. So I use:
      String cssPath = renderResponse.encodeURL(renderRequest.getContextPath()+"/WEB-INF/html/my.css");
      String jsPath = renderResponse.encodeURL(renderRequest.getContextPath()+"/WEB-INF/html/my.js");

      this results in

      But the css is not getting downloaded. Any idea? I think the URL i am generating for css file is not correct. My files are in WEB-INF/html directory