473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Calling Cocoon in Servlet/JSP

Hi All..
Currently in our application, we are using Serlvet as Controller,Jsp
to View,BusinessLogic in EJB. We planned to implement Cocoon frame
work in our existing application.

Is this Possible..?

I already worked on sample xml,xslt,but i need an example where
servlet or JSP would call Cocoon application to display it in the
browser.

If so tell me where i can get a sample code.

Thanks in Advance

Jawahar
Jul 20 '05 #1
1 2036
On Tue, 23 Sep 2003 03:14:59 -0700, Jawahar wrote:
Hi All..
Currently in our application, we are using Serlvet as Controller,Jsp
to View,BusinessLogic in EJB. We planned to implement Cocoon frame
work in our existing application.

Is this Possible..?
Yes

I already worked on sample xml,xslt,but i need an example where
servlet or JSP would call Cocoon application to display it in the
browser.

If so tell me where i can get a sample code.

Thanks in Advance

Jawahar


You can build a pipeline in cocoon, where cocoon fetch the content from
your JSP and transform with your stylesheets and send the output to the
browser.

simple pipeline in your sitemap.xmap (inside <map:pipelines>)

<map:pipeline>
<map:match pattern="newJSPView.html">
<!-- cocoon calls your JSP -->
<map:generate src="http://localhost/yourOld.jsp"/>
<map:transform src="yourStylesheet.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>

If cocoon is running a servlet and your JSP and servlet too, you can test
with your browser http://localhost:8080/cocoon/newJSPView.html.

You can find many examples and hints on the cocoon-homepage
http://cocoon.apache.org/2.1/ or on the cocoon-wiki
http://wiki.cocoondev.org/ .

You can also look on the mailing-list-archives.

hope that helps,

Simon

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Adam | last post by:
Hi! I'm trying to do a login form in cocoon. Login data are taken from MySQL, but before the data are checked cocoon throws such an error: org.apache.cocoon.ResourceNotFoundException: Resource...
6
by: Jeremy | last post by:
My requirements are very simple: When a user browses to an XML document, the server should parse the document, apply its stylesheet, and spit the HTML at the client. Apache Cocoon is a slow,...
0
by: wai | last post by:
hi all, i running cocoon 2.1.1 with websphere 5, i have a problem related to xsp cinclude. everything after my first cinclude statement, it become bank. i been tested the cocoon cinclude...
0
by: Hugh Sparks | last post by:
If I configure and use two different fragment extractors on the same XML document, how can I write xslt template match patterns that distinguish which elements these fragments replaced? Details:...
0
by: mcv | last post by:
I'm currently learning to use Cocoon, and although I really like it, there are a couple of things that don't seem to be explained very well. I've seen lots of articles explaining really complicated...
0
by: Per-Christian Engdal | last post by:
Hi, I have built a cocoon.war file, and deployed it on my BEA Weblogic 8.1 Sp2 (Windows 2000) installation. The deployment works without exceptions, but when I try to access cocoon through...
2
by: rozwel | last post by:
Hi, I'm currently starting a CMS project based on XML-related technologies and I want to use an XML framework as the basis of my architecture. I found two open source project that could fit my...
3
by: Dennis Benzinger | last post by:
Hi! Is there a Python web publishing framework like Cocoon? I found Maki <http://maki.sourceforge.net/> but it was last updated in 2003 and its author says that he doesn't want to make another...
0
by: Hugh Field-Richards | last post by:
Hi This was original posted only on the Cocoon Users Group last year but Paloose is now reasonably mature enough for exposure on this forum. Paloose is a simplified (much simplified) version...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.