You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by sylviat <sy...@yahoo.com> on 2002/07/18 21:53:54 UTC

action-set problem

Hello -

I am a new cocoon user trying to use an action-set
for the first time.  Specifically, I'm trying to use
the same action-set as in the cocoon 2.0.2 sample pgm
'employee.xsp' (found under 'Web
Applications'-->'Manage 
Employee'). The actions in this set update, add or
delete
from a database.  I have read the documentation and
believe
I understand how it works, and I've analyzed the code
at length.  But I still can't get code to run!

First, here's the cocoon 2 'employee.xsp' sitemap
entries:
------------------------------------------------------
<map:match pattern="forms/employee">
	<map:act set="employee">
		<map:parameter name="descriptor"
value="context://docs/samples/forms/employee.xml"/>
    <map:generatesrc="docs/samples/forms/employee.xsp"
type="serverpages"/>
    <map:transform
src="stylesheets/dynamic-page2html.xsl">
      <map:parameter name="view-source"
value="docs/samples/forms/employee.xsp"/>
    </map:transform>
    <map:serialize/>
  </map:act>
</map:match>

The action set: 
-----------------------

<map:action-set name="employee">
	<map:act action="Add"    type="add-employee"/>
	<map:act action="Delete" type="del-employee"/>
	<map:act action="Update" type="upd-employee"/>
</map:action-set>
                
and the corresponding action declarations:
------------------------------------

<map:action 
	logger="sitemap.action.add-employee"
	name="add-employee" 
	src="org.apache.cocoon.acting.DatabaseAddAction"/>
<map:action logger="sitemap.action.del-employee"
	name="del-employee"
	src="org.apache.cocoon.acting.DatabaseDeleteAction"/>
<map:action logger="sitemap.action.upd-employee"
	name="upd-employee"
	src="org.apache.cocoon.acting.DatabaseUpdateAction"/>
    

======================================================
My sitemap entry for my application,
======================================================

<map:match pattern="demo/dms">
  <map:act set="employee"> 
  	<map:parameter name="descriptor"
value="context://demo/course.xml"/> 
		<map:generate  src="demo/dms.xsp"
type="serverpages"/>
		<map:transform
src="stylesheets/dynamic-page2html.xsl">
			<map:parameter name="view-source"
value="demo/dms.xsp"/>
	  </map:transform>
	<map:serialize/>
	</map:act>
</map:match>

I modelled this on employee.xsp and used the same
action-set.
For "descriptor" I pass'demo/course.xml'to map my
input data. 

Here's the problem: ----------------
When I try to run this I get
"The requested resource (Not Found) is not available."
When I remove or comment out the <map:act></map:act> 
tags it runs perfectly. 

Does anyone know why the 'action' could cause this
error?
I have checked the accuracy of course.xml - it seems
ok.

Sorry for the verbose question.  I'm just really 
stuck and would greatly appreciate any insights.
Thanks.

Sylvia


        



__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


jscript and vbscript

Posted by Gerald Michalitz <ge...@aon.at>.
hallo folks

i managed to run the xalan-example using javascript.

but how could this work with vbscript,
do i need the xslmn3 from microsoft

does anyone have the same problem

thanks for your attention

gerald

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>