For me, it is mandatory to mix jsp and css.<br><br>CSS is for style, and if your backgound is style verse function, then I think you should use CSS. But it sounds like you need to look into skins for this. That way each page can determin a different skin that is defined in CSS.
<br><br>xSkins is pretty good...<br><br><br><div><span class="gmail_quote">On 2/4/07, <b class="gmail_sendername">Volkmar Emberger</b> <<a href="mailto:volkmar.emberger@e-tecture.com">volkmar.emberger@e-tecture.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div 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="http://midFA672C76D9B6C04FB98EA4CFBD2C29E653FF56@newman.optionvue.local" type="cite">
<pre>The key is that the OpenCms type needs to be JSP. The extension in the<br>name can still be "js" (i.e. it need not have a "jsp" extension).<br><br>I do this all the time. In fact, all my normal jsp pages have an
<br>extension of "html" instead of "jsp". OpenCms is nice in the fact that<br>it handles the complexity of using the "wrong" extension for jsp pages<br>behind the scenes.<br><br>Scott<br><br>
-----Original Message-----<br>From: <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">opencms-dev-bounces@opencms.org</a>
[<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mailto:opencms-dev-bounces@opencms.org</a>] On Behalf Of Guillaume Lederrey<br>Sent: Thursday, February 01, 2007 6:25 AM
<br>To: The OpenCms mailing list<br>Subject: Re: [opencms-dev] combining JSP an JavaScript<br><br> </pre>
<blockquote type="cite">
<pre> I thought the cms-tags will be inserted with the information before<br> </pre>
</blockquote>
<pre>the<br> </pre>
<blockquote type="cite">
<pre>script is sended to the client<br> so why is it working with css but not with javascript?<br> </pre>
</blockquote>
<pre> I havent tried it myself but ...<br><br> A ".js" file sould be treated as a simple resource, and should not<br>be interpreted by OpenCms. If you want to have dynamic content inside<br>you .js file, you should declare it as a JSP file. You can than
<br>include "myJavaScript.jsp" in your template and it should work.<br><br> Good luck<br><br> Guillaume<br><br> </pre>
</blockquote>
<br>
<div>-- <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);" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">volkmar.emberger@e-tecture.com</a><br>
<a href="http://www.e-tecture.com" style="color: rgb(160, 20, 20);" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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>
</div>
<br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">
http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>---<br>Thanks,<br>Mick Knutson<br><br><a href="http://www.baselogic.com">http://www.baselogic.com</a><br><a href="http://www.blincmagazine.com">
http://www.blincmagazine.com</a><br><a href="http://www.djmick.com">http://www.djmick.com</a><br><a href="http://www.myspace.com/djmick_dot_com">http://www.myspace.com/djmick_dot_com</a><br><a href="http://www.thumpradio.com">
http://www.thumpradio.com</a><br>---