You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Norman Barker <no...@comsine.co.uk> on 2004/08/24 16:00:25 UTC

StreamGenerator problem

Hi,

I am trying to use the StreamGenerator to get at posted XML request 
data.  I have constructed a form like this
    <form action="http://localhost:8888/test.xml" method="POST" 
enctype="text/xml">
          <textarea rows="20" cols="90"></textarea>
        <input type="submit"/>
    </form>

and a matcher in the sitemap as
    <map:match pattern="test.xml">
        <map:generate type="stream"/>
        <map:serialize type="xml"/>
    </map:match>

because I have specified encoding type as text/xml I shouldn't need to 
specify a form-name parameter, but this is failing
to return the posted XML document and throws a null pointer exception.

Any help would be appreciated.

Thanks

Norman

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