Form Validation
Can someone explain this to me in laymans terms ? map:match pattern=formvalidation/test map:act type=form-validator map:parameter name=descriptor value=context:///docs/samples/formvalidation/descriptor.xml/ map:parameter name=validate-set value=car-reservation/ map:redirect-to resource=dynamic-page target=docs/samples/formvalidation/OK/ /map:act map:redirect-to resource=dynamic-page target=docs/samples/formvalidation/ERROR/ /map:match - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form Validation
Thanks Greg I assume by default on submit , the evaluvation is carried as per ERROR.xsp , and this is why it is not part of map:acttags map:redirect-to resource=dynamic-page target=docs/samples/formvalidation/ERROR/ This is the standard way I suppose !?! Lakshmi -Original Message- From: Gregory Steuck [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 2:28 PM To: [EMAIL PROTECTED] Subject: Form Validation map:match pattern=formvalidation/test If your request is for formvalidation/test url, continue inside match element. map:act type=form-validator map:parameter name=descriptor value=context:///docs/samples/formvalidation/descriptor.xml/ map:parameter name=validate-set value=car-reservation/ Execute form-validator action with 2 parameters above. map:redirect-to resource=dynamic-page target=docs/samples/formvalidation/OK/ If form-validator action succeeded, execute dynamic-page pipeline with docs/samples/formvalidation/OK target. /map:act map:redirect-to resource=dynamic-page target=docs/samples/formvalidation/ERROR/ If form-validator failed, execute dynamic-page pipeline with docs/samples/formvalidation/ERROR target. /map:match - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon - Is it enough
Hi Has cocoon proven successful front end architechture for major B2B or System Application . I am in the process of creating a modular framework for a front end that shall involve different services . The goal would be to add and manage services as they come live ..Users may have different services and levels of usage of these services are based on roles and permissions . The proposed model is a tree view of services(left hand ) detailed view of services or componets on the right side . Will cocoon answer all my needs to intergrate with EJbs / JavaBeans revert back to JSP /and usage of Javascript. I am particular inpressed with the sitemap feature and intrigue by the different ways we could use that . Please share your experiences and thoughts and ideas based on your experience with Cocoon . Thanks Lakshmi - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon2 -changes in web.xml
I made the following change in cocoon\webapp\WEB-INF\web.xml before making the war file . Added : !-- change param value to path to Catalina's servlet.jar -- init-param param-nameextra-classpath/param-name param-valuec:\Tomcat\tomcat\common\lib\servlet.jar/param-value /init-param THis is imediatly followed by /servlet servlet-mapping servlet-nameCocoon2/servlet-name url-pattern//url-pattern /servlet-mapping /web-app Does the Error Message below indicate that the ordering of tags inside the servlet tag ! --- Starting service Tomcat-Standalone Apache Tomcat/4.1-dev PARSE error at line 220 column 13 org.xml.sax.SAXParseException: The content of element type servlet must match (icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini t-pa ram*,load-on-startup?,security-role-ref*). Starting service Tomcat-Apache Apache Tomcat/4.1-dev Thanks Lakshmi - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie:Force Changes in Sitemap to Take Effect
Hi I am experimenting with Jeremy Aston's CTwIG (By the way great guide (meant for me ??) . I have created the sample xml and xsl amd made the suggested changes in sitemap.xmap file viz. map:match pattern=ctwig/*.xml map:generate type=file src=ctwig/{1}.xml/ map:transform type=xslt src=ctwig/{1}.xsl/ map:serialize/ /map:match I did restart cocoon but I get a 404 file not found error . What should I do ?? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie:Force Changes in Sitemap to Take Effect
It worked Thanks any way . -Original Message- From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 4:54 PM To: Cocoon-Users (E-mail) Subject: Newbie:Force Changes in Sitemap to Take Effect Hi I am experimenting with Jeremy Aston's CTwIG (By the way great guide (meant for me ??) . I have created the sample xml and xsl amd made the suggested changes in sitemap.xmap file viz. map:match pattern=ctwig/*.xml map:generate type=file src=ctwig/{1}.xml/ map:transform type=xslt src=ctwig/{1}.xsl/ map:serialize/ /map:match I did restart cocoon but I get a 404 file not found error . What should I do ?? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Get Cocoon Working
THanks Ciao, I suppose you are talking about Cocoon 2.o . I have got cocoon two with Tomcat 4.0 Do I need to build the apache Cocoon files or can i use the executable provided with the downloads . Lakshmi -Original Message- From: Gianugo Rabellino [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 2:33 AM To: [EMAIL PROTECTED] Subject: Re: Get Cocoon Working The exception stack trace : Any Ideas ? A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Class org.apache.cocoon.Cocoon is not a Servlet Which is totally true. Did you explicitly configure your environment to use the org.apache.cocoon.Cocoon class somewhere? The right one is org.apache.cocoon.servlet.CocoonServlet. Ciao, -- Gianugo - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Get Cocoon Working
Got cocoon working on Weblogic6.1. (atleast partially ) .but I am not able to completely transform xml pages ! Is there a Cocoon.xml file located (?!?!?!?! )(http://localhost:7001/cocoon/ Gives a Error 403--Forbidden Messages Futhur down I can see some xml pages like /samples/index.xml . -Original Message- From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 4:33 PM To: '[EMAIL PROTECTED]' Subject: RE: Get Cocoon Working Attempting to INstall cocoon2 on weblogic . But am stuck with a Null Pointer Exception (stack trace below). Can anybody make something out of it ? Any input will be appreciated .. I am determined to set it up today . Oct 2, 2001 3:10:33 PM PDT Notice WebLogicServer Started WebLogic Admin S erver myserver for domain mydomain running in Production Mode DEBUG 10020 [cocoon ] (): load-class was not set - defaulting to false? DEBUG 10020 [cocoon ] (): init-classloader was not set - defaulting to false WARN10020 [cocoon ] (): Servlet initialization argument 'configurations'not specified, attempting to use '/cocoon.xconf' DEBUG 10020 [cocoon ] (): Using configuration file: /cocoon.xconf Oct 2, 2001 3:11:18 PM PDT Error HTTP [WebAppServletContext(7786908,cocoon,/cocoon)] Servlet failed with Exception java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.avalon.framework.context.DefaultContext.put(DefaultContext .java:107) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:179) THanks LAkshmi From: Lakshmi Anantharaman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 3:44 PM To: '[EMAIL PROTECTED]' Subject: RE: Get Cocoon Working Created the WAR file with the change mentioned in web.xml(Cocoon2\webapp\WEB-INF) and I have it at Tomcat\webapps\ . Not able to start Tomcat ? Am I missing anything Apache Tomcat/4.0 SessionListener: contextDestroyed() java.lang.IllegalArgumentException: Document base ..\webapps\cocoon does not exi st or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext. java:182) at org.apache.catalina.core.StandardContext.setResources(StandardContext .java:1084) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 -Original Message- From: Gianugo Rabellino [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 12:42 PM To: [EMAIL PROTECTED] Subject: Re: Get Cocoon Working THanks Ciao, I suppose you are talking about Cocoon 2.o . I have got cocoon two with Tomcat 4.0 Do I need to build the apache Cocoon files or can i use the executable provided with the downloads . The executable (the jar/war) is more than enough. There is a misconfiguration somewhere (AFAIK not in the default distro, I have to assume that it's something you did) that maps something to org.apache.cocoon.Cocoon instead then to the proper entry point which is org.apache.cocoon.servlet.CocoonServlet. Most probably it's a connector (mod_jk?) directive or an error in Cocoon's web.xml. It might also be an old version of Cocoon floating around, if I recall correctly the class name for the servlet is the one used today by the main Cocoon class. Ciao, -- Gianugo Rabellino - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Get Cocoon Working
What is going wrong . I am able to start tomcat wih Cocoon installed but not able to view .xml files . The follwing is the error thrown HTTP Status 503 - Servlet org.apache.cocoon.Cocoon is currently unavailable The requested service (Servlet org.apache.cocoon.Cocoon is currently unavailable) is not currently available. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Get Cocoon Working
The exception stack trace : Any Ideas ? A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Class org.apache.cocoon.Cocoon is not a Servlet at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:836) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) .. Root Cause: java.lang.ClassCastException: org.apache.cocoon.Cocoon at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:832) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase -Original Message- From: Sergio Carvalho [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 4:14 PM To: [EMAIL PROTECTED] Subject: Re: Get Cocoon Working Look on cocoon/WEB-INF/logs for a more detailed error description. On Mon, 1 Oct 2001 15:08:54 -0700 , Lakshmi Anantharaman wrote: From: Lakshmi Anantharaman [EMAIL PROTECTED] -- What is going wrong . I am able to start tomcat wih Cocoon installed but not able to view .xml files . The follwing is the error thrown HTTP Status 503 - Servlet org.apache.cocoon.Cocoon is currently unavailable The requested service (Servlet org.apache.cocoon.Cocoon is currently unavailable) is not currently available. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sergio Carvalho --- [EMAIL PROTECTED] If at first you don't succeed, skydiving is not for you - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]