2 (should be) questions
Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried img src=images\uktop10.gif/ this also doesnt work 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. Richard. ?xml version=1.0 encoding=UTF-8 standalone=no? !-- Produced by Richard Cunliffe, Liverpool, UK - Last updated 09-March-2003 -- !-- DTD LOCATION -- !DOCTYPE document SYSTEM database.dtd !-- XML BODY -- document !-- SQL QUERY -- query titlethe database/title sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query SELECT * FROM album /sql:query /sql:execute-query /query !-- PDA VERSION -- pda titlePDA Version/title /pda !-- PC VERSION-- pc titlePC Version/title /pc !-- WAP VERSION -- wap titleWAP soundpool/title /wap /document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple ancestors
Is it possible to have four ancestor like bellow? Because here I get errors for each esql:get-string esql:execute-query esql:query Select * From Process_Actions Where (pa_process = xsp-request:get-parameter name=MyID/) /esql:query esql:results esql:row-results esql:execute-query esql:query select * from Actions where at_ID = esql:get-int column=pa_atid ancestor=1 / /esql:query esql:results esql:row-results tr tdesql:get-string column=at_name//td tdselectxsp:attribute name=nameusrnamexsp:exprmynum/xsp:expr/xsp:attribute esql:execute-query esql:query select * from Users /esql:query esql:results esql:row-results optionesql:get-string column=ur_name//option /esql:row-results ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple ancestors
On 10.Mar.2003 -- 10:36 AM, [EMAIL PROTECTED] wrote: Is it possible to have four ancestor like bellow? Because here I get errors for each esql:get-string esql:execute-query esql:query Select * From Process_Actions Where (pa_process = xsp-request:get-parameter name=MyID/) /esql:query esql:results esql:row-results esql:execute-query esql:query select * from Actions where at_ID = esql:get-int column=pa_atid ancestor=1 / /esql:query esql:results esql:row-results tr tdesql:get-string column=at_name//td tdselectxsp:attribute name=nameusrnamexsp:exprmynum/xsp:expr/xsp:attribute esql:execute-query esql:query select * from Users /esql:query esql:results esql:row-results optionesql:get-string column=ur_name//option /esql:row-results ... Try to use esql:parameter around esql:get-int in an esql:query. You really should do the same with the xsp-request:get-parameter. Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. And if you are really cool, add a page at http://wiki.cocoondev.org -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple ancestors
Do you mean esql:parameter column=pa_atid ancestor=1/? -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:43 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:36 AM, [EMAIL PROTECTED] wrote: Is it possible to have four ancestor like bellow? Because here I get errors for each esql:get-string esql:execute-query esql:query Select * From Process_Actions Where (pa_process = xsp-request:get-parameter name=MyID/) /esql:query esql:results esql:row-results esql:execute-query esql:query select * from Actions where at_ID = esql:get-int column=pa_atid ancestor=1 / /esql:query esql:results esql:row-results tr tdesql:get-string column=at_name//td tdselectxsp:attribute name=nameusrnamexsp:exprmynum/xsp:expr/xsp:attribute esql:execute-query esql:query select * from Users /esql:query esql:results esql:row-results optionesql:get-string column=ur_name//option /esql:row-results ... Try to use esql:parameter around esql:get-int in an esql:query. You really should do the same with the xsp-request:get-parameter. Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. And if you are really cool, add a page at http://wiki.cocoondev.org -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple ancestors
On 10.Mar.2003 -- 10:46 AM, [EMAIL PROTECTED] wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:43 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:36 AM, [EMAIL PROTECTED] wrote: Is it possible to have four ancestor like bellow? Because here I get errors for each esql:get-string esql:execute-query esql:query Select * From Process_Actions Where (pa_process = xsp-request:get-parameter name=MyID/) /esql:query esql:results esql:row-results esql:execute-query esql:query select * from Actions where at_ID = esql:get-int column=pa_atid ancestor=1 / /esql:query esql:results esql:row-results tr tdesql:get-string column=at_name//td tdselectxsp:attribute name=nameusrnamexsp:exprmynum/xsp:expr/xsp:attribute esql:execute-query esql:query select * from Users /esql:query esql:results esql:row-results optionesql:get-string column=ur_name//option /esql:row-results ... Try to use esql:parameter around esql:get-int in an esql:query. You really should do the same with the xsp-request:get-parameter. Do you mean esql:parameter column=pa_atid ancestor=1/? No : esql:parameter type=intesql:get-int column=pa_atid ancestor=1 //esql:parameter Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. And if you are really cool, add a page at http://wiki.cocoondev.org -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xml header on delivered pages
Hi! I'm designing the interface for mobile devices for a web portal using Cocoon. When I test my pages on a iPaq (with Pocket Internet Explorer) I get the correct page, withouterrors, but with del xml header visualized at the beginning of every page. ?xml version="1.0" encoding="ISO-8859-1"? (and then I get the right content...) Of couse I want to delete it!! Here I write the informations I think are importants for this problem: The XSPsthat are called in a pipeline for a iPaq http request (for example) have at the beginning the xml header (?xml version="1.0" encoding="ISO-8859-1"?), while the xsl doesn't. Then I deliver the markup with this serializer: map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Transitional" pool-grow="2" pool-max="64" pool-min="2" src="" doctype-public-//W3C//DTD XHTML 1.0 Transitional//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer I think the responsible of the writing of the xml header is the serializer, but I have no idea on how solve the problem. Thank you for your help! Nesto
RE: Multiple ancestors
Ok. But I still get an error : org.apache.cocoon.components.language.LanguageException: Line 827, column 27: ':' expected. Java file : Line 825 this.characters(\n\t\t\t\tselect * from Actions where at_ID = ); Line 826 Line 827 this.characters(?); Line 828 Line 829 this.characters(\n ); -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 11:12 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:46 AM, [EMAIL PROTECTED] wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:43 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:36 AM, [EMAIL PROTECTED] wrote: Is it possible to have four ancestor like bellow? Because here I get errors for each esql:get-string esql:execute-query esql:query Select * From Process_Actions Where (pa_process = xsp-request:get-parameter name=MyID/) /esql:query esql:results esql:row-results esql:execute-query esql:query select * from Actions where at_ID = esql:get-int column=pa_atid ancestor=1 / /esql:query esql:results esql:row-results tr tdesql:get-string column=at_name//td tdselectxsp:attribute name=nameusrnamexsp:exprmynum/xsp:expr/xsp:attribute esql:execute-query esql:query select * from Users /esql:query esql:results esql:row-results optionesql:get-string column=ur_name//option /esql:row-results ... Try to use esql:parameter around esql:get-int in an esql:query. You really should do the same with the xsp-request:get-parameter. Do you mean esql:parameter column=pa_atid ancestor=1/? No : esql:parameter type=intesql:get-int column=pa_atid ancestor=1 //esql:parameter Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. And if you are really cool, add a page at http://wiki.cocoondev.org -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon and SVG graphics under SuSe Linux
Hi, I'm running Cocoon's SVG sample (under static-content, SVG introduction page) under SuSe Linux 8.1. All works fine except for the graphics. They don't show up, but generate loads of errors in WEB-INF/logs instead. It says that it cannot find the reference key for each graphic. Under the hood the SVG code is serialized to .PNG format. Under Windows everything works fine. The copy of Cocoon is exacltly the same as under Linux. Does anyone know where I could find the problem? Could it have anything to do with user-rights? I have full-access to the Linux box. Tomcat runs under a username called wwwrun with no group attached to it. Every file under cocoon is owned by wwwrun:nogroup and has ugo+rwx. Any help would be appreciated. Patrick -- _ Zon Breedband Family, 2 keer zo snel als alle andere ADSL aanbieders. Voor maar 34 euro per maand. Bestel nu op www.zonnet.nl/breedband Tijdelijk gratis modem en geen aansluitkosten! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple ancestors
On 10.Mar.2003 -- 11:20 AM, [EMAIL PROTECTED] wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 11:12 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:46 AM, [EMAIL PROTECTED] wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:43 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:36 AM, [EMAIL PROTECTED] wrote: Is it possible to have four ancestor like bellow? Because here I get errors for each esql:get-string esql:execute-query esql:query Select * From Process_Actions Where (pa_process = xsp-request:get-parameter name=MyID/) /esql:query esql:results esql:row-results esql:execute-query esql:query select * from Actions where at_ID = esql:get-int column=pa_atid ancestor=1 / /esql:query esql:results esql:row-results tr tdesql:get-string column=at_name//td tdselectxsp:attribute name=nameusrnamexsp:exprmynum/xsp:expr/xsp:attribute esql:execute-query esql:query select * from Users /esql:query esql:results esql:row-results optionesql:get-string column=ur_name//option /esql:row-results ... Try to use esql:parameter around esql:get-int in an esql:query. You really should do the same with the xsp-request:get-parameter. Do you mean esql:parameter column=pa_atid ancestor=1/? No : esql:parameter type=intesql:get-int column=pa_atid ancestor=1 //esql:parameter Ok. But I still get an error : org.apache.cocoon.components.language.LanguageException: Line 827, column 27: ':' expected. Java file : Line 825 this.characters(\n\t\t\t\tselect * from Actions where at_ID = ); Line 826 Line 827 this.characters(?); Line 828 Line 829 this.characters(\n ); This looks weird. Which version are you using? Could you please post your entire XSP? Chris. Please follow up summarizing your problem and which suggested solution / information worked for you when you consider your problem solved. Add SUMMARY: to the subject line. This will make FAQ generation and searching the list easier. In addition, it makes helping you more fun. Thank you. And if you are really cool, add a page at http://wiki.cocoondev.org -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
passing request parameters to templates
Hi! I am trying to use xsp-request:get-parameter name=.../ as a parameter to a template defined in my own logicsheet. I have looked at the mailing list archives, the documentation and actually found info on how it is supposed ot be done, but it seems that the above parameter does not get passed on. I must be missing something. Please help, cause I'm getting desperate. In the code bellow, the custom mobi:fmd-request tag correctly writes out the second DEBUG: line, but in the first DEBUG: line, the variable $dowhat seems to be empty. If instead of supplying a dynamic parameter to mobi:fmd-request, I supply an attribute 'dowhat', the code works as expected. If I supply a literal string instead of xsp-request:get-parameter name=dothething/, the string does get passed on to the template as expected. I am using Cocoon 2.0.4, with tomcat 4.1.18 and Java 1.4 from Sun. feri. -- I tried the following in my XSP: mobi:fmd-request mobi:param name=dowhatxsp-request:get-parameter name=dothething//mobi:param /mobi:fmd-request And in the logischeet: xsl:template match=mobi:fmd-request xsl:variable name=dowhat xsl:call-template name=get-parameter xsl:with-param name=namedowhat/xsl:with-param /xsl:call-template /xsl:variable xsl:textDEBUG: dowhat: /xsl:textxsl:value-of select=$dowhat/br/ xsl:textDEBUG: dowhat: /xsl:textxsp-request:get-parameter name=dothething/br/ ... /xsl:template xsl:template name=get-parameter xsl:param name=name/ xsl:param name=default/ xsl:param name=requiredfalse/xsl:param xsl:variable name=qname xsl:value-of select=concat('mobi', ':param')/ /xsl:variable xsl:choose xsl:when test=@*[name(.) = $name] xsl:value-of select=@*[name(.) = $name]/ /xsl:when xsl:when test=(*[name(.) = $qname])[EMAIL PROTECTED] = $name] xsl:call-template name=get-nested-content xsl:with-param name=content select=(*[name(.) = $qname])[EMAIL PROTECTED] = $name]/ /xsl:call-template /xsl:when xsl:otherwise... handle default and error .../xsl:otherwise /xsl:choose /xsl:template xsl:template name=get-nested-content xsl:param name=content/ xsl:choose xsl:when test=$content/* xsl:apply-templates select=$content/*/ /xsl:when xsl:otherwisexsl:value-of select=$content//xsl:otherwise /xsl:choose /xsl:template - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XHTML Mobile profile
does a xHTML Mobile profile SERIALIZER exists for cocoon ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URL's help for cocoon
Can you give me many site to help me to better understand cocoon please ? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
request bug in cocoon?
Hi I am trouble using Request in my xsp when I do request.getParameterValues(xxx) when xxx doesn't exist on my url. In theory, if it is not there this should return null but I got a nullPointerException. After looking at the codes... I found the following: public String[] getParameterValues(String name) { String[] values = this.req.getParameterValues(name); if (this.form_encoding == null) { return values; } String[] decoded_values = new String[values.length]; for (int i = 0; i values.length; ++i) { decoded_values[i] = decode(values[i]); } return decoded_values; } Since I have set the encoding (via an action), the logic in the above funciton will fall in the line String[] decoded_values = new String[values.length]; But what happens if values is null from the first line String[] values = this.req.getParameterValues(name); surely values.length will fail straight away! What should I do about this? Cheers Alban This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URL's help for cocoon
Here are a few sites that have helped me in the past: http://wiki.cocoondev.org/Wiki.jsp http://xml.apache.org/cocoon/index.html http://www.cocooncenter.de/cc/documents/home/ http://wiki.cocoondev.org/Wiki.jsp?page=CocoonCompetenceCenter http://www.mail-archive.com/ Regards, Richard. -Original Message- From: zze-MORY Nicolas FTRD/DMI/REN [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 12:18 To: [EMAIL PROTECTED] Subject: URL's help for cocoon Can you give me many site to help me to better understand cocoon please ? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon and SVG graphics under SuSe Linux
[EMAIL PROTECTED] writes: I'm running Cocoon's SVG sample (under static-content, SVG introduction page) under SuSe Linux 8.1. All works fine except for the graphics. They don't show up, but generate loads of errors in WEB-INF/logs instead. It says that it cannot find the reference key for each graphic. Under the hood the SVG code is serialized to .PNG format. Under Windows everything works fine. The copy of Cocoon is exacltly the same as under Linux. Does anyone know where I could find the problem? Could it have anything to do with user-rights? I have full-access to the Linux box. Tomcat runs under a username called wwwrun with no group attached to it. Every file under cocoon is owned by wwwrun:nogroup and has ugo+rwx. Are the pngs created at all? One common problem was, that die SVG serializer needs access to the X11 DISPLAY for some versions of AWT. I think it's not a problem for JDK 1.4.1. Something like /usr/X11R6/bin/Xvfb :1 -screen 0 800x600x8 export DISPLAY=:1 in your catalina.sh should help. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Change default encoding in the transformer
I'd like to change the default encoding in my custom transformer, how can I do that ? Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Don't work Cocoon Portal after installation Cocoon 2.0.4
Hi, I have installed Tomcat 4.1.18 on windows 2000 sp3 and Jdk1.4 after I download Cocoon 2.0.4 src and I follow instruction in Install file I have used the manual installation: .\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps webapp copy .\build\cocoon\cocoon.war %TOMCAT_HOME%\webapps\cocoon.war Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the .\lib\core\ to the %TOMCAT_HOME%\common\endorsed directory Restart the servlet engine Cocoon seem work fine when I open http://localhost:8080/cocoon/with internet esplorer, but when I go on Cocoon Portal login page( http://localhost:8080/cocoon/sunspotdemoportal)and I try enter withUser: cocoon Password: cocoon or User: guest Password: guest I have this answer: Cocoon 2 - Internal server error type fatal message null description java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri/cocoon/sunspotdemo-portal path-infosunspotdemo-portal stack-tracejava.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:692) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:769) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) at org.apache.cocoon.www.sitemap_xmap.matchN400496(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5223) at org.apache.cocoon.www.sitemap_xmap.process(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3313) at org.apache.cocoon.www.sitemap_xmap.process(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3091) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at org.apache.cocoon.Cocoon.process(Cocoon.java:579) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at
Re: Change default encoding in the transformer
You're right. But my transformer take a part of SAX events sent by the generator and parse it : Here some lines of my transformer : . public void endElement(String uri, String loc, String raw) throws SAXException { if (extractLevel == 0) { super.endElement(uri,loc,raw); } else { this.currentBuilder.endElement(uri,loc,raw); if (this.extractURI.equals(uri) this.extractElement.equals(loc)) { extractLevel--; getLogger().debug(extractLevel now + extractLevel + .); if (extractLevel == 0) { // finish building the DOM. remove existing prefix mappings. Iterator itt = prefixMap.entrySet().iterator(); while (itt.hasNext()) { Map.Entry entry = (Map.Entry) itt.next(); this.currentBuilder.endPrefixMapping((String)entry.getKey()); } this.currentBuilder.endDocument(); /** * request in textml */ Document doc = this.currentBuilder.getDocument(); - create the DOM document String id = null; String stringQuery = null; ByteArrayInputStream my_string_as_stream = null; InputSource input_source = null; this.request = new StringBuffer(); try { this.format.put(OutputKeys.ENCODING, UTF-16); id = org.apache.cocoon.xml.XMLUtils.serializeNode(doc, this.format); - serialized the DOM to a String this.request.append(id); That doesn't work...the is still have the header ISO-8859-1 encoding. At 14:45 10/03/2003 +0100, you wrote: Lionel Crine [EMAIL PROTECTED] writes: I'd like to change the default encoding in my custom transformer, how can I do that ? How is a transformer related to encoding? It's a internal component and is working on java strings only (unless it is reading additional data from a external source). Set the encoding in your serializer. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Precisions: Problem getting parameters with POST method and a File input
Hi ! I've recently posted an issue, and I've got new elements. My problem is : I can't pass a request parameter through the sitemap when I put a file path in an HTML FILE input and send it as POST multipart/form-data to a Cocoon 2.0.4 servlet. When I don't try to upload any file, I can pass the parameter value. When I try to upload a file, I can't get the parameter value anymore. Actually, it's as if there are no parameters in the request. Can somebody tell me if he can reproduce this problem on his environment ? Michael. My last message was : Hi ! I've recently upgraded to Cocoon 2.0.4 and something doesn't work anymore : I now can't get a parameter value in the sitemap with the RequestParamAction and the POST method. Here's my configuration : Cocoon 2.0.4, JDK 1.3, Jetty, Jboss MultipartRequestFactoryImpl (defined in a web.xml file) Here's the way I use it : I want to get a parameter named 'actiontype' and defined in a form and I want to pass its value through the sitemap to an action. I've got a sitemap.xmap file : !-- T e a c h e r W o r k {1} teacher work Id -- map:match pattern=teacherWork/*.html map:act type=request map:parameter name=parameters value=true/ map:act type=upload !-- This parameter determines the action -- map:parameter name=actiontype value={actiontype}/ ... And I've got an HTML form (this page is dynamicly generated, here's an instance) : form enctype=multipart/form-data method=post action=teacherWork/18.html input type=hidden name=actiontype value=main/ input type=file name=filename/ ... And I've got a cocoon action of my own with a logger showing me the value of the parameter named 'actiontype'. With cocoon 2.0.3, everything works fine. With cocoon 2.0.4 : when method=post the logs say actiontype = '' when method=get the logs say actiontype = 'main' Everything would be alright in the best world if i didn't need to use the POST method (in order to have a FilePartFile object in the request). I'm sure the only difference is the version of cocoon that I'm using although there's still the possibility that I forgot some other change of mine. Would anybody help me ? Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change default encoding in the transformer
i found something which work. ... try { this.format2 = org.apache.cocoon.xml.XMLUtils.defaultSerializeToXMLFormat(true); id = org.apache.cocoon.xml.XMLUtils.serializeNode(doc, this.format2); this.request.append(id); ... Hope that helps other people. At 14:53 10/03/2003 +0100, you wrote: You're right. But my transformer take a part of SAX events sent by the generator and parse it : Here some lines of my transformer : . public void endElement(String uri, String loc, String raw) throws SAXException { if (extractLevel == 0) { super.endElement(uri,loc,raw); } else { this.currentBuilder.endElement(uri,loc,raw); if (this.extractURI.equals(uri) this.extractElement.equals(loc)) { extractLevel--; getLogger().debug(extractLevel now + extractLevel + .); if (extractLevel == 0) { // finish building the DOM. remove existing prefix mappings. Iterator itt = prefixMap.entrySet().iterator(); while (itt.hasNext()) { Map.Entry entry = (Map.Entry) itt.next(); this.currentBuilder.endPrefixMapping((String)entry.getKey()); } this.currentBuilder.endDocument(); /** * request in textml */ Document doc = this.currentBuilder.getDocument(); - create the DOM document String id = null; String stringQuery = null; ByteArrayInputStream my_string_as_stream = null; InputSource input_source = null; this.request = new StringBuffer(); try { this.format.put(OutputKeys.ENCODING, UTF-16); id = org.apache.cocoon.xml.XMLUtils.serializeNode(doc, this.format); - serialized the DOM to a String this.request.append(id); That doesn't work...the is still have the header ISO-8859-1 encoding. At 14:45 10/03/2003 +0100, you wrote: Lionel Crine [EMAIL PROTECTED] writes: I'd like to change the default encoding in my custom transformer, how can I do that ? How is a transformer related to encoding? It's a internal component and is working on java strings only (unless it is reading additional data from a external source). Set the encoding in your serializer. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Don't work Cocoon Portal after installation Cocoon 2.0.4
You need to use in step 'a' the -Dinclude.scratchpad.libs=yes.Here it is: .\build.bat -Dinclude.webapp.libs=yes -Dinclude.scratchpad.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps webapp Its because the portal demo is in the scratch pad area..if you look the the cocoon installation page its given there. hope that helps, GG [EMAIL PROTECTED] 03/10/03 07:47AM Hi, I have installed Tomcat 4.1.18 on windows 2000 sp3 and Jdk1.4 after I download Cocoon 2.0.4 src and I follow instruction in Install file I have used the manual installation: a.. .\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps webapp b.. copy .\build\cocoon\cocoon.war %TOMCAT_HOME%\webapps\cocoon.war c.. Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the .\lib\core\ to the %TOMCAT_HOME%\common\endorsed directory d.. Restart the servlet engine Cocoon seem work fine when I open http://localhost:8080/cocoon/ with internet esplorer, but when I go on Cocoon Portal login page( http://localhost:8080/cocoon/sunspotdemoportal ) and I try enter with User: cocoon Password: cocoon or User: guest Password: guest I have this answer: Cocoon 2 - Internal server error type fatal message null description java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/sunspotdemo-portal path-info sunspotdemo-portal stack-trace java.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:692) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:769) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) at org.apache.cocoon.www.sitemap_xmap.matchN400496(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5223) at org.apache.cocoon.www.sitemap_xmap.process(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3313) at org.apache.cocoon.www.sitemap_xmap.process(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3091) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at org.apache.cocoon.Cocoon.process(Cocoon.java:579) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at
Re: Axis as Cocoon component?
Hi Markus, I'm trying to get running Your SoapServer and have problems. I was trying to integrate the Server in my existing Cocoon (v. 2.0.3) application, but have problems with Excalibur libraries, because You are using the latest one. I have checked out the latest CVS version of Cocoon, but the version is buggy and I was unable to compile. What is Your configuration for using SoapServer? Thanks, Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis as Cocoon component?
Hi Alexander, On Mon, Mar 10, 2003 at 03:44:26PM +0100, Alexander Enns wrote: Hi Markus, I'm trying to get running Your SoapServer and have problems. ok. I was trying to integrate the Server in my existing Cocoon (v. 2.0.3) application, but have problems with Excalibur libraries, because You are using the latest one. Yes, there are some differences between the libraries in CVS HEAD and 2.0.3. From memory I think the use of the sourceresolver needs to be modified if you want to get the soap server working with 2.0.3. I have checked out the latest CVS version of Cocoon, but the version is buggy and I was unable to compile. Do you mean the soap server isn't compiling or Cocoon itself ? Can you send in a log of the errors you are receiving ? I have Cocoon CVS working fine in my environment here. (Note, I recently moved the soap server to a 'block' last week) What is Your configuration for using SoapServer? I use it with a snapshot from 2.1 CVS HEAD. I had used a modified version with 2.0.3, but we upgraded our Cocoon version recently and now it's 2.1 all the way. Hope that helps. Cheers, Marcus -- . ,,$, Marcus Crafter ;$' ':Computer Systems Engineer $: : ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$,_/\ :' 60327 Frankfurt Germany ' /( \_' . : - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Flowscript
Hi all. I'm tryng to get flowscript work When I try to use flowscript, as in the flow/calc demo of cocoon2.1 i get this error: ReferenceError: Continuation is not defined. (resource://org/apache/cocoon/components/flow/javascript/system.js; line 15) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557) at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1076) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2265) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:58) at org.apache.cocoon.components.flow.javascript.JavaScriptInterpreter.callFunction(JavaScriptInterpreter.java:531) at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:197) What is it? Seems an internal error! Anyone can help me? My sitemap is: map:components map:generators default=file/ map:transformers default=xslt/ map:readers default=resource/ map:serializers default=html/ map:matchers default=wildcard map:matcher logger=sitemap.matcher.header name=filename src=org.apache.cocoon.matching.modular.CachingRegexpMatcher input-module name=request-param parameterfilename/parameter /input-module /map:matcher /map:matchers map:selectors default=browser/ map:flow-interpreters default=JavaScript/ /map:components !-- === Pipelines = -- map:flow language=JavaScript map:script src=test.js/ /map:flow map:pipelines map:pipeline map:match pattern=test map:generate src=test.xml / map:serialize type=xml / /map:match map:match pattern=kont/* map:call continuation={1}/ /map:match map:match pattern=script map:call function=test/ /map:match /map:pipeline /map:pipelines and test.js is function test() { sendPage(test); } Thanks in advice, Luca Marchetti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XHTML Mobile profile
Try adding this to your MAIN sitemap.xmap in the serializers section: map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-MobileProfile" pool-grow="2" pool-max="64" pool-min="2" src="" doctype-public"-//WAPFORUM//DTD XHTML Mobile 1.0//EN/doctype-public doctype-systemhttp://www.wapforum.org/DTD/xhtml-mobile10.dtd/doctype-system encodingISO-8859-1/encoding /map:serializer You may change the doctype or encoding if you want. And then in your sitemap, you refer to this serializer writing:map:serialize type="xhtml-MobileProfile" / Hope this helps! Nesto - Original Message - From: "zze-MORY Nicolas FTRD/DMI/REN" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:16 PM Subject: XHTML Mobile profile does a xHTML Mobile profile SERIALIZER exists for cocoon ? -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
AW: esql nested queries
Hello Leo, it is not working either. But I think I know why that happends: in my source code there is the following: client ap_id=#10;645#10; if I us a attribute. I think because of #10; I get no match for the second query! Can that be? -Ursprüngliche Nachricht- Von: leo leonid [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2003 17:54 An: [EMAIL PROTECTED] Betreff: Re: esql nested queries try this: esql:get-int column=ap_id ancestor=1/ --- /Leo On Montag, März 10, 2003, at 05:36 Uhr, Scherler, Thorsten wrote: Hello group, I am using cocoon 2.0.4. I tried the following the nested esql (not working): esql:connection esql:poolINSTA/esql:pool esql:execute-query esql:query select * from xml_verkauf /esql:query esql:results esql:row-results data client ep1 esql:get-int column=ap_id/ /ep1 /client aps esql:execute-query esql:query select * from ap_tab where ap_id =esql:get-int column=ap_id/ /esql:query esql:results esql:row-results ap esql:get-columns/ /ap /esql:row-results /esql:results esql:no-resultsno-results//esql:no-results esql:error-results/ /esql:execute-query /aps /data /esql:row-results /esql:results esql:no-results/ esql:error-results/ /esql:execute-query /esql:connection As soon as I change ... select * from ap_tab where ap_id =1 I can nest the query! Why can I not use esql:get-int column=ap_id/ ? King regards Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: esql nested queries
Anyway, how many ways for sql are there? I found 3 different, what's the point in that? I am confused (again!) King regards -Ursprüngliche Nachricht- Von: Scherler, Thorsten Gesendet: Montag, 10. März 2003 18:12 An: Cocoon-Users (E-Mail) Betreff: AW: esql nested queries Hello Leo, it is not working either. But I think I know why that happends: in my source code there is the following: client ap_id=#10;645#10; if I us a attribute. I think because of #10; I get no match for the second query! Can that be? -Ursprüngliche Nachricht- Von: leo leonid [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2003 17:54 An: [EMAIL PROTECTED] Betreff: Re: esql nested queries try this: esql:get-int column=ap_id ancestor=1/ --- /Leo On Montag, März 10, 2003, at 05:36 Uhr, Scherler, Thorsten wrote: Hello group, I am using cocoon 2.0.4. I tried the following the nested esql (not working): esql:connection esql:poolINSTA/esql:pool esql:execute-query esql:query select * from xml_verkauf /esql:query esql:results esql:row-results data client ep1 esql:get-int column=ap_id/ /ep1 /client aps esql:execute-query esql:query select * from ap_tab where ap_id =esql:get-int column=ap_id/ /esql:query esql:results esql:row-results ap esql:get-columns/ /ap /esql:row-results /esql:results esql:no-resultsno-results//esql:no-results esql:error-results/ /esql:execute-query /aps /data /esql:row-results /esql:results esql:no-results/ esql:error-results/ /esql:execute-query /esql:connection As soon as I change ... select * from ap_tab where ap_id =1 I can nest the query! Why can I not use esql:get-int column=ap_id/ ? King regards Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: esql nested queries
It looks like you stored your 'ap_id's enclosed within two carriage returns. (#10; or #xA; are encoded CRs, AFAIK). So I'd recommend you strip you DB column from these CRs and change the data type for this column to INT) /Leo On Montag, März 10, 2003, at 06:12 Uhr, Scherler, Thorsten wrote: Hello Leo, it is not working either. But I think I know why that happends: in my source code there is the following: client ap_id=#10;645#10; if I us a attribute. I think because of #10; I get no match for the second query! Can that be? -Ursprüngliche Nachricht- Von: leo leonid [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2003 17:54 An: [EMAIL PROTECTED] Betreff: Re: esql nested queries try this: esql:get-int column=ap_id ancestor=1/ --- /Leo On Montag, März 10, 2003, at 05:36 Uhr, Scherler, Thorsten wrote: Hello group, I am using cocoon 2.0.4. I tried the following the nested esql (not working): esql:connection esql:poolINSTA/esql:pool esql:execute-query esql:query select * from xml_verkauf /esql:query esql:results esql:row-results data client ep1 esql:get-int column=ap_id/ /ep1 /client aps esql:execute-query esql:query select * from ap_tab where ap_id =esql:get-int column=ap_id/ /esql:query esql:results esql:row-results ap esql:get-columns/ /ap /esql:row-results /esql:results esql:no-resultsno-results//esql:no-results esql:error-results/ /esql:execute-query /aps /data /esql:row-results /esql:results esql:no-results/ esql:error-results/ /esql:execute-query /esql:connection As soon as I change ... select * from ap_tab where ap_id =1 I can nest the query! Why can I not use esql:get-int column=ap_id/ ? King regards Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 (should be) easy questions
Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried img src=images\uktop10.gif/ this also doesnt work 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. Richard. ?xml version=1.0 encoding=UTF-8 standalone=no? !-- Produced by Richard Cunliffe, Liverpool, UK - Last updated 09-March-2003 -- !-- DTD LOCATION -- !DOCTYPE document SYSTEM database.dtd !-- XML BODY -- document !-- SQL QUERY -- query titlethe database/title sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query SELECT * FROM album /sql:query /sql:execute-query /query !-- PDA VERSION -- pda titlePDA Version/title /pda !-- PC VERSION-- pc titlePC Version/title /pc !-- WAP VERSION -- wap titleWAP soundpool/title /wap /document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 (should be) easy questions
Richard Cunliffe wrote: Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried to do it that way figure out how to browse to the image on your filesystem using the file:// scheme. should be something like file://C:\tomcat\webapps . . . Then use that url. img src=images\uktop10.gif/ this also doesnt work to do it that way you need to define a reader for the gifs in your sitemap. see http://xml.apache.org/cocoon/userdocs/readers/resource-reader.html 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. I would dispense with the dtd if you're just trying to get things working. Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
questions regarding v2.1
Title: questions regarding v2.1 I have been developing a webapp with cocoon 2 for at least three months now. After building the latest system (as checked out from the repository cocoon-2.1), xmlform does not appear to be mentioned in the sitemap, but the java classes have all been built. Is this intentional? Jon
Re: AW: esql nested queries
leo leonid wrote: It looks like you stored your 'ap_id's enclosed within two carriage returns. (#10; or #xA; are encoded CRs, AFAIK). So I'd recommend you strip you DB column from these CRs and change the data type for this column to INT) Can you do that with normalize-space()? esql:get-int column=normalize-space(ap_id)/ /Leo On Montag, März 10, 2003, at 06:12 Uhr, Scherler, Thorsten wrote: Hello Leo, it is not working either. But I think I know why that happends: in my source code there is the following: client ap_id=#10;645#10; if I us a attribute. I think because of #10; I get no match for the second query! Can that be? -Ursprüngliche Nachricht- Von: leo leonid [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2003 17:54 An: [EMAIL PROTECTED] Betreff: Re: esql nested queries try this: esql:get-int column=ap_id ancestor=1/ --- /Leo On Montag, März 10, 2003, at 05:36 Uhr, Scherler, Thorsten wrote: Hello group, I am using cocoon 2.0.4. I tried the following the nested esql (not working): esql:connection esql:poolINSTA/esql:pool esql:execute-query esql:query select * from xml_verkauf /esql:query esql:results esql:row-results data client ep1 esql:get-int column=ap_id/ /ep1 /client aps esql:execute-query esql:query select * from ap_tab where ap_id =esql:get-int column=ap_id/ /esql:query esql:results esql:row-results ap esql:get-columns/ /ap /esql:row-results /esql:results esql:no-resultsno-results//esql:no-results esql:error-results/ /esql:execute-query /aps /data /esql:row-results /esql:results esql:no-results/ esql:error-results/ /esql:execute-query /esql:connection As soon as I change ... select * from ap_tab where ap_id =1 I can nest the query! Why can I not use esql:get-int column=ap_id/ ? King regards Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: esql nested queries
Scherler wrote: leo leonid wrote: (#10; or #xA; are encoded CRs, AFAIK). So I'd recommend you strip you DB column from these CRs and change the data type for this column to INT) Can you do that with normalize-space()? esql:get-int column=normalize-space(ap_id)/ On Montag, März 10, 2003, at 05:36 Uhr, Scherler, Thorsten wrote: Hello group, I am using cocoon 2.0.4. I tried the following the nested esql (not working): esql:execute-query esql:query select * from ap_tab where ap_id =esql:get-int column=ap_id/ /esql:query As soon as I change ... select * from ap_tab where ap_id =1 I can nest the query! Why can I not use esql:get-int column=ap_id/ ? You cannot apply an arbitrary function to logicsheet attributes. You should try to distinguish the different phases and tools that are orchestrated to accomplish serving an XSP. You might want to look up the functions your DBMS provides for comparing strings. You cannot use esql:get/ inside an esql:query/ UNLESS it is surrounded by an esql:parameter/ OR the query is an xsp:expr/ and composed of java strings. You need to use the ancestor attribute to refer to a result from outside this esql:execute-query/ You need to search the list and docs for examples. This has been up before, actually, only a couple of hours ago. You should add to wiki.cocoondev.org to share your new knowledge. HTH Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Don't work Cocoon Portal after installation Cocoon 2.0.4
Silvio, guess in 2.0.4 the portal is in scratchpad.libs - try including them in he build command. Regards, Holger On Mon, 10 Mar 2003, silvio wrote: Hi, I have installed Tomcat 4.1.18 on windows 2000 sp3 and Jdk1.4 after I download Cocoon 2.0.4 src and I follow instruction in Install file I have used the manual installation: .\build.bat -Dinclude.webapp.libs=yes -Dinstall.war=%TOMCAT_HOME%\webapps webapp copy .\build\cocoon\cocoon.war %TOMCAT_HOME%\webapps\cocoon.war Copy xerces-XXX.jar, xalan-XXX.jar, and the xml-apis.jar from the .\lib\core\ to the %TOMCAT_HOME%\common\endorsed directory Restart the servlet engine Cocoon seem work fine when I open http://localhost:8080/cocoon/ with internet esplorer, but when I go on Cocoon Portal login page( http://localhost:8080/cocoon/sunspotdemoportal ) and I try enter with User: cocoon Password: cocoon or User: guest Password: guest I have this answer: Cocoon 2 - Internal server error type fatal message null description java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri/cocoon/sunspotdemo-portal path-infosunspotdemo-portal stack-tracejava.lang.NullPointerException at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) at org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:692) at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:769) at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) at org.apache.cocoon.www.sitemap_xmap.matchN400496(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5223) at org.apache.cocoon.www.sitemap_xmap.process(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3313) at org.apache.cocoon.www.sitemap_xmap.process(C:\Programmi\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3091) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at org.apache.cocoon.Cocoon.process(Cocoon.java:579) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at
RE: 2 (should be) easy questions
Chris, I have set up a reader for jpeg and gif, and the backdrop is loading from remote computers. The downside is that smaller images are still not loading. I have attached my style sheet and sitemap, to aid any suggestions. Thanks, Richard. -Original Message- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 18:04 To: [EMAIL PROTECTED] Subject: Re: 2 (should be) easy questions Richard Cunliffe wrote: Hi, I have two questions: 1. I'm not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried to do it that way figure out how to browse to the image on your filesystem using the file:// scheme. should be something like file://C:\tomcat\webapps . . . Then use that url. img src=images\uktop10.gif/ - this also doesn't work to do it that way you need to define a reader for the gifs in your sitemap. see http://xml.apache.org/cocoon/userdocs/readers/resource-reader.html 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. I would dispense with the dtd if you're just trying to get things working. Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/ html head/ body background=/soundpool/images/background.gif xsl:for-each select=document br/ br/ br/ br/ table border=0 width=760 xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=right colspan=2 xsl:for-each select=pc xsl:for-each select=title span style=color:#315273; font-family:Verdana span style=color:#315273; font-family:Verdana; font-size:10pt xsl:apply-templates/ /span /span /xsl:for-each /xsl:for-each br/ /td /tr xsl:if test=position()=last() xsl:text disable-output-escaping=yeslt;/tbodygt;/xsl:text /xsl:if /table table align=left border=0 cellpadding=0 width=70% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td width=109 br/ span style=color:#2B4E71; font-family:Verdana; font-size:xx-smallhome/span br/ br/ a href=aboutus.html span style=color:#2B4E71; font-family:Verdana; font-size:xx-smallabout soundpool/span /a br/ br/ a href=database.html span style=color:#2B4E71; font-family:Verdana; font-size:xx-smalldatabase/span /a br/ br/ a href=contactus.html span style=color:#2B4E71; font-family:Verdana; font-size:xx-smallcontact us/span /a br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ /td td align=center table border=0 width=100% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=left width=296 img img=/soundpool/images/musicnews.gif/ br/ xsl:for-each select=news span style=color:#2B4E71; font-family:Verdana; font-size:small; font-weight:bold xsl:for-each select=headline span style=color:#2B4E71; font-family:Verdana; font-size:small; font-weight:bold span style=color:#447F9D; font-family:Verdana; font-size:small; font-weight:bold xsl:apply-templates/ /span /span /xsl:for-each /span /xsl:for-each br/ br/ xsl:for-each select=news span style=color:#2B4E71;
Cocoon installation help!!
Hi, I am trying to install cocoon.war (2.0.4) in WebSphere 4.0.5 on redhat linux 7.2 Server. I get the welcome page able to see most of the pages except the documentation page on the cocoon welcome page. The error is The requested URI /cocoon/dcocoon/documents/index.html was not found. Obviously the URI is wrong, if I remove dcocoon it works fine. I have an application in cocoon which is under the directory newtest and when I try to go to that the path is /cocoon/ncocoon/, its adding the first letter and then cocoon to it in the URI. Any one got this kind of error. Any help will be appreciated. If I am able to go thru the pages when I correct the URI. Thanks Raj _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Way to make XML generator ignore DTD declaration?
Hi all, I have an XML document which includes a dtd declaration like so: !DOCTYPE foo PUBLIC -//foo//foo document//EN foo.dtd [ !ENTITY bar bar ]foo/foo Everything works fine -if- I delete the DTD declaration. But only if... I don't care about validity but problem is the source file is generetd by a dump from a CMS which insists on having the declaration like so. I tried putting the DTD in the same dir as the content XML, etc etc but no luck. Is there any setting which can force the parser to ignore DTDs or another place I should be putting the DTD file? I'd rather not write a nasty little parser just to strip out the doctype declaration... Thanks in advance, -cwk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 (should be) easy questions
I see some problems with your sitemap. 'Readers' are components, must go inside the map:components element like this: map:readers default=resource map:reader logger=sitemap.reader.resource name=resource pool-max=32 src=org.apache.cocoon.reading.ResourceReader/ /map:readers associating readers with a particular file happens in a map:pipeline: map:match pattern=*.gif map:read mime-type=image/gif src=images/{1}.gif/ /map:match map:match pattern=*.jpg map:read mime-type=image/jpg src=images/{1}.jpg/ /map:match I doubt this is everything you need to set things right, but I hope it gets you on the right track also you don't need a separate pipeline for each match Charles Chris, I have set up a reader for jpeg and gif, and the backdrop is loading from remote computers. The downside is that smaller images are still not loading. I have attached my style sheet and sitemap, to aid any suggestions. Thanks, Richard. -Original Message- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 18:04 To: [EMAIL PROTECTED] Subject: Re: 2 (should be) easy questions Richard Cunliffe wrote: Hi, I have two questions: 1. I'm not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried to do it that way figure out how to browse to the image on your filesystem using the file:// scheme. should be something like file://C:\tomcat\webapps . . . Then use that url. img src=images\uktop10.gif/ - this also doesn't work to do it that way you need to define a reader for the gifs in your sitemap. see http://xml.apache.org/cocoon/userdocs/readers/resource-reader.html 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. I would dispense with the dtd if you're just trying to get things working. Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon and SVG graphics under SuSe Linux
On Monday 10 March 2003 21:20, Martin Holz wrote: [EMAIL PROTECTED] writes: I'm running Cocoon's SVG sample (under static-content, SVG introduction page) under SuSe Linux 8.1. All works fine except for the graphics. They don't show up, but generate loads of errors in WEB-INF/logs instead. Are the pngs created at all? One common problem was, that die SVG serializer needs access to the X11 DISPLAY for some versions of AWT. I think it's not a problem for JDK 1.4.1. Something like /usr/X11R6/bin/Xvfb :1 -screen 0 800x600x8 export DISPLAY=:1 in your catalina.sh should help. One more thing; make sure you have the XFree86-Xvfb module (Does Suse use RPMs?) installed. And as Martin mentioned, I also heard that under 1.4.1 it is no longer required to have X running. But _I_ have not tested that yet - IIABDFI (If it ain't broke, don't fix it). Niclas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flowscript
On Monday 10 March 2003 23:35, Luca Marchetti wrote: Hi all. I'm tryng to get flowscript work When I try to use flowscript, as in the flow/calc demo of cocoon2.1 i get this error: ReferenceError: Continuation is not defined. Flow is still in progress, and there are issues with it, for instance documentation needs improvements and a debate of polishing it up has been started. I suggest that you bring this up on Cocoon-dev instead. I think the developers like to have some more user involvement in Flow, as it will become a very integral part of Cocoon. Niclas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: questions regarding v2.1
On Tuesday 11 March 2003 02:03, Jonathan Spaeth wrote: I have been developing a webapp with cocoon 2 for at least three months now. After building the latest system (as checked out from the repository cocoon-2.1), xmlform does not appear to be mentioned in the sitemap, but the java classes have all been built. Is this intentional? The build system for 2.1 is in a transition and there might be things missing. I think you should monitor the progress on cocoon-dev instead. Niclas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Way to make XML generator ignore DTD declaration?
On Mon, Mar 10, 2003 at 07:25:00PM -0500, Colin W. Kingsbury wrote: Hi all, I have an XML document which includes a dtd declaration like so: !DOCTYPE foo PUBLIC -//foo//foo document//EN foo.dtd [ !ENTITY bar bar ]foo/foo Everything works fine -if- I delete the DTD declaration. But only if... I don't care about validity but problem is the source file is generetd by a dump from a CMS which insists on having the declaration like so. I tried putting the DTD in the same dir as the content XML, etc etc but no luck. Is there any setting which can force the parser to ignore DTDs or another place I should be putting the DTD file? I'd rather not write a nasty little parser just to strip out the doctype declaration... Heh.. well if it helps, here's a 'nasty little parser' already written, to do just this job: http://doctypechanger.sf.net/ The javadocs explain why (I think) this sort of hack is the only real solution. If you prefer, Xerces XNI pull parsing can do the same thing. It would be pretty easy to work this into a DOCTYPEMungingFileSource in Excalibur. --Jeff Thanks in advance, -cwk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No Cookies using 'Action'
Hi, I've read through all the postings, and I don't see this issue covered (except for one that's potentially related which i noted later). Hopefully that means this is a silly user-error on my part and someone can quickly sort me out. :-) We recently moved FROM: Solaris 2.6 server running apache 1.3.26, jdk1.3.1-b24, cocoon 2.0.3, Tomcat 3.2.1 TO: Solaris 2.7 (don't ask why - 9 is in the pipeline (-:), jdk1.3.1_07, cocoon 2.0.3 (ie same version), and Catalina 4.1.18 Everything has gone smoothly for the most part, except one issue. We have written an action which dynamically determines the name of the stylesheet to apply. This action looks at the cookies within the request to determine if the cookie exists to display this tylesheet. This was (and still is) working fine on our old server; but does not work in the new environment because there are no cookies returned. Example snippet of relevant code from our action class : public Map act (Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) { //Get the request component from sitemap components // NOTE: Tried ObjectModelHelper and objectModel.get /* Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT); Request request = (Request) objectModel.get(request);*/ Request request = ObjectModelHelper.getRequest(objectModel); //Get an array of the client cookies Cookie[] cArr = request.getCookies(); Cookie c = null; String VAL_RID = ; if (cArr != null) { for (int q=0;qcArr.length;q ++) { c = (Cookie) cArr[q]; //cookie found so set contain user to true //check is it user cookie or not if (c.getName().equals(RESELLER_COOKIE)) { VAL_RID = c.getValue(); } } } For some reason, the array of cookies (cArr in this example) is coming back null. We do not see the cookies even though they are there. We use this exact same code from within our xsp page, except as you are aware, the request is available from within the xsp page so we don't have to retrieve the request. The cookies are available from within the xsp (on both the old and the new server) but not from within the action code. For a given request, both code sets are called, and the cookies are seen in the xsp page but not in the action. The only post I saw remotely related to this was around catalina sessions. We are not using sessions, but the post said that if the session is picked up by catalina before the cookies, the cookies are dropped. This wouldn't explain why the cookies are available from within the xsp but not the action, but just thought I'd make a mention. Any ideas you might have will be greatly appreciated. tia, cass __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2 (should be) easy questions
Chris, I have set up a reader for jpeg and gif, and the backdrop is loading from remote computers. The downside is that smaller images are still not loading. I have attached my style sheet and sitemap, to aid any suggestions. Thanks, Richard. xsl.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Way to make XML generator ignore DTD declaration?
Colin W. Kingsbury [EMAIL PROTECTED] writes: Hi all, I have an XML document which includes a dtd declaration like so: !DOCTYPE foo PUBLIC -//foo//foo document//EN foo.dtd [ !ENTITY bar bar ]foo/foo Everything works fine -if- I delete the DTD declaration. But only if... I don't care about validity but problem is the source file is generetd by a dump from a CMS which insists on having the declaration like so. I tried putting the DTD in the same dir as the content XML, etc etc but no luck. Is there any setting which can force the parser to ignore DTDs or another place I should be putting the DTD file? I'd rather not write a nasty little parser just to strip out the doctype declaration... Tell the catalog entity revolver to always prefer the public id and direct it to your local file system. See http://xml.apache.org/cocoon/userdocs/concepts/catalog.html -- Martin Holz [EMAIL PROTECTED] Softwareentwicklung / Vernetztes Studium - Chemie FIZ CHEMIE Berlin Franklinstrasse 11 D-10587 Berlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon and SVG graphics under SuSe Linux
Niclas Hedhman [EMAIL PROTECTED] writes: On Monday 10 March 2003 21:20, Martin Holz wrote: [EMAIL PROTECTED] writes: I'm running Cocoon's SVG sample (under static-content, SVG introduction page) under SuSe Linux 8.1. All works fine except for the graphics. They don't show up, but generate loads of errors in WEB-INF/logs instead. Are the pngs created at all? One common problem was, that die SVG serializer needs access to the X11 DISPLAY for some versions of AWT. I think it's not a problem for JDK 1.4.1. Something like /usr/X11R6/bin/Xvfb :1 -screen 0 800x600x8 export DISPLAY=:1 in your catalina.sh should help. One more thing; make sure you have the XFree86-Xvfb module (Does Suse use RPMs?) installed. Yes, but they are not always compatible with redhat. On Suse-7.3 it's in the package xextra-4.1.0-45. Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]