I added the link to submit the pentaho kettle job through the carte server shown as follows. The browser will be open the new tab after clicked url link. How to disable to shown the content in the new tab ?
I solved the problem.
Screen.xml :
ScreenController.java
public void runJobProcess() {
CloseableHttpClient httpclient = HttpClients.createDefault();
try {
String spoonJob = userSessionSource.getUserSession().getAttribute("spoonJob");
HttpGet httpGet = new HttpGet(spoonJob);
CloseableHttpResponse response1 = httpclient.execute(httpGet);
System.out.println(response1.getStatusLine());
response1.close();
} catch (Exception e) {
throw new RuntimeException("Error : ", e);
}
}
Screen.xml
<button id="btnRun"
caption="Run"
invoke="runJobProcess"/>