cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: Map return type in action
Date Sat, 21 Feb 2004 13:14:50 GMT
Anna Bikkina wrote:

> Hi,
> 
> I just a need a gory detail I am not able to find. When I write my own action 
> file and its returns a map. How can I use the map in my xsp which gets 
> executed when my action is succesful. 
> 
> Something like getParamter etc... can someone please write the syntax to get 
> the Map details from a action.
> 
> Thanks,
> Anna.


Action:
-------

map.put("foo", "bar");
return map;

Sitemap:
--------

<map:act type="...">
   <map:generate type="xsp" src="myserverpage.xsp">
     <map:parameter name="foo" value="{foo}"/>
   </map:generate>
</map:act>

XSP:
----

try {
     String foo = parameters.getParameter("foo");
}
catch (ParameterException e) {
     throw new ProcessingException(e);
}


HTH,
-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message