[opencms-dev] combining JSP an JavaScript + [edit: and CSS]

Mick Knutson mickknutson at gmail.com
Mon Feb 5 18:35:23 CET 2007


For me, it is mandatory to mix jsp and css.

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.

xSkins is pretty good...


On 2/4/07, Volkmar Emberger <volkmar.emberger at e-tecture.com> wrote:
>
>  do you think it is very "unconventional" if I mix JSP and CSS?
>
> like different background images on every load of the css?
>
> best regards volkmar
>
>
>
> Scott Carlson schrieb:
>
> 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: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org>] 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
>
>     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
>
>      Guillaume
>
>
> --
>
>
> Mit freundlichen Grüßen
>
> Volkmar Emberger
> Diplomand
>
> e-tecture GmbH
> Hirschstraße 2
> 76133 Karlsruhe
>
> Tel: +49 721 570458-17
> Fax: +49 721 1205468
> volkmar.emberger at e-tecture.com
> www.e-tecture.com
>
> e-tecture GmbH
> Darmstädter Landstraße 112
> 60598 Frankfurt am Main
> Amtsgericht Frankfurt am Main
> HRB 56449
> Gesellschaft mit Sitz in Frankfurt am Main
> Geschäftsführer: Christian Schwab
>
> Diese e-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese e-Mail irrtuemlich
> erhalten
> haben, informieren Sie bitte sofort den Absender und vernichten Sie diese
> e-Mail.
> Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser e-Mail ist
> nicht gestattet.
>
> This e-Mail may contain confidential and/or privileged information. If you
> are not
> the intended recipient (or have received this e-Mail in error) please
> notify the sender
> immediately and destroy this e- Mail. Any unauthorized copying, disclosure
> or
> distribution of the material in this e-Mail is strictly forbidden.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>


-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com
---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070205/5711e7f5/attachment.htm>


More information about the opencms-dev mailing list