cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Velychko <>
Subject Passing parameters to XSP from sitemap
Date Mon, 05 May 2003 03:24:36 GMT
Hi all,

I am trying to pass parameters to XSP from sitemap.

My sitemap:
<map:match pattern="*/data/**">
  <map:generate type="serverpages" src="data/{2}.xsp">
    <map:parameter name="lang" value="{1}"/>
  <map:serialize type="xml"/>

My xsp:
<?xml version="1.0" encoding="windows-1251"?>
<xsp:page language="java" 
    String lang = parameters.getParameter("lang");
        <esql:query name="news_list">
          select ld.subject, ld.annotation
          from langdocument ld
          where ld.document_id=65
            and ld.language='<xsp:expr>lang</xsp:expr>'
              <subject><esql:get-string column="subject"/></subject>
              <annotation><esql:get-string column="annotation"/></annotation>
        <esql:no-results>No results</esql:no-results>

When I request the page "http://localhost:8888/myproject/en/data/news" I have the following
org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException:
Error compiling news_xsp:
ERROR 1 (org\apache\cocoon\www\antanta\data\


// start error (lines 306-306) "Unhandled exception type ParameterException"
String lang = parameters.getParameter("lang");

// end error
String current_id =


Line 306, column 0: Unhandled exception type ParameterException

What is wrong?

My environment is the following: tomcat 4.1.18, cocoon 2.1M1, Win XP.

Best regards,

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

View raw message