Thanks for your fast replies

I did consider the break method, but I need something that will exit completely.

It worked using the invokeStatic !

   <j:invokeStatic className="java.lang.System" method="exit" var="0">
     <j:arg type="int" value="0"/>
   </j:invokeStatic>

Thanks Paul (and Mark)

Kind rgds
Anders




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


---------------------------------------------------------------------
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]

Reply via email to