cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Fernando.Matom...@thomson.com>
Subject RE: Redirect POST (was: servlets & cocoon?)
Date Tue, 04 Apr 2006 11:03:12 GMT
Well, I was thinking about writing a ServletReader to call the other
servlet directly, but I saw the right solution: launch Jetty with 
-Dcontext=/privatestar/ in the JAVA_OPTIONS

-----Original Message-----
From: Mato Mira, Fernando (DIA CHE) 
Sent: Monday, April 03, 2006 5:45 PM
To: users@cocoon.apache.org
Subject: Redirect POST (was: servlets & cocoon?)

Actually, I sort of got it working.

The servlets are mapped to /bulk/* and /edit/*
The Cocoon stuff is mapped to /privapps/*

But the servlet pages have a hardcoded context name for static stuff
/privatestar/* which should work when it's deployed as a war, but
not when I run it with jetty, so I made a directory privatestar next to
privapps with a sitemap that reads the resources from the directories in
..

Now to get it working also in Jetty develop mode, I have a problem with
the forms, as they submit to things like "/privatestar/edit". I tried
making a redirect for "edit" in the privatestar sitemap, but the
querystring is empty
(it is a POST):

<map:match pattern="edit">
  <map:redirect-to uri="/edit?{request:queryString}"/>
</map:match>

So, how can I redirect this?

Thanks


-----Original Message-----
From: Jean-Baptiste Quenot [mailto:jbq@apache.org] 
Sent: Monday, April 03, 2006 5:30 PM
To: users@cocoon.apache.org
Subject: Re: servlets & cocoon?

* Fernando.Matomira@thomson.com:

> How can I map some servlets next to the Cocoon stuff in the same
> context?

You can't.
-- 
     Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message