commit | 8c6ddb58c2a9f7570cada422511e171e778fb597 | [log] [tgz] |
---|---|---|
author | Radu Cotescu <radu@apache.org> | Wed Sep 19 18:29:20 2018 +0200 |
committer | Radu Cotescu <radu@apache.org> | Wed Sep 19 18:29:20 2018 +0200 |
tree | 48be49ef7050468e16b2c2cef613e6c5fe3094c2 | |
parent | 9e2cdc0ffecbc06dd797db3229def8daed291b48 [diff] |
SLING-7215 - [nice-to-have] Add a CONTRIBUTING file to every module
This module is part of the Apache Sling project.
This module implements a script engine for java servlets, that are compiled on the fly by Sling.
To test it:
mvn -P autoInstallBundle clean install -Dsling.url=http://localhost:8080/system/console
If Sling is running with the launchpad/testing setup.
package apps.foo;
import java.io.IOException; import javax.servlet.ServletException; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.SlingHttpServletResponse; import org.apache.sling.api.servlets.SlingSafeMethodsServlet;
public class foo extends SlingSafeMethodsServlet {
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException { response.setContentType("text/plain"); response.getWriter().write("Response from " + getClass().getName() + " at " + new java.util.Date()); }
}
Response from apps.foo.foo at Tue Nov 18 14:49:14 CET 2008