commit | 70b64f50841dbb128d9d060df4ec8c0054deb8c1 | [log] [tgz] |
---|---|---|
author | Robert Munteanu <rombert@apache.org> | Wed Apr 05 00:12:56 2023 +0300 |
committer | Robert Munteanu <rombert@apache.org> | Wed Apr 05 00:12:56 2023 +0300 |
tree | 77fd911a05dad0c6b9e545986b3053e373ae7591 | |
parent | 181277b3f50206b8a4471bbdac29c3218382463f [diff] |
SLING-11709 - Set up Jira autolinks to all Sling Github projects Update .asf.yaml to respect defaults
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