Re: sunRise User Administration for Dummies
Hi Matthew, Thanks for the response... I am done with the Authentication stuffs. And i am more concern on how I'll create my Roles ( admin, guest, user ) and on where would these datas be saved. Since the Authentication framework is providing a way to managed users and user roles. Thanks again Richard - Original Message - From: Matthew Langham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 2:26 PM Subject: RE: sunRise User Administration for Dummies Richard, this is the correct link to the _current_ version (in 2.1-dev): http://xml.apache.org/cocoon/developing/webapps/authentication.html Can I use it with a database? Yes - the authentication framework maps functions to pipelines. And as such a pipeline can do whatever _you_ want. Where would the user data be stored? Wherever _you_ want it to be. Do I need to include the portal in my applications? No. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: Richard Reyes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 10:53 PM To: C2 Users Subject: RE: sunRise User Administration for Dummies Hi Matthew, I have read the documentation a couple of times... this one http://xml.apache.org/cocoon/developing/webapps/sunrise.html But still, I cannot understand or apply anything on the User Administration... Can I use it with a database? Where would the user data be stored? Do I need to include the portal in my applications? Thanks again.. Richard === Have you guys read the documentation? The authentication framework is explained in detail here: http://xml.apache.org/cocoon/developing/webapps/index.html Let me know if you have any additional questions. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 3:07 AM To: [EMAIL PROTECTED] Subject: Re: sunRise User Administration for Dummies I've looked at the user admin and the authentication in general. (not the sunrise scratchpad but what's now in the main branch). As best as I can figure there's a generator that works with the AuthenticationManager to create an interactive page to get users, a user, roles, a role, create a user, create a role, update a user, delete a user, delete a role. These simply call the various corresponding resources that you set up with the sitemap.xml (authentication manager section within the components). As far as I can tell nothing is really done with them apart from what you do in the resource. so the UI really calls the resource that you configured and you do something with it. Whatever occurs is not automagically used within Cocoon's authentication. - 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] - 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] - 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]
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException
Hello all! In my frame based solution I have a main frame with the navigation being some links to xhtml files for the second frame. For each of these functionalities behind the links I did a sitemap in a sub-directory. The phaenomenon I realised: When I click on a navigation link for the first time everything seems ok. When clicking for the second time I get an exception from source Cocoon servlet(see below) which I cannot explain why. Furthermore I have to restart my JRUN4 server again to get everything working (but again only once the chance to click a navigation link :-( - exception -- 10/10 15:18:54 user ERROR (2002-10-10) 15:18.54:067 [cocoon.m] (/leaf/users/index5.xhtml) web-4/PipelineNode: Error while processing pipeline at file:/C:/Programme/JRun4/servers/default/SERVER-INF/temp/leaf.war-1321099155 /users/sitemap.xmap:27:-1 org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:223) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:399) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.ContainerNode.invoke(ContainerNod e.java:70) at org.apache.cocoon.components.treeprocessor.sitemap.CallNode.invoke(CallNode. java:122) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:85) ... at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:328) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:293) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java: 348) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451 ) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29 4) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerIdentityImpl.flushStartDoc(Transform erIdentityImpl.java:885) at org.apache.xalan.transformer.TransformerIdentityImpl.comment(TransformerIden tityImpl.java:1267) at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265) at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265) at org.apache.cocoon.xml.AbstractXMLPipe.comment(AbstractXMLPipe.java:265) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStrea mInterpreter.java:151) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByt eStreamInterpreter.java:102) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:219) ... 34 more - end of exception -- Unfortunately it may happen that the above phaenomenon does not appear without any changes(but only with a 1% chance when starting the JRUN server new, I guess). The main sitemap contains: -- snip map:match pattern=users/* map:mount check-reload=no uri-prefix=users src=users// /map:match /snip Using no sub-directories and therefore a differently named sub-sitemap seems to work more stable but does not provide the structured solution like I want it to be. Is this a known bug? Some ideas what I should check? Thanks, Kurt - 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: Simple XSP Ordering Problem
-Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: Montag, 14. Oktober 2002 21:56 To: [EMAIL PROTECTED] Subject: Simple XSP Ordering Problem Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... Try: xsp:logic String productId = request.getParameter(productid); if (productId == null ) productId = ; /xsp:logic Cheers, Alfred. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - 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: Simple XSP Ordering Problem
Hmmm, I didn't read about the request object in my Cocoon book. Where is it defined exactly? Do I need to import anything to use it? Thanks again, Sonny --- Nathaniel Alfred [EMAIL PROTECTED] wrote: -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: Montag, 14. Oktober 2002 21:56 To: [EMAIL PROTECTED] Subject: Simple XSP Ordering Problem Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... Try: xsp:logic String productId = request.getParameter(productid); if (productId == null ) productId = ; /xsp:logic Cheers, Alfred. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - 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] _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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]
Serializing JavaScript
I have an XSLT transformation that outputs a JavaScript file that I need to serialize as text to send to the client. I am using map:serialize type=text/, but the serialized result includes an XML declaration with markup characters escaped (as if serializing an external parsed general entity). How do I force Cocoon to serialize JavaScript the way it should be serialized, not to mention with the right media type? Any help would be much appreciated, Evan Lenz Seattle University School of Law Technology Department - 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: Simple XSP Ordering Problem
There are several objects available for use in xsp, take a quick look in the generated java, they should be documented there. J. PS, folks: when you reply, *please* trim any excess off :) From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Hmmm, I didn't read about the request object in my Cocoon book. Where is it defined exactly? Do I need to import anything to use it? Thanks again, Sonny --- Nathaniel Alfred [EMAIL PROTECTED] wrote: From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... Try: xsp:logic String productId = request.getParameter(productid); if (productId == null ) productId = ; /xsp:logic Cheers, Alfred. === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - 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: Serializing JavaScript
We had same problems. See my posting on this thread: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103243063421117w=2 This solution works for our company. For current discussion's look at : http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103431785702537w=2 hth, Frank Taffelt - 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: Resource not found /
On Dienstag, Oktober 15, 2002, at 02:14 Uhr, Bryan Zarnett wrote: I am currently trying to make a weblog application I created the main association to my root URL. Right now I have it setup so that the welcome.xhtml is called whenever I hit my URL. What I want to happen is that i want my weblog sitemap to be called and the foo.html to be passed to my weblog sitemap. For example, if the URL is http://www.foo.com/ when I pass down http://www.foo.com/index.html, my weblog sitemap is invoked. The follow is the main sitemap entry I have created in the main sitemap and blows up. map:pipelines map:pipeline map:match pattern=/** map:mount uri-prefix=/ src=file:///usr/local/jakarta-tomcat4.1.10/webapps/cocoon/weblog/xml/ sitemap.xmap/ /map:match /map:pipeline The exception I get is: Resource not found, The requested URI / was not found. I presume this has to do with my pattern and uri-prefix. I left the Cocoon book at work so I can't use it as a resource in this circumstance. use this in your main xmap map:match pattern=** map:mount uri-prefix= src=weblog/xml/sitemap.xmap/ /map:match and something like this in your sub xmap map:match pattern= map:redirect-to uri=/index.html/ /map:match /Leo - 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: How do I match cocoon-action-*
On Mon, 2002-10-14 at 17:19, Bobby Mitchell wrote: I want to be able to match cocoon-action-* and use the value {1}. Is this possible? Which matcher? Someone else just asked me this last week, so I wrote one (see attachment). It's tested with C2.03. You'll need to compile this and put it an jar and put that in WEB-INF/lib (let me know if you need more help on this). It is of course possible that there are multiple request parameter names that match, but this matcher will take the first one that it encounters. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] import org.apache.cocoon.matching.AbstractPreparableMatcher; import org.apache.cocoon.matching.helpers.WildcardHelper; import org.apache.cocoon.sitemap.PatternException; import org.apache.cocoon.environment.Request; import org.apache.cocoon.environment.ObjectModelHelper; import org.apache.avalon.framework.thread.ThreadSafe; import org.apache.avalon.framework.parameters.Parameters; import java.util.Map; import java.util.Enumeration; import java.util.HashMap; /** * Matcher that matches on the names of request parameters. The first parameter which * matches is used. */ public class RequestParameterNameMatcher extends AbstractPreparableMatcher implements ThreadSafe { public Object preparePattern(String pattern) throws PatternException { return WildcardHelper.compilePattern(pattern); } public Map preparedMatch(Object preparedPattern, Map objectModel, Parameters parameters) { int[] pattern = (int[])preparedPattern; Request request = ObjectModelHelper.getRequest(objectModel); Enumeration parameterNamesEnum = request.getParameterNames(); HashMap map = new HashMap(); while (parameterNamesEnum.hasMoreElements()) { String name = (String)parameterNamesEnum.nextElement(); if (WildcardHelper.match(map, name, pattern)) return map; } return null; } } - 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]
Writing transformer
Hey you cocoon professionals! I wrote the transformer below. It does nothing except creates an empty temp.xml-file. Why it does not respond to sax events (from TraxTransformer)? Appreciate all advice. Simo K. package org.apache.cocoon.transformation; public class StoreTransformer extends AbstractSAXTransformer { private String storeKey = null; private String filePath = C:\\Program Files\\Apache Group\\Tomcat 4.1\\webapps\\cocoon\\RF\\store\\; private PrintWriter out = null; public void configure(Configuration conf) throws ConfigurationException { super.configure(conf); if (conf != null) { /*Configuration child; this.storeKey = conf.getChild(map:parameter).getAttribute(value); */ filePath += temp.xml; try {this.out = new PrintWriter(new FileOutputStream(filePath), true);} catch(IOException e) {throw new ConfigurationException(I/O Exception + e);} } } public void startDocument() throws SAXException { emit(?xml version=\1.0\ encoding=\ISO-8859-1\?); } public void characters(char buf[], int offset, int len) throws SAXException { String s = new String(buf, offset, len); if (textBuffer == null) { textBuffer = new StringBuffer(s); } else { textBuffer.append(s); } } public void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException { String eName = sName; // element name if (.equals(eName)) eName = qName; // not namespaceAware emit(+eName); if (attrs != null) { for (int i = 0; i attrs.getLength(); i++) { String aName = attrs.getLocalName(i); // Attr name if (.equals(aName)) aName = attrs.getQName(i); emit( ); emit(aName+=\+attrs.getValue(i)+\); } } emit(); } public void endElement(String namespaceURI, String sName, String qName) throws SAXException { String eName = sName; // element name if (.equals(eName)) eName = qName; // not namespaceAware emit(+eName+); } private void emit(String s) throws SAXException {this.out.write(s);} } __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - 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]
[newbie] XMLForms XSP
Hello. Can I use XMLForms provided data with XSP logicsheets, like ESQL, Request, Session? I've searching cocoon docs, but find nothing. Any advises? Thanks in advance. - 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]
set user agent with request parameter or path element
I'm using the browser selector to display different content depending on the user agent. Now I'd like to set the user agent with a request parameter or path element. eg. url?user_agent=nokia7110 then the user agent should be set to nokia7110 to be used in the browser selector. any hints how to manage that ? thx, tom haselberger - 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: Writing transformer - I found the problem
__ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - 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: set user agent with request parameter or path element
-Original Message- From: Jörg Heinicke [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 15. Oktober 2002 12:01 To: [EMAIL PROTECTED] Subject: Re: set user agent with request parameter or path element AFAIK the best then is to use is parameter selector, not the browser selector. But so you want the request parameter? Response time because of selecting on every request? Why don't you use a nested selecting: first parameter, if it's not there use browser selector. But if this is really faster? The idea behind that is that my browser selector list will get really long, and I don't want to duplicate that list in a parameter selector. I want to be able to select the content for the pretended user agent but still set the display xslt according to the real user agent. lg, tom - 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]
XSP error
Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp=http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - 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]
XMLForm transformer
When i was developing a multi edit form, using the xf:repeat tag, i realised that it didn´t work before a simple tag call before, like count(*). I then checked the source code and found the function that's responsible for the Repeat tag unrolling : protected void unrollRepeatTag( DocumentFragment docFragment )throws SAXException inside the function i found a block wich is responsible to get all the possible locations inside the «nodeset»: Collection locations = currentForm.locate( nodeset ); Iterator iter = locations.iterator(); while ( iter.hasNext() ){ String nextNodeLocation = (String) iter.next (); after expanding the location to a group, there is also a condition check, which in point of view is unneeded: if (value_ != null) is say it because there is no previous value_ setting if our top tag is xf:repeat, wich means that we need to access a simple tag before using the xf:repeat. My sugestion is that eather remove the check (that i think is undeed) or replace it for a condition check on the group location object Form.getvalue(nextNodeLocation)!=null Best regards Nuno Santos - 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: XSP in XSL and Caching problem!
We really need some advice on this problem. It's slowing our development by 600% ! Anyone? Cocoon 2.1-DEV (from CVS about a month ago) Tomcat 4.0.5 JDK 1.4.1_01 On Thu, 10 Oct 2002, Timothy Larson wrote: I am having the same problem and am using the same ugly workaround. Tomcat 3.3.1 Cocoon 2.0.4dev (from CVS around 9-17-2002) JDK 1.4.0_02 If I serialize the XSP page as XML it is always is up-to-date, but when I use the XSP as a serverpage it is usually out-of-date. This tells me that the XML of the XSP page is being cached properly, but the JAVA code that it generates is not being updated at the same time. On rare occasions it will update with changes to the XSL page that generates it, but most of the time I have to take down Tomcat and clear the work directory to get the code generated from the XSP to update. Tim [EMAIL PROTECTED] 10/10/02 10:52AM I'm using 2.1-DEV, and one file in my application is a XSL page which generates XSP for the serverpagesGenerator. The problem here is, that no changes are committed to the browser result! Only removing the work-dir and restarting tomcat helps. And after one reload of that page it's still the same. I've changed all the pipelines to noncaching, and everything is set to false that seems like a caching instruction. I've tryed IE6, and NN7, no difference. Help, please! -Tuomo - 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] - 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] - 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: XSP error
Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - 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] - 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: Resource not found /
That worked perfectly! Thanks Leo! Bryan On Tuesday, October 15, 2002, at 04:44 AM, leo leonid wrote: On Dienstag, Oktober 15, 2002, at 02:14 Uhr, Bryan Zarnett wrote: I am currently trying to make a weblog application I created the main association to my root URL. Right now I have it setup so that the welcome.xhtml is called whenever I hit my URL. What I want to happen is that i want my weblog sitemap to be called and the foo.html to be passed to my weblog sitemap. For example, if the URL is http://www.foo.com/ when I pass down http://www.foo.com/index.html, my weblog sitemap is invoked. The follow is the main sitemap entry I have created in the main sitemap and blows up. map:pipelines map:pipeline map:match pattern=/** map:mount uri-prefix=/ src=file:///usr/local/jakarta-tomcat4.1.10/webapps/cocoon/weblog/ xml/sitemap.xmap/ /map:match /map:pipeline The exception I get is: Resource not found, The requested URI / was not found. I presume this has to do with my pattern and uri-prefix. I left the Cocoon book at work so I can't use it as a resource in this circumstance. use this in your main xmap map:match pattern=** map:mount uri-prefix= src=weblog/xml/sitemap.xmap/ /map:match and something like this in your sub xmap map:match pattern= map:redirect-to uri=/index.html/ /map:match /Leo - 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] - 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: XSP error
Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - 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] - 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] - 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]
ComponentException: UnnamedSelector
All of a sudden cocoon can't find my transformer and gives the next error message: org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: store Here are the critical parts of my sitemap: ... map:transformers default=xslt map:transformer name=store src=org.apache.cocoon.transformation.StoreTransformer/ /map:transformers ... map:match pattern=Transform map:act type=request map:parameter name=parameters value=true/ map:generate src={xmlu}/ map:transform src={xslu} map:parameter name=use-request-parameters value=true/ /map:transform map:transform type=store/ map:serialize type=xml/ /map:act /map:match Could anyone tell what's wrong? Thank you! Simo K. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - 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: XSP error
Hi, with IE 6.0 should work.. no idea Ruben |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 02:26 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: RE: XSP error | --| Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/ /map:match /map:pipeline and the helloworld.xsp looks like: xsp:page xmlns:xsp=http://apache.org/xsp; xsp:logic String text=Hello World; /xsp:logic document xsp:exprtext/xsp:expr /document /xsp:page Anyone has an idea? Thank you Sylvain - 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] - 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] - 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] - 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: XSP error
This problem looks very strange. When this problem appended, I tried to test a simple helloworld application (without XSP): map:pipeline map:match pattern=helloworld map:generate src=helloworld.xml/ map:transform src=helloworld2html.xsl/ map:serialize/ /map:match /map:pipeline and the result was a HTML page which looks like: -html -body h1Hello World/h1 /body /html The HTML tags wasn't interpreted! It's very strange. I have reloaded Tomcat three or four times and now the helloworld example above AND the XSP helloworld example (with the xml serializer) work very well. Now I have another XSP problem: Error: 500 Location: /cocoon/logicsheettest Internal Servlet Error: java.lang.IllegalAccessError: try to access method org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.addLogicsheetToList(Lorg/apache/cocoon/components/language/markup/AbstractMarkupLanguage$LanguageDescriptor;Ljava/lang/String;Lorg/apache/cocoon/environment/SourceResolver;)V from class org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$XSPTransformerChainBuilderFilter.processingInstruction(XSPMarkupLanguage.java:352) at org.xml.sax.helpers.XMLFilterImpl.processingInstruction(XMLFilterImpl.java:651) at org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage$PreProcessFilter.processingInstruction(XSPMarkupLanguage.java:222) at org.apache.xerces.parsers.SAXParser.processingInstruction(SAXParser.java:1537) at org.apache.xerces.validators.common.XMLValidator.callProcessingInstruction(XMLValidator.java:1696) etc... No idea what it is! Thank you Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:42 À: [EMAIL PROTECTED] Objet: RE: XSP error Hi, with IE 6.0 should work.. no idea Ruben |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 02:26 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: RE: XSP error | --| Thank you, it works if I serialize the output to html. But why it doesn't work? I use IE 6.0. Sylvain -Message d'origine- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Date: mardi, 15. octobre 2002 14:23 À: [EMAIL PROTECTED] Objet: Re: XSP error Hi Sylvain, it looks that the browser cannot show the XML with that namespace applying its XSL... try serializing the output to 'html' |-+- | | Sylvain.Thevoz@sw| | | isscom.com | | | | | | 10/15/2002 01:32 | | | PM| | | Please respond to | | | cocoon-users | | | | |-+- --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: XSP error | --| Hello, I try to test my first XSP page but I have this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. The namespace prefix is not allowed to start with the reserved string xml. Error processing resource 'http://localhost:8080/cocoon/helloworld'. Line 2, Position 11 document xmlns:xml=http://www.w3.org/XML/1998/namespace; xmlns:xsp= http://apache.org/xsp; --^ the sitemap fragment looks like: map:pipeline map:match pattern=helloworld map:generate src=helloworld.xsp type=serverpages/ map:serialize type=xml/
Re: set user agent with request parameter or path element
And why not simply always the browser selector?? Regards, Joerg Thomas Haselberger wrote: -Original Message- From: Jörg Heinicke [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 15. Oktober 2002 12:01 To: [EMAIL PROTECTED] Subject: Re: set user agent with request parameter or path element AFAIK the best then is to use is parameter selector, not the browser selector. But so you want the request parameter? Response time because of selecting on every request? Why don't you use a nested selecting: first parameter, if it's not there use browser selector. But if this is really faster? The idea behind that is that my browser selector list will get really long, and I don't want to duplicate that list in a parameter selector. I want to be able to select the content for the pretended user agent but still set the display xslt according to the real user agent. lg, tom -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de VIRBUS hat jetzt als erster deutscher Softwarehersteller die Zertifizierung für den 3D Secure-Authentifizierungsstandard Verified by Visa erhalten. Details unter http://www.virbus.de/de/press/pressemitteilung/20020828_verified_by_VISA. - 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: [newbie] XMLForms XSP
You certainly could. I am not a great fan of XSP myself, being bitten by JSPs many times. Maybe some of the other folks can help with examples. Ivelin - Original Message - From: Druzhinin Igor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 5:46 AM Subject: [newbie] XMLForms XSP Hello. Can I use XMLForms provided data with XSP logicsheets, like ESQL, Request, Session? I've searching cocoon docs, but find nothing. Any advises? Thanks in advance. - 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] - 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: How do I match cocoon-action-*
Someone else just asked me this last week, so I wrote one (see attachment). It's tested with C2.03. You'll need to compile this and put it an jar and put that in WEB-INF/lib (let me know if you need more help on this). It is of course possible that there are multiple request parameter names that match, but this matcher will take the first one that it encounters. IMHO this should be a part of the Cocoon project. Thanks. -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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: XMLForm - VoiceXML
--- Ivelin Ivanov [EMAIL PROTECTED] wrote: elements in XMLForm do not have to start with /. It is just used for clarity in the examples. You can try just city. You are right trying just city works. So there is no problem. What are the limitations for names of VXML forms? / in a field is certainly a limitation in IBM voiceXML browser(as it gives a processing error). And IBM voiceXML browser v3.1 supports W3C's voiceXML 2.0 grammer format. I think it will also be a problem for Nuance voice browser and VoiceGenie's voice browser but I am not sure. I shall get back after finding more about it (if there are any other limitations). -Apurva - Original Message - From: apurva zaveri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 13, 2002 9:08 PM Subject: XMLForm - VoiceXML This is a serious problem about the use of XMLForm in VoiceXML. While experimenting with XMLForm to generate VoiceXML this a problem that I faced. Since in XMLForm all the name of the fields begins with / in HTML select name=/city is not a problem while in VXML field name=/city is an error. What can be done? -Apurva Zaveri __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - 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] - 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] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - 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: set user agent with request parameter or path element
-Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 15. Oktober 2002 15:17 Subject: Re: set user agent with request parameter or path element And why not simply always the browser selector?? let me explain: a user should be able to select a friends user agent in a list and browse the user agent specific content in order to send one item of this content to the friend. but the wml xslt templates should be used for the *real* user agent of the user. so i have 2 transformations: 1. transform the content according to the real user agent OR the faked user agent to filter the user agent specific content. in both cases i want to match against the browser selector map, that contains eg. browser name=content_one useragent=Nokia/ browser name=content_two useragent=Nokia/ browser name=content_two useragent=Ericsson/ 2. transform it according to the real user agent into wml, matching against different entries in the browser selector map: browser name=nokia_wap useragent=Nokia/ browser name=ericsson_wap useragent=Ericsson/ but how can I supply the browser selector with a different user agent ? thx, tom - 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: SourceWritingTransformer.
From what I understand, yes. In 2.1 SourceWritingTransformer has been merged with ex-sunrise InsertTransformer. Alex --- ROSSEL Olivier [EMAIL PROTECTED] wrote: I use old-style SWT: source:write src=... tree-to-be-written ... /tree-to-be-written /source It seems that there is a newer syntax (with a very interesting source:insert !! ) but I can't get it to work in C2.0.3. It seems that the SWT I have still uses the old-style syntax. Is the new SWT only available in C2.1dev ? This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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] - 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: SourceWritingTransformer.
From what I understand, yes. In 2.1 SourceWritingTransformer has been merged with ex-sunrise InsertTransformer. No hope to see this feature in C2.0.4 ? It would be a so neat feature!!! This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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: XSP error
That first problem sounds suspiciously like your browser caching the mime type for the url. If it happens again, close your browser, open a new one and try again. Geoff Howard --- [EMAIL PROTECTED] wrote: This problem looks very strange. When this problem appended, I tried to test a simple helloworld application (without XSP): map:pipeline map:match pattern=helloworld map:generate src=helloworld.xml/ map:transform src=helloworld2html.xsl/ map:serialize/ /map:match /map:pipeline and the result was a HTML page which looks like: -html -body h1Hello World/h1 /body /html The HTML tags wasn't interpreted! It's very strange. I have reloaded Tomcat three or four times and now the helloworld example above AND the XSP helloworld example (with the xml serializer) work very well. __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com - 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]
How to insert multiple rows in a table at once?
Hi, I am trying to insert multiple rows into a table after the user press a Finish buton. I think this can be done with modular.databse. But I dont know how to do that. Given a fixed key: my_id from a master table and rows: my_id my_subid my_data --- usr input. Can someone provide a simple example? Regards, Antonio Gallardo - 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]
InsertTransformer
It seems that the InsertTransformer accepts sunshine:insert subtree as an input. But it provides no XML output so you know if the insertion went ok or not. SWT is much more verbose! You get an XML output that provides a success/failure result. Is it possible to get an XML output from the SunShine InsertTransformer? This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - 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: How to insert multiple rows in a table at once?
In your sitemap inside map:actions put: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction descriptorcontext://foo/bar/database.xml/descriptor throw-exceptiontrue/throw-exception /map:action In pipeline: map:act type=mod-db-add map:parameter name=table-set value=some_table_set / /map:act In database.xml put: table name=foo keys key name=my_sub_id type=int autoincrement=true primarykey=true mode name=auto type=autoincr / /key /keys values value name=my_id type=int mode name=request-param parameter=my_id type=all/ /value value name=my_data type=string mode name=request-param parameter=my_data_* type=all set=master/ /value /values /table That should work. See: http://xml.apache.org/cocoon/userdocs/actions/database-actions.html for more info, and http://localhost:8080/cocoon/samples/mod-db -Tuomo On Tue, 15 Oct 2002, Antonio Gallardo Rivera wrote: Hi, I am trying to insert multiple rows into a table after the user press a Finish buton. I think this can be done with modular.databse. But I dont know how to do that. Given a fixed key: my_id from a master table and rows: my_id my_subid my_data --- usr input. Can someone provide a simple example? Regards, Antonio Gallardo - 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] - 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: Simple XSP Ordering Problem
Somebody suggested that documentation for the request object could be found in the generated Java file for the XSP..but there isn't any documentation in there that I can see. Just curious to learn more about it. :-) Instead of: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... Try: xsp:logic String productId = request.getParameter(productid); if (productId == null ) productId = ; /xsp:logic _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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]
Can anybody solve this?
Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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: [newbie] XMLForms XSP
What do you use, if not xsp? -Original Message- From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 9:28 AM To: [EMAIL PROTECTED]; Druzhinin Igor Subject: Re: [newbie] XMLForms XSP You certainly could. I am not a great fan of XSP myself, being bitten by JSPs many times. Maybe some of the other folks can help with examples. Ivelin - Original Message - From: Druzhinin Igor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 5:46 AM Subject: [newbie] XMLForms XSP Hello. Can I use XMLForms provided data with XSP logicsheets, like ESQL, Request, Session? I've searching cocoon docs, but find nothing. Any advises? Thanks in advance. - 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] - 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] - 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: Can anybody solve this?
Can you move your xsp:logic before the Product tag? Or try this xsp:init-page String productId = request.getParameter(productid); xsp:init-page/ although the init-page tag might only work as a child of xsp:page. Artur... -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 1:58 PM To: [EMAIL PROTECTED] Subject: Can anybody solve this? Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail? campaign=tag - 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] - 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: Can anybody solve this?
Now, where would one find documentation on the xsp:init-tag tag, iima ? I've been using Cocoon for 2+yrs now (in production environments, that is), and I've never come across this ... Werner Artur Bialecki wrote: Can you move your xsp:logic before the Product tag? Or try this xsp:init-page String productId = request.getParameter(productid); xsp:init-page/ although the init-page tag might only work as a child of xsp:page. Artur... -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 1:58 PM To: [EMAIL PROTECTED] Subject: Can anybody solve this? Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail? campaign=tag - 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] - 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] - 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: Can anybody solve this?
Btw, you do not have to change it to the suggested way. Using a logicsheet within a xsp:logic element makes perfectly sense ... I think in your case, just make sure that you move the code that assigns the value of the productId request parameter to your local variable before trying to generate the content. In other words, page xsp:logic String productId = request.getParameter(productid); /xsp:logic Product xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute [snip] /Product /page should do the job. Werner Sonny Sukumar wrote: Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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] - 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: Can anybody solve this?
I think this snippet that I gleaned from the list a while back (didn't thank the author in my comment, unfortunately, so I don't remember who) addresses what you're asking: !-- Allows initialization code to be executed exactly once. This was expressed as: xsl:template match=xsp:page/*[not(starts-with(name(.), 'xsp:'))] in the xsp docs with Cocoon, but I think what's below is prettier. -- xsl:template match=xsp:page/*[not(self::xsp:*)] xsl:copy xsl:apply-templates select=@*/ xsp:logic // This code ends up inside populateDocument() before any user code String productId = request.getParameter(productid); /xsp:logic xsl:apply-templates/ /xsl:copy /xsl:template Sonny Sukumar wrote: Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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] -- Jerry Fowler Bioinformatics, Xeotron Corporation +1 713.842.2121 x292 8275 El Rio, Suite 130 Houston, Texas 77054 - 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]
svg rasterize problems
hello, i'm encountering a problem while using the batik-transcoder in cocoon 2. if the svg-file i want to rasterize has all its css-definitions inside the document (inside the style-tags) there are no problems. if the css-definitions are put in an external css-stylesheet and linked via ?xml-stylesheet href=svg.css type=text/css? no output at all is generated. when viewing the same file e.g in the acrobat viewer or in batik squiggle it is displayed as it should be. the css-file is at the right place on the server and matched correctly. the header of the svg-file is: ?xml version=1.0 encoding=iso-8859-1 standalone=no? ?xml-stylesheet href=svg.css type=text/css? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 20010904//EN http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd; svg xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:java=http://xml.apache.org/xslt/java; viewBox=587500 -213500 26500 24500 height=100% width=100% in cocoon the transcoder is defined like this: map:serializer name=svg2png mime-type=image/png src=org.apache.cocoon.serialization.SVGSerializer parameter name=transcoder value=org.apache.batik.transcoder.image.PNGTranscoder/ /map:serializer does the transcoder have any problem with this processing instruction or have i forgotten to configure something? thanks peter -- This mail sent through IMP at http://mail.unibe.ch - 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: Can anybody solve this?
-Original Message- From: Werner Guttmann [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 2:42 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Can anybody solve this? Now, where would one find documentation on the xsp:init-tag tag, iima ? I've been using Cocoon for 2+yrs now (in production environments, that is), and I've never come across this ... xsp:init-page usefull when you write your own logicsheets. It's contents are the first thing in the generate() method of generated page. I found it by looking at xsp.xsl and session.xsl in cocoon source. Artur... Werner Artur Bialecki wrote: Can you move your xsp:logic before the Product tag? Or try this xsp:init-page String productId = request.getParameter(productid); xsp:init-page/ although the init-page tag might only work as a child of xsp:page. Artur... -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 1:58 PM To: [EMAIL PROTECTED] Subject: Can anybody solve this? Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail? campaign=tag - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/in dex.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/in dex.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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] - 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,
RE: svg rasterize problems
Peter - the problem may be that Batik has failed to resolve the relative url svg.css. I've also had problems with Batik's resolver when using svg image elements that refer to external graphic files, and I've found it necessary to provide an absolute URL; this may solve your problem too, though it's a bit ugly. ?xml-stylesheet href=http://blah.blah.blah/blah/svg.css; type=text/css? Cheers! Con -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 October 2002 07:55 To: [EMAIL PROTECTED] Subject: svg rasterize problems hello, i'm encountering a problem while using the batik-transcoder in cocoon 2. if the svg-file i want to rasterize has all its css-definitions inside the document (inside the style-tags) there are no problems. if the css-definitions are put in an external css-stylesheet and linked via ?xml-stylesheet href=svg.css type=text/css? no output at all is generated. - 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: Can anybody solve this?
Artur, Somehow I couldn't move the the productId declaration initialization before the Product tag because this would move it to class level and 1.) the xsp-request:get-parameter tag must be used within the root element of the generated document (for some reason) and 2.) I get a NullPointerException when I try to use request.getParameter at the class level. I have *very* little knowledge of the request object and its XML logicsheet wrapper (I'm a newbie :-), so I unfortunately can't shed any light on the exact reasons for these things. HOWEVER: I tried the xsp:init-page tag under the xsp:page tag (before the Product tag) and it worked!! The productId declaration now comes first in the generate method so the attribute value can be computed with no problem. Thanks Artur! :-) Sonny --- Artur Bialecki [EMAIL PROTECTED] wrote: Can you move your xsp:logic before the Product tag? Or try this xsp:init-page String productId = request.getParameter(productid); xsp:init-page/ although the init-page tag might only work as a child of xsp:page. Artur... -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 1:58 PM To: [EMAIL PROTECTED] Subject: Can anybody solve this? Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail? campaign=tag - 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] _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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: Can anybody solve this?
I looked in a few places and didn't find any documentation for the xsp:init-page tag either. Artur must be the all-knowing Cocoon person. :-) --- Werner Guttmann [EMAIL PROTECTED] wrote: Now, where would one find documentation on the xsp:init-tag tag, iima ? I've been using Cocoon for 2+yrs now (in production environments, that is), and I've never come across this ... Werner Artur Bialecki wrote: Can you move your xsp:logic before the Product tag? Or try this xsp:init-page String productId = request.getParameter(productid); xsp:init-page/ although the init-page tag might only work as a child of xsp:page. Artur... -Original Message- From: Sonny Sukumar [mailto:[EMAIL PROTECTED]] Sent: October 15, 2002 1:58 PM To: [EMAIL PROTECTED] Subject: Can anybody solve this? Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail? campaign=tag - 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] - 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] - 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] _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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,
RE: svg rasterize problems
hi con, many thanks for this hint. i added the absolute URL of my server to the code and voila! everything works. thanks very much peter Zitat von Conal Tuohy [EMAIL PROTECTED]: Peter - the problem may be that Batik has failed to resolve the relative url svg.css. I've also had problems with Batik's resolver when using svg image elements that refer to external graphic files, and I've found it necessary to provide an absolute URL; this may solve your problem too, though it's a bit ugly. ?xml-stylesheet href=http://blah.blah.blah/blah/svg.css; type=text/css? Cheers! Con -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 16 October 2002 07:55 To: [EMAIL PROTECTED] Subject: svg rasterize problems hello, i'm encountering a problem while using the batik-transcoder in cocoon 2. if the svg-file i want to rasterize has all its css-definitions inside the document (inside the style-tags) there are no problems. if the css-definitions are put in an external css-stylesheet and linked via ?xml-stylesheet href=svg.css type=text/css? no output at all is generated. - 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] -- This mail sent through IMP at http://mail.unibe.ch - 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: Can anybody solve this?
Wow, Jerry, that's complicated for an XSL newbie like me. I will definitely keep it around and try to crack the code sometime. ;-) Btw, do you know of any XSL/XPath book of which you think highly? I have an XML book but it doesn't go into all that much depth. Thanks, Sonny --- Jerry Fowler [EMAIL PROTECTED] wrote: I think this snippet that I gleaned from the list a while back (didn't thank the author in my comment, unfortunately, so I don't remember who) addresses what you're asking: !-- Allows initialization code to be executed exactly once. This was expressed as: xsl:template match=xsp:page/*[not(starts-with(name(.), 'xsp:'))] in the xsp docs with Cocoon, but I think what's below is prettier. -- xsl:template match=xsp:page/*[not(self::xsp:*)] xsl:copy xsl:apply-templates select=@*/ xsp:logic // This code ends up inside populateDocument() before any user code String productId = request.getParameter(productid); /xsp:logic xsl:apply-templates/ /xsl:copy /xsl:template Sonny Sukumar wrote: Hi guys, I sent the following message (below the line) yesterday and got one good suggestion to use xsp:logic String productId = request.getParameter(productid); /xsp:logic instead of xsp:logic String productId = xsp-request:get-parameter name=productid/; /xsp:logic However, it did not work..same problem with the ordering of the generated Java code for the XSP which causes productId to try to be used (to create an attribute value for the root element) before it is declared. I would REALLY appreciate any insight into this. Thanks. :-) __ Using: Cocoon 2.0.3 with Tomcat 4.1.12 on Redhat 7.3 My problem is this: I'm writing an XSP and trying to insert an attribute in the root element of my document. The root element is Product, as this doc stores product info. Anyhow, a logicsheet inserts an xsp:attribute xsp:exprproducts.getCategory(productId)/xsp:expr /xsp:attribute into my XSP within the Product element. Now, the productId variable is declared like this *right* below the root Product element in the XSP: Product xsp:logic String productId = xsp-request:get-parameter name=productid default=/; /xsp:logic ... The problem is that in the Java class generated for the XSP declares productId AFTER the attribute code tries to call products.getCategory using productId as a parameter. This is the ONLY thing causing the error as far as I can tell, as the code works fine without putting in the attribute. Note that NO MATTER WHERE the xsp:attribute../xsp:attribute code gets inserted within the Product/Product block, the generated Java code still has the same ordering problem. Does anybody know how to fix this? I would have put the productId declaration above the root element (i.e. made it a class member of the generated Java class), but apparently one can't use the xsp-request logicsheet tags at the class level. I don't know why this is the case either. Thanks for the help! Sonny _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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] -- Jerry Fowler Bioinformatics, Xeotron Corporation +1 713.842.2121 x292 8275 El Rio, Suite 130 Houston, Texas 77054 - 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] _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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: Can anybody solve this?
Just an update... xsp:init-page String productId = xsp-request:get-parameter name=productid default=/; /xsp:init-page works just as well as xsp:init-page String productId = request.getParameter(productid); xsp:init-page/ which means that the xsp-request:get-parameter tag doesn't need to always be used within the generated doc's root element (as someone previously said). Sonny --- Artur Bialecki [EMAIL PROTECTED] wrote: Can you move your xsp:logic before the Product tag? Or try this xsp:init-page String productId = request.getParameter(productid); xsp:init-page/ although the init-page tag might only work as a child of xsp:page. Artur... _ Conserve wilderness with a click (free!) and get your own EcologyFund.net email (free!) at http://www.ecologyfund.com. _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP more! http://www.everyone.net/selectmail?campaign=tag - 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: Cocoon, sockets and not a web browser.
Hi! I've red all the information and mails. Thanks a lot. I think TRaX will be the best solution. I'm not sure if I am missing something (e.g. i18n), but for the moment it's my choice. Now I think I will not use XSP logic because it can be solved with Java. My applications will be using the same logic and transformations within servlets and other java objects. So...I do not have to use cocoon (as Jacob said before). Am I missing something? Thanks, Mauro On Wed, 9 Oct 2002, Mauro Daniel Ardolino wrote: Hi again! I've been out for a couple of hours... So then why are you considering Cocoon? Well, because may be a crosspoint between my standalone application/s and some others web applications I have to do. And of course I do not want to make the transformations programming java classes (using parsers like Xerces and Xalan) by myself, if there's something done in this way. I haven't seen the links of your posts yet. May be the answer is there. Also I want to use some XSP logic. I'm starting and I want to know if all the transformation classes used by cocoon can be used by programs in the same way as cocoon does. I mean: pipelines. For example: A gui program must create a screen dinamically with certain attributes of some entity. So by a socket it communicates with a legacy program requesting a XML definition file (the file contents the list of the attributes and some constraints). After the java program receives this information, it has to apply a XSL sheet with some filters of non desired attributes. The resulting XML file must be converted to a screen or may be converted to an html to show on a browser. May be not only a filter must be applied, may be some transformation must (e.g. i18n). What do you think? Must I try to use cocoon for this? Thanks. Mauro -- Jacob L E Blain Christen Entheal LLC - 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] -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar - 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]
Cocoon 1.8.2 and FOP 0.20.4
Has anyone gotten FOP 0.20.4 to work with Cocoon 1.8.2 Should I be able to change 1) the fop_0_15_0.jar to the new fop.jar 2) modify the cocoon properties file formatter.type.text/xslfo = org.apache.cocoon.formatter.FO2PDFFormatter and then use the new fo ??? Thanks in advance! - 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]
Using Servlet Filters
Hello. Does anybody know how to configure a filter for Cocoon servlet ? My goal is to zip the output with a CompressionFilter, as documented in Tomcat 4.0 examples. I'm trying to put this code in mu web.xml descriptor but it does nothing at all... filter filter-nameCompression Filter/filter-name filter-classcompressionFilters.CompressionFilter/filter-class init-param param-namecompressionThreshold/param-name param-value10/param-value /init-param /filter filter-mapping filter-nameCompression Filter/filter-name url-pattern/*.txt/url-pattern /filter-mapping Any help would be more than welcome ! Thanks. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - 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]
PosgreSQL and Modular DB Actions.
Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but with PostgreSQL 7.2. I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat Linux 7.3. Someone make it work? I am having problems with: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ /key /keys values value name=gname type=string/ /values /table The problem is that always it trought me a exception that tell: java.sql.SQLException: ERROR: ExecAppend: Fail to add null value in not null attribute gname What I am doing wrong? Antonio Gallardo - 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: PosgreSQL and Modular DB Actions.
Antonio Gallardo Rivera wrote: Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but with PostgreSQL 7.2. I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat Linux 7.3. Someone make it work? I am having problems with: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ I got it to work with Sybase. Above, the mode name=auto, by default is configured in cocoon/WEB_INF/cocoon.xconf as org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModule. I had to add a description for the ManualAutoIncrementModule. /key /keys values value name=gname type=string/ /values /table The problem is that always it trought me a exception that tell: java.sql.SQLException: ERROR: ExecAppend: Fail to add null value in not null attribute gname What I am doing wrong? Antonio Gallardo - 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] -- Robert J. (Bobby) Mitchell Systems Administrator NASA Institute for Advanced Concepts 555A 14th St Atlanta, Ga. 30318 Phone: (404)347-9633 Fax: (404)347-9638 - 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: PosgreSQL and Modular DB Actions.
Thanks for the info. Antonio Gallardo El Martes, 15 de Octubre de 2002 17:26, Bobby Mitchell escribió: Antonio Gallardo Rivera wrote: Hi, I am trying to run the Modular Dabatase Example from the Cocoon site, but with PostgreSQL 7.2. I am using Cocoon 2.1 (lastest CVS), Java 1.4.1, Tomcat 4.1.12 on Red Hat Linux 7.3. Someone make it work? I am having problems with: table name=groups keys key name=gid type=int autoincrement=true mode name=auto type=autoincr/ I got it to work with Sybase. Above, the mode name=auto, by default is configured in cocoon/WEB_INF/cocoon.xconf as org.apache.cocoon.components.modules.database.HsqlIdentityAutoIncrementModu le. I had to add a description for the ManualAutoIncrementModule. /key /keys values value name=gname type=string/ /values /table The problem is that always it trought me a exception that tell: java.sql.SQLException: ERROR: ExecAppend: Fail to add null value in not null attribute gname What I am doing wrong? Antonio Gallardo - 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] - 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: avalon.excalibur ping of oracle fails
In cocoon.xconf, the oradb attribute in pool-controller oradb=true is apparently no longer used. Instead, a child element allows you to specify the sql to be used to ping the database connection like this: pool-controller max=5 min=2 keep-alive disable=falseselect 1 from dual/keep-alive /pool-controller If you don't specify keep-alive it defaults to select 1, which seems to be OK for everything except Oracle. -Original Message- From: neil [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 10 September 2002 3:23 PM To: Cocoon-Users (E-mail) Subject: avalon.excalibur ping of oracle fails Hi, Has anyone using oracle already solved this one? Although my app works OK, I'm getting debug messages (shown below) indicating that the database ping fails so cocoon is dicarding the connection and creating a new one. I guess its going slower than it could due to this. I do have datasources jdbc ... pool-controller oradb=true ... in my cocoon.xconf, but this doesn't seem to be finding its way into org.apache.avalon.excalibur.datasource.AbstractJdbcConnection where it executes the query to ping the database (a different query for oracle than for other rdbms's). My cocoon is a snapshot of the cocoon_2_0_3_branch taken on 2002-08-16 and has WEB-INF/lib/avalon-excalibur-vm14-20020705.jar. - 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]
Action + Sql Transformer
I've been out of luck trying to get samples to work for Actions and SQL Transformer. For the sample Action I am receiving a: org.apache.cocoon.ProcessingException: The prefix xsp-request for element xsp-request:get-attribute is not bound.: org.xml.sax.SAXParseException: The prefix xsp-request for element xsp-request:get-attribute is not bound. I used http://localhost:8080/cocoon/fileWhat do I need to do to correct this? Btw, this is from the http://xml.apache.org/cocoon/userdocs/concepts/actions.html And for the SQL Transformer sample - no results from database query. I ran the http://localhost:8080/cocoon/docs/samples/sql/sqlpage and just gets the Hello This is my first Cocoon2 page filled with sql data! I have searched this newsgroup and found some other who had similar issues but were not able to get it working either. Someone had mentioned about viewing intermediate results between a source to sql transformer, or between transformers but I dont know how to configure mine to setup a view and see the intermediate xml files. Thanks in advance for any assistance. - 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: Help wanted: Cocoon documentation tracks!
Alle 15:31, lunedì 14 ottobre 2002, Bertrand Delacretaz ha scritto: added sql track. comments are welcome (cross-posted to -dev and -user, we need you too!) IMHO adding tracks to the Cocoon documentation could make it much more useful, by providing several reading lists targeted to the various uses of Cocoon. Please see http://outerthought.net/wiki/Wiki.jsp?page=DocumentationTracksProject about how you can easily contribute to this. This needs input from different users/developers/documenters so that each track can be specific, short and useful. - 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: [newbie] XMLForms XSP
Actions or Generators I like to keep complex logic in pure java. Find it easier to read, test, reuse, etc. Just a personal preference. Ivelin - Original Message - From: Mitchell A. Cohen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 12:59 PM Subject: RE: [newbie] XMLForms XSP What do you use, if not xsp? -Original Message- From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 9:28 AM To: [EMAIL PROTECTED]; Druzhinin Igor Subject: Re: [newbie] XMLForms XSP You certainly could. I am not a great fan of XSP myself, being bitten by JSPs many times. Maybe some of the other folks can help with examples. Ivelin - Original Message - From: Druzhinin Igor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 5:46 AM Subject: [newbie] XMLForms XSP Hello. Can I use XMLForms provided data with XSP logicsheets, like ESQL, Request, Session? I've searching cocoon docs, but find nothing. Any advises? Thanks in advance. - 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] - 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] - 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] - 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: XMLForm transformer
Nuno, please submit the patch via Bugzilla. I will gladly review and apply if appropriate. Thank you. Ivelin - Original Message - From: Nuno Santos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 6:52 AM Subject: XMLForm transformer When i was developing a multi edit form, using the xf:repeat tag, i realised that it didn´t work before a simple tag call before, like count(*). I then checked the source code and found the function that's responsible for the Repeat tag unrolling : protected void unrollRepeatTag( DocumentFragment docFragment )throws SAXException inside the function i found a block wich is responsible to get all the possible locations inside the «nodeset»: Collection locations = currentForm.locate( nodeset ); Iterator iter = locations.iterator(); while ( iter.hasNext() ){ String nextNodeLocation = (String) iter.next (); after expanding the location to a group, there is also a condition check, which in point of view is unneeded: if (value_ != null) is say it because there is no previous value_ setting if our top tag is xf:repeat, wich means that we need to access a simple tag before using the xf:repeat. My sugestion is that eather remove the check (that i think is undeed) or replace it for a condition check on the group location object Form.getvalue(nextNodeLocation)!=null Best regards Nuno Santos - 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] - 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]
TransFormers
Hi all, I am finding Cocoon very useful for our project. Thanks a lot to the developers... I have one requirement like this. Is there any Cocoon class to address this issue? Input will be a DOM node, but while parsing the DOM node all SAX events should be fir. Example: R A101/A BWorld/B /R While it got the root element as 'R', startElement() method should be invoked with proper arguments i.e name, attributelist. Again when the child element is a text node as per DOM(101 in ex.) , characters() method should be fired. I am not sure about org.apache.cocoon.transformation.ReadDOMSessionTransformer.java file whether it can meet this. Please let me know if any cocoon APIs can address this or any other free source code which can meet this requirement. If u need more clarification, please let me know. It will be a great help. thanks, Tans - 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]
Cannot render SVG images
Hi to all, I am unable to serialize SVG images to JPG with the latest Cocoon 2.0.3. When I try to acess my own website images, or even the hello.svg example in the Cocoon distribution, I always get the following message: The image http://localhost:8080/cocoon/hello.svg; cannot be displayed, because it contains errors. I have tried to browse the cocoon logs for any additional information but I cannot find anything useful. An exception is logged to the error.log file, but it isn't very instructive: ERROR (2002-10-16) 22:49.16:073 [access] (Unknown-URI) Unknown-thread/CocoonServlet: Cocoon servlet threw an Exception while trying to close stream. java.io.IOException: The stream has been closed at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:237) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1126) 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:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) ... I am using JDK1.4 on a Linux box, and the standard Cocoon 2.3 distribution. Any hints? Thanks in advance, Artur Matos. - 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]
Proposal: Documentation about database connection
What about setting up a page with the configurations needed to connect cocoon to the various database ? There is already something but is distributed among web pages, cocoon official documentation, mailing lists, etc... I was thinking about a page in which for any commercial or open source databases is written: * where to find jdbc drivers * how to modify the configuration filles * notes about personal experiences Example: Oracle: 1. download the drivers from .. 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't remember sorry) 3. web.xml: add the following lines. 4. cocoon.xconf: add the following lines. 5. sitemap.xmp: add lines like the following Notes:.. IBM As400: 1. download the drivers from .. 2. the jar you need to add to the cocoon\web-inf\lib is ... (Idon't remember sorry) 3. web.xml: add the following lines. 4. cocoon.xconf: add the following lines. 5. sitemap.xmp: add lines like the following I could do it for theese database and the ideal page is on cocoon wiky. If you give me suggestion on where to put it and the mailing list can contribute I can start the page - 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]