cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ayana joseph" <jo_yan...@hotmail.com>
Subject DESPERATELY NEED HELP!!!!!!!
Date Wed, 20 Oct 2004 11:08:09 GMT
<html><div style='background-color:'><DIV class=RTE>Hi, I am a Masters student
from the University of the West Indies in Trinidad and I am using cocoon 2.1.3 for my thesis
project to design some forms using woody and flowscript.<BR>&nbsp;<BR>&nbsp;When
I call the pipeline to display a particular form, I get the confirmation page or the success
page instead of the form being displayed. Can anyone tell me what I am doing wrong? Here is
a sample of the code below:<BR>&nbsp;<BR>The SITEMAP :<BR>&nbsp;<BR>&lt;map:pipeline&gt;<BR>&nbsp;
&lt;map:match pattern="playerRegistration"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:call function="playerRegistration"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/map:match&gt;<BR>&nbsp;<BR>&nbsp;&lt;map:match pattern="*.continue"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:call continuation="{1}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/map:match&gt;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp; &lt;map:match pattern="player-registration-display-pipeline"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:generate src="forms/player_registration_template.xml"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:transform type="woody"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:transform type="i18n"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="locale" value="en-US"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/map:transform&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="contextPath" value="{request:contextPath}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="servletPath" value="{request:servletPath}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="sitemapURI" value="{request:sitemapURI}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="file" value="forms/player_registration_template.xml"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="remove" value="{0}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/map:transform&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:transform src="resources/woody-samples-styling.xsl"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:serialize/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/map:match&gt;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;map:match
pattern="player-registration-success-pipeline"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:generate type="jx" src="forms/player_registration_success.jx"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="contextPath" value="{request:contextPath}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="servletPath" value="{request:servletPath}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="sitemapURI" value="{request:sitemapURI}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="file" value="forms/player_registration_success.jx"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:parameter name="remove" value="{0}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/map:transform&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;map:serialize/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/map:match&gt;<BR>&nbsp;&nbsp;
&lt;/map:pipeline&gt;<BR>&nbsp;<BR>The FLOWSCRIPT:<BR>&nbsp;<BR>function
playerRegistration()<BR>{<BR>&nbsp;&nbsp; form = new Form("forms/playerRegistration.xml");<BR>&nbsp;&nbsp;&nbsp;
<BR>&nbsp; try <BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;
<BR>&nbsp; ///////connecting to DB///////<BR>&nbsp;<BR>&nbsp;
dbSelector = cocoon.getComponent(Packages.org.apache.avalon.excalibur.datasource.DataSourceComponent.ROLE&nbsp;
+ "Selector");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var dataSrc
= dbSelector.select("mysql-pool");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
conn = dataSrc.getConnection();</DIV>
<DIV class=RTE>&nbsp;&nbsp; ///////connecting to DB///////<BR>&nbsp;<BR>&nbsp;
//////executing query//////<BR>&nbsp;<BR>&nbsp; var query = "select name
from team ;";<BR>&nbsp; var stmt = conn.createStatement();<BR>&nbsp; stmt.execute(query);<BR>&nbsp;
var rs = stmt.getResultSet();</DIV>
<DIV class=RTE>&nbsp;//////executing query//////</DIV>
<DIV class=RTE>&nbsp; var list1 = buildSelectionList(rs);// puts result from database
into an array&nbsp;&nbsp; <BR>var tList = form.getWidget("team");<BR>&nbsp;
tList.setSelectionList(list1,"key","value");<BR>&nbsp; form.showForm("player-registration-display-pipeline");<BR>&nbsp;}catch(e){e.toString();}<BR>&nbsp;cocoon.sendPage("player-registration-success-pipeline");<BR>}</DIV></div><br
clear=all><hr>Express yourself instantly with MSN Messenger! <a href="http://g.msn.com/8HMBEN/2734??PS=47575"
target="_top">MSN Messenger</a> Download today it's FREE!</html>

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


Mime
View raw message