RE: simple question about StreamGenerator

2002-10-21 Thread DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)



Oskar,
StreamGenerator is 
expecting its input as a HTTP POST input.
There are two scenarios:
  - For the POST requests with mime type of 
application/x-www-form-urlencoded the xml data is expected to 
be    associated with the name specified in the sitemap 
parameter. 
 - For the POST requests with mime types: text/plain, text/xml, 
application/xml 
    the xml data is in the body of the POST request and 
its length is specified by the value returned 
by getContentLength() 
method. 
 
For the first scenario, the one way to generate HTTP POST message is to 
use http page with a  tag.
The xml load intended to be processed by StreamGenerator needs to 
be associated with some control inside the . For ex. this 
control can be a textarea containing xml document. The StreamGenerator 
will pull the xml load out of the control which name matches the value 
attribute of "form-name" param specified in the 
sitemap.
If the xml document is posted to the Cocoon using other means with mime 
types: text/plain, text/xml, application/xml the form-name is 
ignored.
 
Kinga
 
-Original Message-From: Oskar Casquero 
[mailto:[EMAIL PROTECTED]]Sent: Monday, October 21, 2002 2:32 
PMTo: [EMAIL PROTECTED]Subject: simple question 
about StreamGenerator

  What does the "form-name" parameter mean in the 
  context of the Stream Generator?
   
  Oskar


simple question about StreamGenerator

2002-10-21 Thread Oskar Casquero



What does the "form-name" parameter mean in the 
context of the Stream Generator?
 
Oskar