You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Edward S <su...@gmail.com> on 2008/02/21 17:16:09 UTC
Cocoon 2.2 - CocoonServlet?
Guys,
I am trying to migrate my app from Cocoon 2.1.9 to Cocoon 2.2
we had a servlet Called ImServlet that extended the CocoonServlet and did
some stuff that was needed for each of the requests.
I created a block in 2.2
took all my java files and placed it in the src/main/java folder and tried
doing a compile using maven.
Had to do a maven install and add dependencies for some of the JARS that i
am using. So far, so good. Everything compiles.
However, if i try compiling the ImServlet that i have, it fails as it cant
find the CocoonServlet.
Am i doing something wrong here?
Do i need to add a dependency?
or is the CocoonServlet totally removed in 2.2?
thanks
Ed.
Re: Cocoon 2.2 - CocoonServlet?
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Edward S pisze:
> i dont need to use any functionality of the CocoonServlet per say...
> however, here's wht i need to do. we have documentum components...and we
> need to make a connection to a docbase whenever those are called. I was
> doing that in the servlet.
>
> so, any thots on how to do that now?
>
> thanks
What about using Spring's AOP support in configuration of SitemapServlet bean? I guess it's the
simplest solution even if there could be better places for doing stuff like that.
--
Grzegorz Kossakowski
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.2 - CocoonServlet?
Posted by Carsten Ziegeler <cz...@apache.org>.
Alexander Daniel wrote:
> On 25.02.2008, at 16:58, Edward S wrote:
>> is there any documentation for this request / servlet filter?
>
> e.g. http://java.sun.com/products/servlet/Filters.html
>
> I have not understood the difference between request and servlet filter
> though. Or are these the same thing?
>
Servlet filters are tied to a specific servlet and have to be defined
for each servlet you want to filter. A request listener is invoked for
each request.
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.2 - CocoonServlet?
Posted by Alexander Daniel <al...@gmx.at>.
On 25.02.2008, at 16:58, Edward S wrote:
> is there any documentation for this request / servlet filter?
e.g. http://java.sun.com/products/servlet/Filters.html
I have not understood the difference between request and servlet
filter though. Or are these the same thing?
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.2 - CocoonServlet?
Posted by Edward S <su...@gmail.com>.
is there any documentation for this request / servlet filter?
also, whats the best way to download cocoon 2.2 ...
i am using the snapshots from this page:
http://svn.apache.org/snapshots/cocoon/
thanks
-Ed.
On 2/22/08, Carsten Ziegeler <cz...@apache.org> wrote:
>
> Edward S wrote:
> > i dont need to use any functionality of the CocoonServlet per say...
> > however, here's wht i need to do. we have documentum components...and we
> > need to make a connection to a docbase whenever those are called. I was
> > doing that in the servlet.
> >
> > so, any thots on how to do that now?
> >
> You could either use a request or a servlet filter for this.
>
> HTH
> Carsten
>
>
> --
> Carsten Ziegeler
> cziegeler@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Re: Cocoon 2.2 - CocoonServlet?
Posted by Carsten Ziegeler <cz...@apache.org>.
Edward S wrote:
> i dont need to use any functionality of the CocoonServlet per say...
> however, here's wht i need to do. we have documentum components...and we
> need to make a connection to a docbase whenever those are called. I was
> doing that in the servlet.
>
> so, any thots on how to do that now?
>
You could either use a request or a servlet filter for this.
HTH
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon 2.2 - CocoonServlet?
Posted by Edward S <su...@gmail.com>.
i dont need to use any functionality of the CocoonServlet per say...
however, here's wht i need to do. we have documentum components...and we
need to make a connection to a docbase whenever those are called. I was
doing that in the servlet.
so, any thots on how to do that now?
thanks
Ed.
On 2/21/08, Grzegorz Kossakowski <gr...@tuffmail.com> wrote:
>
> Edward S pisze:
> > Guys,
> >
> > I am trying to migrate my app from Cocoon 2.1.9 to Cocoon 2.2
> > we had a servlet Called ImServlet that extended the CocoonServlet and
> > did some stuff that was needed for each of the requests.
> >
> > I created a block in 2.2
> > took all my java files and placed it in the src/main/java folder and
> > tried doing a compile using maven.
> >
> > Had to do a maven install and add dependencies for some of the JARS that
> > i am using. So far, so good. Everything compiles.
> > However, if i try compiling the ImServlet that i have, it fails as it
> > cant find the CocoonServlet.
> >
> > Am i doing something wrong here?
> > Do i need to add a dependency?
> > or is the CocoonServlet totally removed in 2.2?
>
> Yes, it has been removed, see:
> http://svn.apache.org/viewvc?view=rev&revision=418614
>
> What functionality of CocoonServlet you need?
>
> --
> Grzegorz Kossakowski
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Re: Cocoon 2.2 - CocoonServlet?
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Edward S pisze:
> Guys,
>
> I am trying to migrate my app from Cocoon 2.1.9 to Cocoon 2.2
> we had a servlet Called ImServlet that extended the CocoonServlet and
> did some stuff that was needed for each of the requests.
>
> I created a block in 2.2
> took all my java files and placed it in the src/main/java folder and
> tried doing a compile using maven.
>
> Had to do a maven install and add dependencies for some of the JARS that
> i am using. So far, so good. Everything compiles.
> However, if i try compiling the ImServlet that i have, it fails as it
> cant find the CocoonServlet.
>
> Am i doing something wrong here?
> Do i need to add a dependency?
> or is the CocoonServlet totally removed in 2.2?
Yes, it has been removed, see: http://svn.apache.org/viewvc?view=rev&revision=418614
What functionality of CocoonServlet you need?
--
Grzegorz Kossakowski
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org