Yes. Just noticed that map.put(key, value) was mistakenly placed. But let me do a summary of my problem anyhow.
========================================== Problem: get parameters from action in xsp Context: Suppose you have an action and it returns parameters via its map object; and an xsp will get them from the sitemap. Here is an example sitemap begins ====================================== <map:match pattern="myURL"> <map:act type="myAction"> <map:generate src="xsp/myURL.xsp" type="serverpages"> <map:parameter name="myParam" value="{myParam}"/> </map:generate> </map:act> </map:match> ====================================== action here ====================================== public class actionExample extends AbstractAction implements ThreadSafe { public Map act(...) throws Exception Map map = new Hashmap(); /* do what you desire*/ .... map.put("myParam", myValue); return map; } } myURL.xsp ====================================== <?xml version="1.0" encoding="UTF-8"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:xsp-response="http://apache.org/xsp/response/2.0"> <page> <title>someTitle</title> <content> <xsp:logic> String myValue = null; try { myValue = parameters.getParameter("myParam"); } catch(Exception e){} </xsp:logic> <para><xsp:expr>file</xsp:expr></para> </page> </xsp:page> ==================================== Kenny --- Vadim Gritsenko <[EMAIL PROTECTED]> wrote: > > May be something is wrong with the action. > > Vadim > __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com --------------------------------------------------------------------- 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]>