Hi Sunay,

You seem to use the bean generator correctly. Can you try to add a
debug attribute to the output of the bean generator? Look in the
console for the output of the serialized bean.

<p:output name="data" id="os" debug="os"/>

Also, try using an empty mapping file, to make sure there is no errors
in yours:

<p:input name="mapping">
   <mapping/>
</p:input>

Let me know if it helps.

Regards,
Julien

Yaldiz, Sunay wrote:


Hello,


I have a question, I am using struts with oxf. In struts action class, I
store some objects under the current session, later on I want to get and
use these objects in OXF pipeline.

After storing the objects in session in struts action class, I forward
to xpl and in the xpl I tried to generate the beans with bean generator.
But I could not see the beans in my current session.
Do I have to do something else, there should be something missing.

<p:processor uri="oxf/processor/bean-generator">

<p:input name="config" xmlns:p="http://www.orbeon.com/oxf/pipeline";> <config> <attribute>orderedSurvey</attribute> <source>request</source> <source>session</source> </config> </p:input>

<p:input name="mapping" href="oxf:/mappingGL.xml"/> <p:output name="data" id="os"/>
</p:processor>


I store my object under "orderedSurvey" key in session of course.
After using bean generator pipeline, I give the "os" output to xslt
processor pipeline.But it can't find the bean.


<p:processor uri="oxf/processor/xslt">
<p:input name="data" href="#os"/>
<p:input name="config">
<xsl:stylesheet version="1.0"> <xsl:template match="/beans/ordered-survey">
<d:document xmlns:d="http://orbeon.org/oxf/xml/document";>
<d:head>
<d:title>Survey Request
</d:title> </d:head>
<d:body>
Hello! <d:br/> <d:br/>
</d:body>
</d:document> </xsl:template>
</xsl:stylesheet>
</p:input> <p:output name="data" ref="data"/>
</p:processor>


After this, I see a completely empty page.

Thanks for helping,
Sunay **************************************************** Please notice: We would like to inform you that the e-mail address of Germanischer Lloyd as well as our internet address had been changed to gl-group.com with effect from 1st March 2003. This means that the previous address [EMAIL PROTECTED] will be replaced by [EMAIL PROTECTED] From now on the GL homepage can be accessed at the address 'http://www.gl-group.com'. The old addresses remain valid for a transitional period. **************************************************** This e-mail contains confidential information for the exclusive attention of the intended addressee. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.



------------------------------------------------------------------------


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to