You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by joni santoso <st...@plasa.com> on 2003/02/25 10:43:11 UTC
Can't compile cocoon action
Hi,
I got the source code below from cocoon doc. but i could
not compile it.
it said that the avalon and cocoon is not found.
regards,
import org.apache.avalon.framework.parameters.Parameters;
import org.apache.cocoon.acting.AbstractAction;
import java.util.Map;
import java.util.HashMap;
import org.apache.cocoon.environment.ObjectModelHelper;
import org.apache.cocoon.environment.Redirector;
import org.apache.cocoon.environment.Request;
import org.apache.cocoon.environment.SourceResolver;
import org.xml.sax.EntityResolver;
public class HelloWorldAction extends AbstractAction {
public Map act (Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters params) {
Map sitemapParams = new HashMap();
sitemapParams.put("world", "hello");
Request request =
ObjectModelHelper.getRequest(objectModel);
request.setAttribute("hello", "world");
return sitemapParams;
}
}
===========================================================================================
Informasikan kegiatan anda di http://kalender.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di bulan Februari !
===========================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
RE: Problem in logicsheets
Posted by Panna Bodupali <pa...@bsil.com>.
Hi All,
This issue is resolved...there was some silly mistake from my side in naming
the xmlns in the logicsheet..
Bye
Panna
-----Original Message-----
From: Panna Bodupali [mailto:pannab@bsil.com]
Sent: Tuesday, February 25, 2003 3:23 PM
To: cocoon-users@xml.apache.org
Subject: Problem in logicsheets
Hi All,
I am trying to invoke 2 logicsheet in one xsp.
I have defined the logicsheet in the xsp as
<?xml-logicsheet href="logicsheets/dateFormatUtil.xsl",
"logicsheets/getQueryUtil.xsl"?>...is this the correct way of defining 2
logicsheets in an XSP
Defined the xmlns in XSP as
xmlns:formatter = "http://temp/dateFormatUtil/1.0"
xmlns:queryformatter = "http://temp/getQueryUtil/1.0"
Now I want to invoke a function from getQueryUtil logicsheet, by using
test1 = <queryformatter:get-query start='dayStart' end='dayEnd'
producttype='sProductType' column='column' order='order'/>;
it gives me the following error...
**********************************************************************
org.apache.cocoon.components.language.LanguageException: Error compiling
**********************************************************************
but now when i call the same function by using
test1 = <formatter:get-query start='dayStart' end='dayEnd'
producttype='sProductType' column='column' order='order'/>;
it does not give me any error..
Is it that I am using some wrong syntax while calling the function from
getQueryUtil logicsheet.
Please advice.
Thanks
Panna
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Problem in logicsheets
Posted by Panna Bodupali <pa...@bsil.com>.
Hi All,
I am trying to invoke 2 logicsheet in one xsp.
I have defined the logicsheet in the xsp as
<?xml-logicsheet href="logicsheets/dateFormatUtil.xsl",
"logicsheets/getQueryUtil.xsl"?>...is this the correct way of defining 2
logicsheets in an XSP
Defined the xmlns in XSP as
xmlns:formatter = "http://temp/dateFormatUtil/1.0"
xmlns:queryformatter = "http://temp/getQueryUtil/1.0"
Now I want to invoke a function from getQueryUtil logicsheet, by using
test1 = <queryformatter:get-query start='dayStart' end='dayEnd'
producttype='sProductType' column='column' order='order'/>;
it gives me the following error...
**********************************************************************
org.apache.cocoon.components.language.LanguageException: Error compiling
**********************************************************************
but now when i call the same function by using
test1 = <formatter:get-query start='dayStart' end='dayEnd'
producttype='sProductType' column='column' order='order'/>;
it does not give me any error..
Is it that I am using some wrong syntax while calling the function from
getQueryUtil logicsheet.
Please advice.
Thanks
Panna
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org