Hi Dag ! Does your Struts work standalone without Cocoon's part ? if not,
you have to check correctness of your sample webapp.

I studied Struts before Cocoon, and you can dig for info there :
[EMAIL PROTECTED]

You also can read this document :
http://stealthis.athensgroup.com/presentations/Model_Layer_Framework/Struts_
Whitepaper.pdf

Struts is fun but I am not sure whether using it with Cocoon is a good
idea... You may study in-depth each of the frameworks, as I did (but in
French...) and do some comparison tables.

Hoping I am not too wrong,

Babs

----- Original Message -----
From: "Dag Nygaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 1:13 PM
Subject: Combining Cocoon and Struts


> There are a lot of questions raised around Cocoon and Struts, but few
> (if any) answers of how to combine the two - FAQ-food?. I am now in the
> process of attempting the combination and not being very knowledgeable
> in either Cocoon, Struts, JSP, I feel at times pretty lost. Could
> someone help me out?
>
> The setup is as follows on a Win2K platform:
> I have deployed Cocoon 2.0.3 in tomcat 4.0.4 environment, i.e. placed
> the cocoon.war file in the $CATALINA_HOME/webapps/ directory. The
> "welcome-page", http://localhost:8080/cocoon, confirms that Cocoon and
> Tomcat function OK together.
>
> A Cocoon-testapplication resides on
> $CATALINA_HOME/webapps/cocoon/myapp/, xml- and xsp-docs in subdirectory
> resources/ and stylesheets (xsl) in subdirectory styles/. A
> Hello_user.xml with matching hello_user.xsl pipeline functions OK.
>
> To test a similar Struts setup, we have created a new application
> subdirectory myjspapp, under cocoon/ in which Struts' WEB-INF/-directory
> reside with:
> - compiled classes in subdirectories/files - for both Actions and Forms
> - modified files struts-config.xml and other struts-*.tld-files,
> web.xml-file
> - lib/-directory with castor-0.9.3.21.jar, castor-0.9.3.21-xml.jar and
> struts.jar. Note: I have also copied these jar-files to
> cocoon/WEB-INF/lib/
> - src/-directory.
>
> A Hello_user.jsp-file (with a Hello_user.html-file) reside in the root
> of myjspapp uses the abovementioned hello_user.xsl-file. The pipeline I
> attempt to use looks like this:
>
>   <map:pipeline>
>    <map:match pattern="hellojsp">
>     <map:generate src="myjspapp/hello_user.jsp" type="jsp"/>
>     <map:transform src="myapp/styles/hello_user.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>
>
> This setup fails. The errormessage I get is:
> "org.apache.cocoon.ProcessingException: ServletException in
> JspGenerator.generate(): javax.servlet.jsp.JspException: Cannot find
> ActionMappings or ActionFormBeans collection"
>
> My guess is that the Struts-parts require access/setup of the
> struts-config.xml-file, but how do I do that? Is there something I
> should setup in Cocoon's cocoon.xconf-file or Cocoon's web.xml-file?
>
> --
> Dag Nygaard
> [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]>
>
>
> ________________________________________________________________
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies !
> Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
> + 1 mois de jeu en réseau offert !
> Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


---------------------------------------------------------------------
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]>

Reply via email to