<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
do you think it is very "unconventional" if I mix JSP and CSS?<br>
<br>
like different background images on every load of the css?<br>
<br>
best regards volkmar<br>
<br>
<br>
<br>
Scott Carlson schrieb:
<blockquote
 cite="midFA672C76D9B6C04FB98EA4CFBD2C29E653FF56@newman.optionvue.local"
 type="cite">
  <pre wrap="">The key is that the OpenCms type needs to be JSP. The extension in the
name can still be "js" (i.e. it need not have a "jsp" extension).

I do this all the time. In fact, all my normal jsp pages have an
extension of "html" instead of "jsp". OpenCms is nice in the fact that
it handles the complexity of using the "wrong" extension for jsp pages
behind the scenes.

Scott

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a>
[<a class="moz-txt-link-freetext" href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>] On Behalf Of Guillaume Lederrey
Sent: Thursday, February 01, 2007 6:25 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] combining JSP an JavaScript

  </pre>
  <blockquote type="cite">
    <pre wrap=""> I thought the cms-tags will be inserted with the information before
    </pre>
  </blockquote>
  <pre wrap=""><!---->the
  </pre>
  <blockquote type="cite">
    <pre wrap="">script is sended to the client
 so why is it working with css but not with javascript?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  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

     Guillaume

  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<span
 style="font-family: verdana,tahoma,arial; font-size: 10px; color: rgb(153, 153, 153);"><br>
<br>
Mit freundlichen Grüßen<br>
<br>
Volkmar Emberger<br>
Diplomand<br>
<br>
e-tecture GmbH<br>
Hirschstraße 2<br>
76133 Karlsruhe<br>
<br>
Tel: +49 721 570458-17<br>
Fax: +49 721 1205468<br>
<a href="mailto:volkmar.emberger@e-tecture.com"
 style="color: rgb(160, 20, 20);">volkmar.emberger@e-tecture.com</a><br>
<a href="http://www.e-tecture.com" style="color: rgb(160, 20, 20);">www.e-tecture.com</a><br>
<br>
e-tecture GmbH<br>
Darmstädter Landstraße 112<br>
60598 Frankfurt am Main<br>
Amtsgericht Frankfurt am Main<br>
HRB 56449<br>
Gesellschaft mit Sitz in Frankfurt am Main<br>
Geschäftsführer: Christian Schwab<br>
<br>
Diese e-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen.<br>
Wenn Sie nicht der richtige Adressat sind oder diese e-Mail irrtuemlich
erhalten<br>
haben, informieren Sie bitte sofort den Absender und vernichten Sie
diese e-Mail.
<br>
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser e-Mail
ist nicht gestattet.<br>
<br>
This e-Mail may contain confidential and/or privileged information. If
you are not<br>
the intended recipient (or have received this e-Mail in error) please
notify the sender<br>
immediately and destroy this e- Mail. Any unauthorized copying,
disclosure or<br>
distribution of the material in this e-Mail is strictly forbidden.<br>
</span></div>
</body>
</html>