Quoting Antonio Gallardo <[EMAIL PROTECTED]>: > Hi Enrico: > > The map:act are executed before the pipelines is executed. Can you explain > what are you trying to do? > > thanks for your help
Actually, i'm trying to store javabeans as request attributes and get them marshalled by a CastorTransformer. The action was just here for checking the request attributes were set (but, if it's executed before...). because the CastorTransformer can't find the javabeans in the request. There's no runtime error with the xsp, the beans are not null, and the castor xml instructions seem correct. ... <map:generate type="serverpages" src="castor-jdo.xsp"/> <map:transform type="castor"/> <map:serialize type="xml"/> <?xml version="1.0" encoding="iso-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"> <products xmlns:castor="http://apache.org/cocoon/castor/1.0"> <xsp:logic> // ...query database... int i = 1; while (results.hasMore()) { ProductBean p = (ProductBean) results.next(); getLogger().debug(p.getDescription()); String pname = "product"+i; request.setAttribute(pname, p); <castor:marshal scope="request"> <xsp:attribute> <xsp:param name="name">name</xsp:param> <xsp:expr>pname</xsp:expr> </xsp:attribute> </castor:marshal> i++; } </xsp:logic> </products> </xsp:page> Wherever I set the beans (request, session, context), the CastorTransformer can't find them. How could i simply check the request attributes right afer the xsp generator ? regards, enrico --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
