[opencms-dev] combining JSP an JavaScript

Guillaume Lederrey guillaume.lederrey at gmail.com
Thu Feb 1 13:24:36 CET 2007

>  I thought the cms-tags will be inserted with the information before the
> script is sended to the client
>  so why is it working with css but not with javascript?

  I havent tried it myself but ...

  A ".js" file sould be treated as a simple resource, and should not
be interpreted by OpenCms. If you want to have dynamic content inside
you .js file, you should declare it as a JSP file. You can than
include "myJavaScript.jsp" in your template and it should  work.

   Good luck


Jabber : gehel at amessage.ch
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

More information about the opencms-dev mailing list