You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Don Brown <mr...@twdata.org> on 2003/03/06 05:11:19 UTC
Struts and Cocoon Integration
I've developed a prototype of a Struts 1.1 plugin that integrates Cocoon
into the Struts framework. Struts forwards are passed to Cocoon to be
rendered in Cocoon XML pipelines. It combines the ease of use of Struts
with the power and flexibility of Cocoon. If you've looked into using
Cocoon but was put off by its complexity, you might want to give this a
look. To demonstrate the plugin, I've slightly modified the struts
example webapp to highlight how it could be used.
More information, including how and why, and a demo, visit:
http://www.twdata.org/struts
Any and all comments welcome.
Don
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Struts and Cocoon Integration
Posted by Don Brown <mr...@twdata.org>.
There are at least two ways to handle the forwards: explicitly using some
sort of suffix/prefix (e.g. all paths that end in ".coc" will be handled
by the cocoon plugin) or simply pass all the request first to cocoon and
if cocoon doesn't handle it, process it normally. The stxx plugin
(http://sf.net/projects/stxx) uses the former while I chose the latter.
In my implementation, if you don't create a pipeline to match the forward,
it is processed by Struts normally. It is trival to write code to use
either method.
Hope that helps.
Don
On 6 Mar 2003, Dave Patton wrote:
> WOW! That is good stuff man. I have briefly taken a look at the site
> an am so far impressed. A quick question though, and forgive me if
> you've already answered it: Can I have Struts specify which requests
> will go to Cocoon and which will be processed noramally in Tomcat or
> other servlet engine?
>
> Dave Patton
>
> On Thu, 2003-03-06 at 00:27, Don Brown wrote:
>
> > Ah yes, it looks like I missed an unclosed <hr> element hidden in the
> > application resources. Thanks for pointing that out. The example and
> > demo have been updated.
> >
> > Don
> >
> > On Thu, 6 Mar 2003, alexj wrote:
> >
> > > your demo don't work I got an exception every time I try to save
> > > datas.
> > >
> > > org.apache.jasper.JasperException: getOutputStream() has already been called
> > > for this response
> > >
> > > --
> > > Alexandre Jaquet
> > >
> > > ----- Original Message -----
> > > From: "Don Brown" <mr...@twdata.org>
> > > To: <st...@jakarta.apache.org>
> > > Sent: Thursday, March 06, 2003 5:11 AM
> > > Subject: Struts and Cocoon Integration
> > >
> > >
> > > > I've developed a prototype of a Struts 1.1 plugin that integrates Cocoon
> > > > into the Struts framework. Struts forwards are passed to Cocoon to be
> > > > rendered in Cocoon XML pipelines. It combines the ease of use of Struts
> > > > with the power and flexibility of Cocoon. If you've looked into using
> > > > Cocoon but was put off by its complexity, you might want to give this a
> > > > look. To demonstrate the plugin, I've slightly modified the struts
> > > > example webapp to highlight how it could be used.
> > > >
> > > > More information, including how and why, and a demo, visit:
> > > > http://www.twdata.org/struts
> > > >
> > > > Any and all comments welcome.
> > > >
> > > > Don
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> _________________________________
> David H. Patton
> dave@mymobile.info
> (202) 276-8998 - pcs
>
> -----BEGIN PGP PUBLIC KEY BLOCK-----
>
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> mQENBDui6osBCADP9OqVftQ2qxZz2fsxEf6GT6V2Fu0c2iIIMeWGyc5Pwl+xXe2w
> 3wx2pmNkLy3Zjp2/5q4nhvJd/GVn5gRR9OVTKgAz4o+xcOcAVIbgz3xFICbLozKa
> 2aZOUDtOu0TuYGhI9iIeGuPjnMjsS38EfZQ2DWwd+p5UW6wnsSuG7xniUT372v8w
> YrtUwnKQwjRUGUlZoX1zwvJj50xEzipyyHosMuzjoHme+d+MEECRhAK81p0487kl
> X0UMXBehnsFK1m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8ihBQp1cY9mLnwuJDKSuzpkaOK5pd+bifwY20tweULR6
> 4rtU8uLL1H0eom2IBjSXhf4n8DEdyrGKKHYNO/GRLx/UHHcLEFvz+4buHrCPoiBP
> JwjS/Ifg5xc3nTJnZmG2HzapoRwgXxGitbNTArUZWkqHYLygA1/ilmnFs8POj/s+
> TD4wSuDlrwE2CE2O8XbRuRVPryzn8mXXdZ1pSwrrvZjRU5rnDRAOqhHZQQbudVd3
> XvnDDBDoURSqwDqnwOkoOSTC95aj+vy5WW0=
> =/zoc
>
> -----END PGP PUBLIC KEY BLOCK-----
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Struts and Cocoon Integration
Posted by Dave Patton <da...@mymobile.info>.
WOW! That is good stuff man. I have briefly taken a look at the site
an am so far impressed. A quick question though, and forgive me if
you've already answered it: Can I have Struts specify which requests
will go to Cocoon and which will be processed noramally in Tomcat or
other servlet engine?
Dave Patton
On Thu, 2003-03-06 at 00:27, Don Brown wrote:
> Ah yes, it looks like I missed an unclosed <hr> element hidden in the
> application resources. Thanks for pointing that out. The example and
> demo have been updated.
>
> Don
>
> On Thu, 6 Mar 2003, alexj wrote:
>
> > your demo don't work I got an exception every time I try to save
> > datas.
> >
> > org.apache.jasper.JasperException: getOutputStream() has already been called
> > for this response
> >
> > --
> > Alexandre Jaquet
> >
> > ----- Original Message -----
> > From: "Don Brown" <mr...@twdata.org>
> > To: <st...@jakarta.apache.org>
> > Sent: Thursday, March 06, 2003 5:11 AM
> > Subject: Struts and Cocoon Integration
> >
> >
> > > I've developed a prototype of a Struts 1.1 plugin that integrates Cocoon
> > > into the Struts framework. Struts forwards are passed to Cocoon to be
> > > rendered in Cocoon XML pipelines. It combines the ease of use of Struts
> > > with the power and flexibility of Cocoon. If you've looked into using
> > > Cocoon but was put off by its complexity, you might want to give this a
> > > look. To demonstrate the plugin, I've slightly modified the struts
> > > example webapp to highlight how it could be used.
> > >
> > > More information, including how and why, and a demo, visit:
> > > http://www.twdata.org/struts
> > >
> > > Any and all comments welcome.
> > >
> > > Don
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
_________________________________
David H. Patton
dave@mymobile.info
(202) 276-8998 - pcs
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
mQENBDui6osBCADP9OqVftQ2qxZz2fsxEf6GT6V2Fu0c2iIIMeWGyc5Pwl+xXe2w
3wx2pmNkLy3Zjp2/5q4nhvJd/GVn5gRR9OVTKgAz4o+xcOcAVIbgz3xFICbLozKa
2aZOUDtOu0TuYGhI9iIeGuPjnMjsS38EfZQ2DWwd+p5UW6wnsSuG7xniUT372v8w
YrtUwnKQwjRUGUlZoX1zwvJj50xEzipyyHosMuzjoHme+d+MEECRhAK81p0487kl
X0UMXBehnsFK1mjbtQgfy2fdk0KT4NxKSD5s8ojoSdJ7R5CMwvh1UM4v2aAEqKvE
CYaCWrAfZ7+TQGHXu75ejJz1iIuUno1fVsgLABEBAAG0IkRhdmUgUGF0dG9uIDxk
cGF0dG9uQG52ZW50dXJlLmNvbT6JAS4EEAECABgFAjui6osICwMJCAcCAQoCGQEF
GwMAAAAACgkQ5ZDkPqeKwH9Xswf/aP2WGiAU+HFxV136uKW5oDtZtSvm0YuW69Ra
A2dPKFPp6E7v+w2c7yEV4+ZkVxbfk+VOh3p1MpXR367nQl9C+jMAD7MvPU6/KI+T
5WDzz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ata.org>.
Ah yes, it looks like I missed an unclosed <hr> element hidden in the
application resources. Thanks for pointing that out. The example and
demo have been updated.
Don
On Thu, 6 Mar 2003, alexj wrote:
> your demo don't work I got an exception every time I try to save
> datas.
>
> org.apache.jasper.JasperException: getOutputStream() has already been called
> for this response
>
> --
> Alexandre Jaquet
>
> ----- Original Message -----
> From: "Don Brown" <mr...@twdata.org>
> To: <st...@jakarta.apache.org>
> Sent: Thursday, March 06, 2003 5:11 AM
> Subject: Struts and Cocoon Integration
>
>
> > I've developed a prototype of a Struts 1.1 plugin that integrates Cocoon
> > into the Struts framework. Struts forwards are passed to Cocoon to be
> > rendered in Cocoon XML pipelines. It combines the ease of use of Struts
> > with the power and flexibility of Cocoon. If you've looked into using
> > Cocoon but was put off by its complexity, you might want to give this a
> > look. To demonstrate the plugin, I've slightly modified the struts
> > example webapp to highlight how it could be used.
> >
> > More information, including how and why, and a demo, visit:
> > http://www.twdata.org/struts
> >
> > Any and all comments welcome.
> >
> > Don
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Struts and Cocoon Integration
Posted by alexj <al...@freesurf.ch>.
your demo don't work I got an exception every time I try to save
datas.
org.apache.jasper.JasperException: getOutputStream() has already been called
for this response
--
Alexandre Jaquet
----- Original Message -----
From: "Don Brown" <mr...@twdata.org>
To: <st...@jakarta.apache.org>
Sent: Thursday, March 06, 2003 5:11 AM
Subject: Struts and Cocoon Integration
> I've developed a prototype of a Struts 1.1 plugin that integrates Cocoon
> into the Struts framework. Struts forwards are passed to Cocoon to be
> rendered in Cocoon XML pipelines. It combines the ease of use of Struts
> with the power and flexibility of Cocoon. If you've looked into using
> Cocoon but was put off by its complexity, you might want to give this a
> look. To demonstrate the plugin, I've slightly modified the struts
> example webapp to highlight how it could be used.
>
> More information, including how and why, and a demo, visit:
> http://www.twdata.org/struts
>
> Any and all comments welcome.
>
> Don
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org