cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azmi, Amir" <>
Subject RE: [C2.1]New ServerPagesAction and logicsheet-utils
Date Sun, 12 Aug 2001 23:21:52 GMT
Cool work Sylvain.

I was trying to use this ServerPagesAction with the following xsp file,

	<?xml version="1.0" encoding="ISO-8859-1"?>



		<action:redirect-to uri="">
name="test"><xsp-request:get-parameter name="RU"/></xsp:attribute>

My problem is that I am not able to dynamically provide value for "uri"
parameter of "<action:redirect-to/>". I tried changing the order of
logicsheets also. If I check out the java code generated by above xsp
file I find no code which will add the parameter "test". I have attached
the generated java code.

Any clues as to what is going wrong.

Thanks in advance.


-----Original Message-----
From: Sylvain Wallez []
Sent: Thursday, August 09, 2001 8:42 AM
Subject: [C2.1]New ServerPagesAction and logicsheet-utils

Hi team,

I added in the 2.1 cvs a new ServerPagesAction that allows actions to be
written in XSP. XSP is very powerful to dynamically generate XML, and
there are many cases where this is useful in the context of actions
(form validation, database updates, etc).

This action wraps a ServerPagesGenerator that is instanciated at each
action execution. I hope it can be pooled if we agree to remove
ThreadSafe from Action (see my next post).

This action comes with 2 logicsheets :
The "action" logicsheet provides tags for handling the action result
map, setting the action status (failure/success) and... performing
redirects !

The "capture" logicsheet allows to capture parts of the XSP-generated
XML either in XMLFragment objects containing serialized SAX events
(using XMLByteStreamCompiler) or DOM Node objects. Additionnaly, these
fragments can be stored directly in request attributes, for later use in
the pipeline.

These logicsheets use general logicsheet features factorized in
"logicsheet-util.xsl" that is often duplicated, mainly about element
parameter retrieval (either as attribute or sub-element).

"logicsheet-util" also provides a template to compute the actual
namespace prefix of logicsheet elements used in the XSP. This will allow
to remove the existing dependency of many existing logicsheets
(including sitemap.xsl) on their namespace-prefix.

You are of course encouraged to use this in your logicsheets to ensure a
higher consistency across logicsheets (existing ones will also have to
be adapted).

I still have to write samples and xdocs for this...

Sylvain Wallez
Anyware Technologies -

To unsubscribe, e-mail:
For additional commands, email:

View raw message