cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Ash <m...@euronetworldwide.com>
Subject RE: XML in actions
Date Thu, 23 May 2002 19:20:57 GMT
I like the number 2 option but I can't seem to find how to get the xml out
of the objectModel in an XSP.  Is there an example in the cocoon dist?
-----Original Message-----
From: Chitharanjan Das [mailto:cdas@accordiasys.com]
Sent: Thursday, May 23, 2002 2:06 PM
To: cocoon-users@xml.apache.org
Subject: RE: XML in actions


These are the following options
 
1.	Store the XML in the request object (request.setAttribute("xml",
xmlStr); 

2.	return the XML in the hashmap. This xml can be accesses as sitemap
parameters in XSP. 

3.	Also can be stored in Session (not advised)... 
 
 
Regds,
Chiths
-----Original Message-----
From: Mike Ash [mailto:mash@euronetworldwide.com] 
Sent: Thursday, May 23, 2002 12:02 PM
To: 'cocoon-users@xml.apache.org'
Subject: XML in actions
 
I need something (action/generator) that talks to a backend system to get
xml.  The problem is I can't use a generator because I also want to use the
xsp generator in the same pipeline.  So how can I get an action to return
xml that is available to xsp as xml.
Here is a sitemap example of what I was looking for 
 
  <map:pipeline>   
    <map:match type="request-parameter" pattern="login-test"> 
      <map:act type="ValidateUser" > 
        <map:act type="GetXml" > 
              <map:generate type="serverpages" src="xsp/home.xsp"/> 
        </map:act> 
        </map:act> 
      <map:transform src="xsl/simple.xsl"/> 
      <map:serialize/>      
    </map:match> 
  </map:pipeline>   

Mime
View raw message