Title: 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:[EMAIL PROTECTED]]
Sent:
Thursday, May 23, 2002 12:02 PM
To: '[EMAIL PROTECTED]'
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>  

Reply via email to