Re: cocoon 2.2 tutorial won't work with tomcat5.5
Hi Benjamin I remember some colleague of mine once had some problems deploying a cocoon application on Tomcat 5.5, I am not sure about the exact error and solution but he was able to quickly fix it after he enabled some more logging options on tomcat as described at [1]. Can't find any error or problem in the logs, even though tomcat was running on log-level ALL. But everything works fine in Tomcat 6. So I'll stick to that version. Thanks a lot! Mathias - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Using cocoon pipeline for import
Hi I've got to fetch some XML data from an external webserver, preprocess it - using XSLT - and store the result in our database. At the moment this is done by a shellscript. As this shall now be integrated to our application, I was wandering if using a cocoon pipeline for this task would be feasible, or a really bad idea? As far as I can see. I would only have to write my own Serializer, which instead of writing stuff to an OutputStream would commit the data to the database. Any comment is welcome. Mathias - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Using cocoon pipeline for import
Mathias, you won't have to write your own serializer but you can use the SQLtransformer [1]. [1] http://cocoon.apache.org/2.1/userdocs/sql-transformer.html Jasha -Oorspronkelijk bericht- Van: Mathias Reem [mailto:m.r...@gmx.net] Verzonden: di 6-1-2009 14:42 Aan: users@cocoon.apache.org Onderwerp: Using cocoon pipeline for import Hi I've got to fetch some XML data from an external webserver, preprocess it - using XSLT - and store the result in our database. At the moment this is done by a shellscript. As this shall now be integrated to our application, I was wandering if using a cocoon pipeline for this task would be feasible, or a really bad idea? As far as I can see. I would only have to write my own Serializer, which instead of writing stuff to an OutputStream would commit the data to the database. Any comment is welcome. Mathias - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org <>- To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: cocoon 2.2 tutorial won't work with tomcat5.5
Hi, > > > I remember some colleague of mine once had some problems deploying a > > cocoon application on Tomcat 5.5, I am not sure about the exact > > error and solution but he was able to quickly fix it after he enabled > > some more logging options on tomcat as described at [1]. > > Can't find any error or problem in the logs, even though tomcat was > running on log-level ALL. But everything works fine in Tomcat 6. So I'll > stick to that version. > last september I had the same problem and I sent a question to the mailing list, but unfortunately I couldn't solve the problem. My impression is that it should be something related to the ubuntu distribution/configuration, because I could run the same WAR file on openSUSE 10.3 using the same java and tomcat version. Unfortunately our deployment server is running ubuntu: when I'll have more time, I'll look again at the problem. Enrico - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Display tag library with cocoon 2.1
2009/1/4 Biondo Francesco Paolo : > Hi, thanks for the answer. > I'm a newbie of cocoon, I want to use this tag library with cocoon, using > CForms with definition and template file, like a JSP page. > With JSP, I define the taglib using > <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %> > > How can I get the same result with Cocoon? Well, the problem as I see it is that you want to use a CForms definition & template "like a JSP". Except it isn't a JSP, so a JSP tag library isn't going to be much use to you in this context as it's too dependent on the JSP page lifecycle and process flow. You might as well ask "how can I use this tag library in a Perl script?"... About the only way it might work would be to create some sort of "JSP tag" Cocoon transformer, that can instantiate an instance of the (or any?) tag class, simulate enough of the JSP PageContext to allow the tag to execute, then call its doStartTag/doEndTag/etc. methods when the triggering open & close elements are observed in the SAX event stream (and buffering anything in between as necessary if it's a BodyTag). But that's not something I'd recommend unless you know exactly what you're doing... In my opinion you'd be better off figuring out some other way to achieve similar effects with tables in Cocoon rather than trying to get this taglib working in an environment it's not designed for. http://displaytag.sourceforge.net/1.2/index.html mentions "sorting, paging, cropping, grouping, exporting, ..." I've not done much with CForms myself so I don't know if it's got other ways to do these, but many of them could be done in an XSL transformation, or through client-side javascript; the paging could be done through a FilterTransformer; the exporting could be done through a separate pipeline based on the same data source but with a different transformation and a FOP or HSSF serialiser... Hope this helps, Andy -- http://pseudoq.sourceforge.net/ > Excuse my bad english :) > > Bye > On Sun, 4 Jan 2009 15:33:14 +, "Andy Stevens" > wrote: >> 2009/1/4 Biondo Francesco Paolo : >>> Hello, can I use displaytag ( >>> http://displaytag.sourceforge.net/1.2/install.html ) with Apache Cocoon? >>> The Install's tutorial says to define: <%@ taglib >>> uri="http://displaytag.sf.net"; prefix="display" %>, using jsp, How can I >>> define the tag extension in xml files in Cocoon? thanks >> >> What exactly are you trying to do? Write the output of a Cocoon >> pipeline into request/session attributes then forward the request to a >> JSP that contains these tags? Have a Cocoon pipeline dynamically >> generate a JSP that contains these tags, which is subsequently run by >> the container's JSP processor? Use Cocoon's JSP generator to call a >> JSP that uses these tags, then pass the resulting output through the >> rest of a pipeline? Or something else entirely? >> >> Since you talk about outputting a taglib directive, it sounds to me >> like you're trying to dynamically generate a JSP using a Cocoon >> pipeline. Even if you could get it to work, this is probably a bad >> idea - every matching request would run a pipeline, call the JSP >> Compiler, run the resulting servlet, ... >> Not particularly efficient, and depending on what app server you're >> using it may be prone to memory or file handle leaks. If you can give >> us a better idea what you're trying to achieve we may be able to >> suggest a better way to do it. At the moment it just sounds to me >> like you need to make your mind up which view technology you want to >> use, Cocoon or JSPs. >> >> >> Andy. >> -- >> http://pseudoq.sourceforge.net/ Open source java sudoku application - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
form validation bug re. the aggregate field?
Hi, (Using Cocoon 2.1.7) I have a form with an aggregate field whose "required" property is set to "false" like so: I also have a save button that is set to validate the other fields whose required property is "true" like so: The net result is that I still have to put something into the aggregate field before it will save--else it simply flashes the form on the screen without saving anything and without entering the flow script. Once I set the save command to NOT validate, then I don't have to fill in the aggregate field. Is there some bug where the validate= "true" does not play with the aggregate field, always expecting it to be set to some value? thx Paul - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Access Settings object of Spring Configurator inside sitemap.xmap?
hi, just a quick one... is it possible to access the "settings" object of the cocoon spring configurator (to get the supposed cache dir) within the sitemap ? or do I have to write my own input module in order to get that running? cheers, gabriel __ Mag. Gabriel Gruber Senior Consultant +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Workflow EDV GmbH, Dannebergplatz 6/23, A-1030 Wien
Re: Using cocoon pipeline for import
Hi Jasha you won't have to write your own serializer but you can use the SQLtransformer. Thx. I had seen the SQLtransformer but thought, that it's intended to add data (from a DB) to a XML document. And doesn't each "match-block" in a pipeline need a sink (Serializer), for all the SAX Events. As this transformer would consume all events, I thought that would lead to errors. I'm totally new to Cocoon, so sorry if I write bullshit. cu Mathias - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Using cocoon pipeline for import
Hi Jasha, If I am interested in xml-relational mapping only, should I use SQLtransformer or Hibernate? Thanks, Tak On Tue, Jan 6, 2009 at 9:12 AM, Jasha Joachimsthal < j.joachimst...@onehippo.com> wrote: > Mathias, > > you won't have to write your own serializer but you can use the > SQLtransformer [1]. > > [1] http://cocoon.apache.org/2.1/userdocs/sql-transformer.html > > Jasha > > > -Oorspronkelijk bericht- > Van: Mathias Reem [mailto:m.r...@gmx.net] > Verzonden: di 6-1-2009 14:42 > Aan: users@cocoon.apache.org > Onderwerp: Using cocoon pipeline for import > > Hi > > I've got to fetch some XML data from an external webserver, preprocess > it - using XSLT - and store the result in our database. At the moment > this is done by a shellscript. > > As this shall now be integrated to our application, I was wandering if > using a cocoon pipeline for this task would be feasible, or a really bad > idea? As far as I can see. I would only have to write my own Serializer, > which instead of writing stuff to an OutputStream would commit the data > to the database. > > Any comment is welcome. >Mathias > > - > To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org > For additional commands, e-mail: users-h...@cocoon.apache.org > > > > - > To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org > For additional commands, e-mail: users-h...@cocoon.apache.org >