You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Häger <mm...@gmx.de> on 2004/10/11 09:43:15 UTC

Tomcat exits when opening cForms site

Hello,

i am having the following problem. I open a cForms site, and from this 
site I want to redirect to another cForms site.
But this is not possible. Each time I press the button on the first page 
to redirect to the second site I get  an infinite loop and mostly Tomcat 
exits.

I recognize that when I redicret to an "xsp" instead a second "cForms" 
site, everything works fine.
If I open the second cForms site directly with url input everything 
works fine, too.

Now I would like to ask if it isn't possible to open cFroms site from 
other site that are also created with cForms.

Thank Michael

Enclosed my code


///////////////// site map ///////////////////////////////
// call the flowscript
   <map:match pattern="*site">
         <map:select type="request-method">
             <map:when test="POST">
                   <map:call 
continuation="{request-param:continuation-id}"/>
             </map:when>
             <map:otherwise>
                 <map:call function="{1}JS">
                 </map:call>
             </map:otherwise>
        </map:select>
    </map:match>

//building the forms pages
<map:match pattern="*pipeline">
           <!-- pipeline to show the form -->
           <map:generate src="forms/{1}_template.xml"/>
           <map:transform type="forms"/>
           <map:transform type="i18n">
             <map:parameter name="locale" value="en-US"/>
           </map:transform>
           <map:call resource="simple-page2html">
             <map:parameter name="file" value="forms/{1}_template.xml"/>
           </map:call>
           <map:transform src="resources/forms-samples-styling.xsl"/>
           <map:serialize/>
         </map:match>


////////////////first_side////////////////////////////////////////////////////
// First site flowscript
function firstJS(){
var form = new Form("forms/first_side_forms.xml");
form.showForm("first_side-pipeline");
cocoon.sendPage("secondsite");
}

//First form template
...
// I need the method="Post" because I use ListBoxes Elements (s. 
/samples/blocks/forms/carselector)
<ft:form-template action="firstside" method="POST">
     <ft:widget-label id="name"/>
     <ft:widget id="name"/>
     <br/>
    .....<!-- some other fields -->
<input type="submit"/>
</ft:form-template>
...
//////////////////////////Second side/////////////
function secondJS(){
var form = new Form("forms/second_side_forms.xml");
form.showForm("second_side-pipeline");
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org