This is Javaflow, not javascript flow. Actually, it turns out the
code was fine. Tomcat had not reloaded my class, so I was getting an
old error.
Irv
On 8/11/05, Thomas Soddemann <[EMAIL PROTECTED]> wrote:
> Hi,
>
> since nobody has answered this yet,
> I guess you have to write
>
> public void doSave(){
> try {
> var parameters = getParameters();
> var project = parameters.getParameter( "project" );
> var report = parameters.getParameter( "report" );
> // alternatively you probably could use
> // var project = cocoon.parameters["project"];
> // var report = cocoon.parameters["report"];
> sendPageAndWait( "saveDialog/" + project + "/" + report );
> if( logger.isDebugEnabled() ){
> logger.debug( "Back from send page and wait, now going
> to save report" );
> }
> sendPage( "saveReport/" + project + "/" + report );
> }catch( Exception e ){
> logger.error( "There was an error in doing save", e );
> }
> }
>
> Cheers,
> Thomas
>
> Irv Salisbury wrote:
>
> >I am getting an EmptyStackException utilizing javaflow and sendPageAndWait.
> >
> >Here is the actual exception:
> >
> >java.util.EmptyStackException
> > at
> > org.apache.cocoon.components.flow.java.ContinuationStack.popInt(ContinuationStack.java:85)
> > at com.dotech.cocoon.flow.reports.adhoc.MainFlow.doSave(MainFlow.java)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
> > org.apache.cocoon.components.flow.java.JavaInterpreter.handleContinuation(JavaInterpreter.java:248)
> > at
> > org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:123)
> > at
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> >
> >Here is the code in our method:
> >
> > public void doSave(){
> > try {
> > Parameters parameters = getParameters();
> > String project = parameters.getParameter( "project" );
> > String report = parameters.getParameter( "report" );
> > sendPageAndWait( "saveDialog/" + project + "/" + report );
> > if( logger.isDebugEnabled() ){
> > logger.debug( "Back from send page and wait, now going
> >to save report" );
> > }
> > sendPage( "saveReport/" + project + "/" + report );
> > }catch( Exception e ){
> > logger.error( "There was an error in doing save", e );
> > }
> > }
> >
> >Basically, the saveDialog method shows a regular form (no cforms)
> >Inside there, I submit back to a continuation id that I get utilizing
> >the following:
> >
> > <map:match pattern="saveDialog/*/*">
> > <map:generate src="cocoon:/reuse-basic/{1}/{2}/none" label="raw"/>
> > <map:transform src="stylesheets/{global:skin}/saveDialog.xsl"
> > type="xslt">
> > <map:parameter name="continuationId"
> >value="{flow-continuation:id}"/>
> > </map:transform>
> > <map:serialize type="html"/>
> > </map:match>
> >
> >It is upon submission of the form that I get the exception. I am
> >using javaflow. Any help would be greatly appreciated.
> >
> >Irv
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]