[opencms-dev] servlets in opencms!
nickm at absa.co.za
nickm at absa.co.za
Tue Oct 17 09:21:05 CEST 2006
1.
The traditional approach is to write your servlets as Java
Classes
2.
you may keep all the classes in the same package
3.
you compile the classes an put them in a JAR
4.
Most Java IDE's (Eclipse is good and its free) will allow you to
1.
start a Java Project
2.
and add a package to your project
(com.me.for.you.my.package.name)
3.
then you add your Servlet Classes to the project
(MyJavaClass.java)
4.
you build the project (this tests your Java files for
bugs and if none it will compile them into classes
5.
now you export the project as a JAR
5.
Place your JAR in the LIB folder in Tomcat
6.
To access the code in your Servlets you need to add an include
directive you your JSP's
<%@ page import="com.me.for.you.my.package.name.*" %>
or for a specific class
<%@ page import="com.me.for.you.my.package.name.MyJavaClass" %>
I hope this is simple enough to get you going
Regards
Nico
Visit the Ubuntu OpenSource Project for nice OpenCms Templates its an
excellent starter kit for professional web pages
http://www.ptaisp.co.za/ubuntu
________________________________
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Meghana Sathe
Sent: Tuesday, 17 October, 2006 8:44 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] servlets in opencms!
Can anybody tell me how servlets can be deployed in OpenCMS?
The exact steps pls!!!
Thanks,
Meghana
___________________________________________________________
Important Notice:
Authorised Financial Services Provider
Important restrictions, qualifications and disclaimers
("the Disclaimer") apply to this email. To read this click on the
following address or copy into your Internet browser:
http://www.absa.co.za/disclaimer
The Disclaimer forms part of the content of this email in terms of
section 11 of the Electronic Communications and Transactions
Act, 25 of 2002.
If you are unable to access the Disclaimer, send a blank e-mail
to disclaimer at absa.co.za and we will send you a copy of the
Disclaimer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061017/ccc8564e/attachment.htm>
More information about the opencms-dev
mailing list