Hello Torsten,
I have build cocoon.war using Apache Cocoon 2.0.2-dev.
But my problem is not yet solved...it is not invoking class using action
set.
Here is log files snippet(at last) you asked.
I am two xsps(as simple example) -
sum.xsp(here two numbers will be entered) and sum1.xsp(result will be
handled in this page)
sitemap.xmap is also attached
using SumAction.java
In sitemap I am using as
<map:actions>
<map:action name="add-number" src="SumAction"/>
<map:action name="get-data" src="GetData"/>
</map:actions>
##########
<map:action-set name="sum">
<map:act type="add-number" action="SUM"/>
</map:action-set>
##########
<map:match pattern="forms/sum">
<map:act type="get-data">
<map:act set="sum">
<map:generate type="serverpages" src="docs/samples/forms/sum.xsp"/>
<map:transform src="stylesheets/simple-page2html.xsl"/>
<map:redirect-to uri="{nextpage}"/>
<map:serialize/>
</map:act> </map:act>
</map:match>
<map:match pattern="forms/sum1">
<map:generate type="serverpages"
src="docs/samples/forms/sum1.xsp"/>
<map:transform src="stylesheets/simple-page2html.xsl">
</map:transform>
<map:serialize/>
</map:match>
###########
SESSION ATTRIBUTES:
PARAM: 'no2' VALUE: '200'
PARAM: 'no1' VALUE: '100'
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/DefaultPool:
Retrieving a org.apache.cocoon.components.pipeline.CachingEventPipeline from
the pool
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/DefaultPool:
Retrieving a org.apache.cocoon.components.pipeline.CachingStreamPipeline
from the pool
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/sitemap_xmap:
Matched wildcardmatcher_wildcard_N4005D2 pattern:forms/**.gif
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif)
HttpProcessor[8080][4]/AbstractSitemap:
Current Sitemap Parameters:
PARAM: '1' VALUE: 'forms/submit-button'
PARAM: '0' VALUE: 'forms/forms/submit-button.gif'
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/sitemap_xmap:
Component reader:resource(emptyParam)
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/sitemap_xmap:
Source=docs/samples/{1}.gif
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/sitemap_xmap:
Mime-type: image/gif
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif)
HttpProcessor[8080][4]/AbstractSitemap: Substitute evaluated value for 1 as
forms/submit-button
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/DefaultPool:
Retrieving a org.apache.cocoon.reading.ResourceReader from the pool
DEBUG (2002-02-26) 00:14.09:374 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/sitemap_xmap:
contains_view("", "null")
DEBUG (2002-02-26) 00:14.09:384 [cocoon ]
(/cocoon/forms/forms/submit-button.gif)
HttpProcessor[8080][4]/URLFactoryImpl: Making URL from
file:/F:\jakarta-tomcat-4.0.1\webapps\cocoon\docs\samples\forms\submit-butto
n.gif
DEBUG (2002-02-26) 00:14.09:384 [cocoon ]
(/cocoon/forms/forms/submit-button.gif)
HttpProcessor[8080][4]/CachingEventPipeline: Recycling of
CachingEventPipeline
DEBUG (2002-02-26) 00:14.09:384 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/DefaultPool:
Returning a org.apache.cocoon.components.pipeline.CachingEventPipeline to
the pool
DEBUG (2002-02-26) 00:14.09:384 [cocoon ]
(/cocoon/forms/forms/submit-button.gif)
HttpProcessor[8080][4]/CachingStreamPipeline: Recycling of
CachingStreamPipeline
DEBUG (2002-02-26) 00:14.09:384 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/DefaultPool:
Returning a org.apache.cocoon.reading.ResourceReader to the pool
DEBUG (2002-02-26) 00:14.09:384 [cocoon ]
(/cocoon/forms/forms/submit-button.gif) HttpProcessor[8080][4]/DefaultPool:
Returning a org.apache.cocoon.components.pipeline.CachingStreamPipeline to
the pool
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/Cocoon: DEBUGGING
INFORMATION:
REQUEST: /cocoon/forms/forms/cancel.gif
CONTEXT PATH: /cocoon
SERVLET PATH: /forms/forms/cancel.gif
PATH INFO: null
REMOTE HOST: 127.0.0.1
REMOTE ADDRESS: 127.0.0.1
REMOTE USER: null
REQUEST SESSION ID: 80B642770278F3F2E9F2948401821495
REQUEST PREFERRED LOCALE: en_US
SERVER HOST: localhost
SERVER PORT: 8080
METHOD: GET
CONTENT LENGTH: -1
PROTOCOL: HTTP/1.1
SCHEME: http
AUTH TYPE: null
CURRENT ACTIVE REQUESTS: 1
MAXIMUM ACTIVE REQUESTS: 2
REQUEST PARAMETERS:
HEADER PARAMETERS:
PARAM: 'accept' VALUES: '[*/*]'
PARAM: 'referer' VALUES: '[http://localhost:8080/cocoon/forms/sum]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'if-modified-since' VALUES: '[Thu, 27 Dec 2001 07:12:50 GMT]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.0)]'
PARAM: 'host' VALUES: '[localhost:8080]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'cookie' VALUES: '[JSESSIONID=80B642770278F3F2E9F2948401821495]'
SESSION ATTRIBUTES:
PARAM: 'no2' VALUE: '200'
PARAM: 'no1' VALUE: '100'
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/DefaultPool:
Retrieving a org.apache.cocoon.components.pipeline.CachingEventPipeline from
the pool
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/DefaultPool:
Retrieving a org.apache.cocoon.components.pipeline.CachingStreamPipeline
from the pool
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/sitemap_xmap:
Matched wildcardmatcher_wildcard_N4005D2 pattern:forms/**.gif
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/AbstractSitemap:
Current Sitemap Parameters:
PARAM: '1' VALUE: 'forms/cancel'
PARAM: '0' VALUE: 'forms/forms/cancel.gif'
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/sitemap_xmap:
Component reader:resource(emptyParam)
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/sitemap_xmap:
Source=docs/samples/{1}.gif
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/sitemap_xmap:
Mime-type: image/gif
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/AbstractSitemap:
Substitute evaluated value for 1 as forms/cancel
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/DefaultPool:
Retrieving a org.apache.cocoon.reading.ResourceReader from the pool
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/sitemap_xmap:
contains_view("", "null")
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/URLFactoryImpl:
Making URL from
file:/F:\jakarta-tomcat-4.0.1\webapps\cocoon\docs\samples\forms\cancel.gif
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif)
HttpProcessor[8080][3]/CachingEventPipeline: Recycling of
CachingEventPipeline
DEBUG (2002-02-26) 00:14.09:404 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/DefaultPool:
Returning a org.apache.cocoon.components.pipeline.CachingEventPipeline to
the pool
DEBUG (2002-02-26) 00:14.09:414 [cocoon ]
(/cocoon/forms/forms/cancel.gif)
HttpProcessor[8080][3]/CachingStreamPipeline: Recycling of
CachingStreamPipeline
DEBUG (2002-02-26) 00:14.09:414 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/DefaultPool:
Returning a org.apache.cocoon.reading.ResourceReader to the pool
DEBUG (2002-02-26) 00:14.09:414 [cocoon ]
(/cocoon/forms/forms/cancel.gif) HttpProcessor[8080][3]/DefaultPool:
Returning a org.apache.cocoon.components.pipeline.CachingStreamPipeline to
the pool
#######################
Please give me ur some time to find out where I am going wrong.
Thanks,
Niket
> ----- Original Message -----
> > From: "Torsten Curdt" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, February 25, 2002 7:14 PM
> > Subject: Re: <input type="image" src="images/submit.gif"
> > name="cocoon-action" value="Submit">
> >
> >
> > >
> > > On Mon, 25 Feb 2002, Niket Anand wrote:
> > > > Hello SweeHeng,
> > > > I am having 3 buttons in Xsp and I donot want to do it as you
> mentioned
> > > > here. I want to do minimum use of javascript, I actually get all
> target
> > page
> > > > uri (on click of buttons) in seperate class that will be invoked on
> > click of
> > > > any button.I am setting nextPage variable in this class and give it
to
> > > > sitemap through
> > > > sitemapParams.put("nextPage", sum.xsp);
> > > > So now please suggest me .
> > >
> > > You are on the right path man... just get current CVS version ;)
> > > In the scratchpad is even an AbstractMethodAction plus an example
> > > MultiAction.java. You might want to have a look into those...
> > >
> > > > > hi,
> > > > >
> > > > > did you put your input tag inside the form tag:
> > > > >
> > > > > <form action="cocoon-action.xsp">
> > > > > //some code ...
> > > > > <input type="image" src="images/submit.gif" name="cocoon-action"
> > > > > value="Submit"/>
> > > > > </form>
> > > > >
> > > > > hope this help...
> > >
> > > Please note: that's deprecated syntax
> > > --
> > > Torsten
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]>
> >
>
sum1.xsp
Description: Binary data
sum.xsp
Description: Binary data
SumAction.java
Description: Binary data
--------------------------------------------------------------------- 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]>
