hello sylvain,
I'm using the page parameter, which is returned from the action
class to separate the stylesheets for the forms and the one for
the actual output. Below an example of the sitemap.
-- code
map:select type=parameter
map:parameter name=parameter-selector-test value={page} /
map:when test=output
map:call resource=format-transformation
map:parameter name=format value={format} /
/map:call
/map:when
map:otherwise
map:transform src=stylesheets/wizard2html.xsl /
map:transform src=stylesheets/xmlform2html.xsl /
map:serialize type=xml label=debug/
/map:otherwise
/map:select
-- /code
to have different formats to be used I returned another parameter
from the action called format, which is a databean property and
can be choosen in one of my forms.
Instead of return page( VIEW_SOMETHING ), I do the following:
-- code
Map sitemapParams = new HashMap();
... some code .
sitemapParams.put( page, VIEW_SOMETHING );
sitemapParams.put( format, jBean.getFormat() );
return sitemapParams;
-- /code
ciao Lars
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 8. Januar 2003 22:06
An: [EMAIL PROTECTED]
Betreff: How to get back XMLForm data to Cocoon
Hello,
I'm using XMLForm to collect information.
With these information I retrieve a result from a database
(with Java code in the Action file).
Now I want to take this result to display it on the screen.
And I want to use the Cocoon publication features.
My question is: how to get back this result to display it with Cocoon?
Thank you
Sylvain
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]