I used WildcardSessionAttributeMatcher to get session attributes: <map:match type="sessionstate" pattern="*"> <map:parameter name="attribute-name" value="YourParam"/> <map:generate type="YourGenerator" src="YourSource"> <map:parameter name="YourParam" value="{1}" />
Here is YourGenerator's source code to get YourParam: public void generate() throws IOException, SAXException, ProcessingException { // Get YourParam String yourParam = parameters.getParameter("YourParam", ""); Elmar -----Ursprüngliche Nachricht----- Von: Lionel Crine [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 31. Januar 2003 15:02 An: [EMAIL PROTECTED] Betreff: Get session variables for a generator Hello, I' d like to get two session variables and use them as parameter for my custom generator. 1/Should I get them in the sitemap and use <map:parameter ?> in the sitemap. how do I write that ? 2/Or should I get them direclty in the generator ? How do I do that ? Lionel --------------------------------------------------------------------- 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]>