Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
In Joget, our plugin architecture provides an interface that enables you to implement your Web Service in a plugin.
The example below uses Form Element Plugin. However, although the the interface can be used with any other Plugin Types.
Code Block |
---|
package org.joget.sample.lib; import java.io.IOException; import org.joget.apps.form.model.Element; import org.joget.plugin.base.PluginWebSupport; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class SimpleFormElement extends Element implements PluginWebSupport { //... Other Implemented Methods ... @Override public void webService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Get Parameter String text = request.getParameter("say_something"); // Write to response response.getWriter().write(text); } } |
...