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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2015 11:07 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2015 04:58 AM
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.
