[opencms-dev] New admin view and own classes...

John Punshon john.punshon at gmail.com
Fri Mar 18 23:35:35 CET 2005


Dimitri,

Nice work !  I am impressed.

It should work if you put your classes in classes/com/yourdomain/watever.

Did you make sure to publish the project ?  It is during the
publication stage that opencms writes the files into the correct
directories in the opencms webapp.

For my module (on the old admin) I put my own .jar into the lib.

But you need to publish it, then restart tomcat to pick it up.

John


On Fri, 18 Mar 2005 23:16:55 +0100, Dimitri Frederickx
<dimitri.frederickx at groept.be> wrote:
>  
>  
> 
> I have successfully created a new module, and in the additionalparameters I
> have added /system/workplace/admin/myfirstview. That way my view for the new
> admin will belong to my module. Then I added a default page (index.html)
> with my own text in it. When I reinitialize the workplace, my new item is
> show and everything is displayed correctly. 
> 
>   
> 
> But now I want to use my own classes in that page that I just created
> (index.html is a jsp page). I place my class file in the classes directory
> of my module, but it throws me a classnotfound exception. Where do I have to
> put my classes if I want to use them in the admin page? Do I have to put
> them in a jar en place them under the lib folder of the opencms WEB-INF
> directory? Of must it be possible to put them in the classes of my module?
> Does anyone has tried this before? 
> 
>   
> 
> Regards, 
> 
> Dimitri 
> 
> 
> _______________________________________________
> 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