[opencms-dev] opencms integration

Dusty_it i.dastolfo at smart.it
Tue Oct 17 15:19:12 CEST 2006


Another way is to create your own classes and packages and pack them as
opencms modules.
You have to:

1. create a module (from Administration), create at least the lib directory
(opencms should ask for it during module creation) 
2. put your jar inside lib, using the convention
com/yourdomain/yourpackage/yourpackage.yourdomain.com.jar
3. set an export point from your lib/ directory to WEB-INF/lib. This makes
opencms publish your jar inside opencms/WEB-INF/lib directory.
4. Restart opencms instance (via tomcat manager, for example)
5. now you can use your logic developed outside opencms inside any jsp page
in opencms.



Thomas März wrote:
> 
> "Dmitry I. Zubarovsky" <dmitry.zubarovsky at gmail.com> writes:
> 
>> Can you point me on some examples of integration of some "non-cms" logic
>> inside OpenCms
>> Lets say i need page where i want to display logic, not related to
>> content management.
>> Just a form or grid or whatever. What i need to do in this case?
> 
> There are many different ways to accomplish integration.
> This is just an example. Create an JSP in OpenCms, paste
> the following code and adjust the paths.
> 
> | <%
> |
> pageContext.getServletContext().getContext("/jsp-examples").getRequestDispatcher("/num/numguess.jsp").forward(request,
> response);
> | %>
> 
> http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/RequestDispatcher.html
> 
> If you are using Tomcat, take a look at crossContext at
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> 
> 
> Regards,
> Thomas
> 
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/opencms-integration-tf2458835.html#a6854997
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list