You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Merico Raffaele <ra...@less.ch> on 2004/11/12 16:20:40 UTC

Can not fin FOM info

Hi Cocooner

Following the doc. I try to access some FOM data.
But I never get any information.


My function looks as follows:
   ----
   function flowFirst () 
   {
       var bla ="[" + cocoon.request.getAttribute("bla") + "]";
       var contentType = "[" + cocoon.request.getContentType() + "]";
	
       cocoon.sendPage("flowFirstJXTemplate.xml", 
           { "name": "Merico", "vorname": "Raffaele Piero", "cookie":
cocoon.cookie, "attrBla": bla, "contentTypeJs": contentType    });
   }
   ----

the jxtemplate script looks as follows:
   ---
   <?xml version="1.0" encoding="ISO-8859-1"?>
   <page xmlns:c="http://apache.org/cocoon/templates/jx/1.0"
xmlns:h="http://apache.org/cocoon/request/2.0">
      <name>#{name}</name>
      <vorname>${vorname}</vorname>
      <cookieName>${cookie.name}</cookieName>
      <attrBlaJs>${attrBla}</attrBlaJs>
      <attrBlaFom>${cocoon.request.getAttribute("bla")}</attrBlaFom>
      <contentTypeJs>${jsContentTypect}</contentTypeJs>
      <contentTypeJexl>${cocoon.request.contentType}</contentTypeJexl>
      <contentTypeJxpath>#{cocoon/request/contentType}</contentTypeJxpath>
   </page>
   ---

and the result is (http://localhost:8080/ve2000ic/dbc2/flowFirst.xml?bla=x)
   ---
   <?xml version="1.0" encoding="ISO-8859-1" ?> 
   <page xmlns:c="http://apache.org/cocoon/templates/jx/1.0"
xmlns:h="http://apache.org/cocoon/request/2.0">
     <name>Merico</name> 
     <vorname>Raffaele Piero</vorname> 
     <cookieName /> 
     <attrBla /> 
     <contentTypeJexl /> 
     <contentTypeJxpath /> 
   </page>
   ---

What do I do wrong?
Thx in advance ... Raffaele

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