[opencms-dev] modules
Christian Steinert
christian_steinert at web.de
Fri Nov 3 12:48:24 CET 2006
Felix Sprick schrieb:
>
> Hi guys,
>
> I have some questions about modules:
>
> 1. Can I put java classes with any package structure in the
> “classes” directory of my module, or does it have to match the modules
> name?
>
Any class-structure is fine.
>
> I am wondering about that because I cannot access my classes that I
> have put into this classes folder from a JSP site, even after
> restarting the tomcat. How does openCMS solve that anyway? Are the
> classes copied into WEB-INF/classes on the server? Do I have to
> reload/restart every time I update them?
>
The classes are exported to /WEB-INF/classes, as soon as you publish
them. As soon as the classes are there or anywhere else in the classpath
of your web app, they will be found.
You have to restart opencms after that, if you change and publish a
class that had already been in memory.
>
> 2. I have added custom taglibs to the application running on
> openCMS. Does somebody know a neat way to include the taglib.tld into
> openCMS (e.g. something similar to the “classes” folder)?
>
no experience with that - but that sounds like a servlet configuration
question - if i am not mistaken, then you have to add your taglib to the
configuration of the opencms web app and not really to opencms. That
means - it should be a thing between you and the servlet container. The
web.xml of opencms and the TLD file of opencms might be worth a look
>
> I would just like to make the website as portable as possible, without
> needing to copy a lot of classes, tlds, web.xml and stuff to the new
> server.
>
Classes can be distributed with a module.
Probably there is no mechanism for doing that for taglibs :(
christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061103/e69b80f7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061103/e69b80f7/attachment.bin>
More information about the opencms-dev
mailing list