cancel
Showing results for 
Search instead for 
Did you mean: 

Call Java class when click on a new 'Document Action'

root4js
Champ in-the-making
Champ in-the-making
hello all,

Could you help me.

I develop a java class named "Webscript"

Webscript.java:
——————————

public class TestWebscript extends AbstractWebScript
{

   @Override
   public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {
      
      System.out.println("Hellooooo from JAVA");
}
}



I would to call this class when I click on a new "Document Action"




Thanks a lot.

Best Regards
Root4js
1 REPLY 1

kajan
Champ in-the-making
Champ in-the-making
You can't call directly this Java. You have to call a Javascript function in the action configuration (share-config-custom.xml), and within that function you have to call this Webscript.