You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Björn Voigt <bj...@gmx.de> on 2002/12/28 22:27:10 UTC
Problem with get in xsp
Hello cocooners,
i am try to read in my xsp-page a map:parameter from
my sitemap looks like this
<map:match pattern="body-**/page-1-*-*.xml">
<map:generate type="serverpages"
src="context://portal/resources/free/page2.xml">
<map:parameter name="linkid" value="100"/>
</map:generate>
[...]
</map:match>
In my xsp page I do this:
<xsp:logic>
try{
String linkid = parameters.getParameter("linkid");
}catch(org.apache.avalon.framework.parameters.ParameterException e){
String linkid = "100";
}
</xsp:logic>
<xsp:expr>linkid</xsp:expr>
And I get this:
*type* fatal
*message* _Failed to execute pipeline._
*description* _org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
page2_xml: ERROR 1
(/home/u13209/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/localhost/mh-portal/cocoon-files/org/apache/cocoon/www/jndi_/localhost/mh_portal/portal/resources/free/page2_xml.java):
... this.characters("\n\t"); // start error (lines 432-432) " variable
linkid not found in class
org.apache.cocoon.www.jndi_.localhost.mh_portal.portal.resources.free.page2_xml"
XSPObjectHelper.xspExpr(contentHandler, linkid); // end error
this.characters("\n\t"); this.characters("\n "); ... Line 432, column
48: variable linkid not found in class
org.apache.cocoon.www.jndi_.localhost.mh_portal.portal.resources.free.page2_xml
Line 0, column 0: 1 error _
*Thank you for helping
*
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Problem with get in xsp
Posted by Björn Voigt <bj...@gmx.de>.
Sorry for wasting your time
I've just found a solution for my problem in the mailinglist-archives
Björn Voigt
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>