Problem with get map:parameter/ in xsp

2002-12-28 Thread Björn Voigt
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:exprlinkid/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



Re: Problem with get map:parameter/ in xsp

2002-12-28 Thread Björn Voigt
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]