Sending parameters in the POST with flowscript

2009-03-18 Thread Mª Magdalena Buades Fuster
Hi, I don't know how to send a post parameter in flowscript. I tried some options like: * cocoon.request.set('name', value); * cocoon.request.setAtribute('name', value); * sendPage ('url', {name: value}); Is it possible? Thanks in advance.

Stream generator encoding problem with Cocoon 2.1.11

2009-03-18 Thread Petteri Sulonen
I'm in the process of moving a large Cocoon application from Cocoon 2.1.4 to 2.1.11 (LTTP, I know). * Platform: Ubuntu, Java 5, Jetty 6.1.15. * In web.xml, container-encoding set to ISO-8859-1, form-encoding UTF-8. Problem: when I POST form data to a stream generator, it behaves as if the

Re: Sending parameters in the POST with flowscript

2009-03-18 Thread Víctor Pergolesi
Hi, Ma Magdalena, I used without problem your third option. Below there are some code actually in production in a file (.js) The function consultas have the sendPage cocoon.load(resource://org/apache/cocoon/forms/flow/javascript/Form.js); importClass (java.util.Date); importClass

Re: Stream generator encoding problem with Cocoon 2.1.11

2009-03-18 Thread Víctor Pergolesi
Hi Peter: generally when I send xml from a servlet to cocoon y set the ContentType to avoid this problem: protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... response.setContentType(text/xml; charset=UTF-8); ... }

Re: Checking if resource type exists

2009-03-18 Thread Víctor Pergolesi
Dear Mathias: since 16-03-2009 i am trying to do as you said but I have a problem: 1 - I could compile the class you send to me. 2 - Now I don´t understand how can I send the parameter to which. I try in the block-servlet-service.xml of one of my blocks ... beans

Re: Checking if resource type exists

2009-03-18 Thread Mathias Reem
Hi 1 - I could compile the class you send to me. 2 - Now I don´t understand how can I send the parameter to which. I try in the block-servlet-service.xml of one of my blocks The ResourceExistsSelector must be used in your sitemap.xmap. Have a look at