[opencms-dev] Using externals applications to extend functionality in OpenCMS
Alexander Wallace
aw at avatartechnology.com
Tue Aug 2 20:21:43 CEST 2005
In your opencms module, you should upload your jars to the lib folder (of your
module) and publish it... Opencms will take everything in the lib folder of a
module in put it in the WEB-INF/lib folder of the opencms webapp... Depending
on your servlet container/app server you may need to restart it or at least
restart the opencms application...
I'm doing exactly what you describe (i wrote some classes, use hibernate, etc,
using an ide, created jars, and instantiate those clases from jsps...)...
Just impor the classes in the jsps just as you would do with any other..
Hope that helps...
On Tuesday 02 August 2005 12:51 pm, Sebastian Lavena wrote:
> Hi list!
>
> I'm developing in Eclipse serveral packages to give specific functionality
> to my Web Application administrated with OpenCMS.
>
> I have been created a module in opencms, and I included in resources the JAR
> which I exported with Eclipse, including all my packages (I have 5
> packages).
>
> In fact, I include 2 resources in the module: The JAR including all my java
> class, and the JDBC connector to mysql, because my java class use it to
> access to my DB.
>
> My problem is that can´t find any way to make work my jsp that´s the only
> thing I do is instance one of my class doing:
>
> " MyClass instance = new MyClass(); " of course, I import before the package
> where are all my class.... but I suspect that´s maybe I don´t write ok the
> location of my package, because I really I don´t know how to import a
> package that´s is a resource of a module in OpenCMS.
>
> I really estimate if anybody reply to me with any tip, or if someone have
> any example working to send it to me...
>
> Thanks a lot,
>
> Sebastian
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list