commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: [Jelly] Exiting a jelly script w/wo exitcode
Date Tue, 19 Dec 2006 13:03:06 GMT
Anders,

there's no tag for that, it would be easy to make, but you use 
invokeStatic tag for this in the meantime, or?

paul

Anders Kofoed wrote:
> Hi Jelly users,
>
> I'm a newbie to Jelly script and are in the process of evaluating 
> Jelly script for future use in deployment of our systems.
>
> Question: How to I exit a jelly-script if want to - maybe with an exit 
> status (like exit(0);) ?
>
> A snippet of the my test script:
>
>  <j:catch var="exception">
>    <h:get uri="http://test-server1/" var="web1"/>
>  </j:catch>
>  <j:if test="${exception != null}">
>    Connect failed!
>    //*exit(0);*
>  </j:if>
>
> How do I exit if connection fails ?
>
> Kind rgds
> Anders Kofoed


Mime
View raw message