You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Andreas B. Thun" <ab...@gmx.de> on 2006/01/31 10:43:28 UTC

Waiting for the return value of a JAVA scriptlet

Hi,

I wrote a JSP to start a JAVA scriptlet.
It works fine but now I have the problem
to evaluate the return value of my scriptlet
to give the user a feedback if the action
was successful.
getErrorCode() delivers the scriplets return
value.
I have to wait until the scriplet is finished...

Do you have any ideas how this can be done?

<%
	RunWorkflow wf = new RunWorkflow(args);
	wf.execute();   					
%>


TIA,
Andi   		

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[OT] Re: Waiting for the return value of a JAVA scriptlet

Posted by Dave Newton <ne...@pingsite.com>.
Andreas B. Thun wrote:
> I wrote a JSP to start a JAVA scriptlet.
> It works fine but now I have the problem
> to evaluate the return value of my scriptlet
> to give the user a feedback if the action
> was successful.
> getErrorCode() delivers the scriplets return
> value.
> I have to wait until the scriplet is finished...
>
> Do you have any ideas how this can be done?
>
> <%
>     RunWorkflow wf = new RunWorkflow(args);
>     wf.execute();                      
> %>
<%= getErrorCode() %>

*shudder*

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org