[opencms-dev] Integrate Servlets into OpenCMS Tutorial?

Joachim Arrasz info at arrasz.de
Fri Jun 27 10:00:02 CEST 2003


Hy Stephan,

ok, now i understand. I thaught there is a way to integrate the servlets
as Servlet into Opencms, like with JSP, but it doesn`t matter. I will do
it with the Servlets normal methods.
Greetings Achim
-- 
/**
* @author Joachim Arrasz
* @mail arrasz at synyx.de
* @url http://www.synyx.de
*/

> Stephan Hartmann>
> Achim,
>
> i assumed that your servlets run besides OpenCms. You know that OpenCms
> is  just a servlet as well mapped to the path /opencms in the context
> /opencms. You have to map other servlets to other paths like
> /helloWorld in  WEB-INF/web.xml.
> The browser would call this with the url
> http://localhost:8080/opencms/helloWorld.
> To include it in a jsp you write: <jsp:include page="/helloWorld"/>
> when the  jsp is in the same context.
>
> If you don't want to bind the servlets to their own path and you want
> to call  them from within OpenCms you may create an instance of the
> servlet on your  own and call its service method?
>
> Bye,
> Stephan
>
>
> Am Freitag, 27. Juni 2003 09:17 schrieben Sie:
>> Hy Stephan,
>>
>> and , i`m not sure, i have to handle the servlets as normal classes,
>> so that OpenCMS CLassloader find them in Classpath of the modules?
>> thanx in advance
>>
>> Achim
>>
>> > Stephan Hartmann>
>> > Hi,
>> >
>> > in JSP:
>> > - RequestDispatcher
>> > - <jsp:include> tag
>> > - <jsp:forward> tag
>> > - jstl's <c:import> tag
>> > - maybe opencms' <cms:include> ?
>> >
>> > But remember: do not use the first four for content handled by
>> > openCms cause  they are not aware of exported resources.
>> >
>> > Bye,
>> > Stephan
>> >
>> > Am Freitag, 27. Juni 2003 08:47 schrieben Sie:
>> >> Hy,
>> >>
>> >> I`m looking forward to integrate lots of small useful servlets for
>> >> webcontent into Opencms. So now i have to integrate the servlets
>> >> into modules. How can i speak with servlets over Opencms Templates
>> >> or JSP`s ? Greetings
>> >>
>> >> Achim
>> >>
>> >>
>> >> _______________________________________________
>> >> 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
>> >
>> > _______________________________________________
>> > 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
>>
>> _______________________________________________
>> 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
> _______________________________________________
> 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