COCOON VERSION: 2.1m3 servlet
OS: Redhat Linux 7.3
I am trying to pass parameters to an XSP page using the sitemap. The
sitemap snippet is:
<map:match type="regexp" pattern="directory/([A-Z]).html">
<map:generate type="serverpages" src="xsp/directory.xsp">
<parameter name="letter" value="{1}"/>
</map:generate>
<map:transform type="xslt" src="style/main.xsl"/>
<map:serialize type="xhtml"/>
</map:match>
The trace is as follows:
Description:org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
directory_xsp:
ERROR 1 (org/apache/cocoon/www/intranet/xsp/directory_xsp.java):
...
// resolver - org.apache.cocoon.environment.SourceResolver
/* User Class Declarations */
// start error (lines 67-67) "Default constructor cannot handle exception
type ParameterException thrown by implicit super constructor. Must define an
explicit constructor"
String letter = parameters.getParameter("letter");
// end error
/**
* Generate XML data.
...
Line 67, column 0: Default constructor cannot handle exception type
ParameterException thrown by implicit super constructor. Must define an
explicit constructor
I am basically trying to setup the site so that /directory/A.html will show
all people who's lastname starts with a 'A' instead of having to do
something like /directory/l.xsp?letter=A. Any thoughts would be good.
Thanks.
Nicolas Spilman
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]