Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-04-24 17:55:55 +0000
committerThomas Watson2008-04-24 17:55:55 +0000
commit9c8ad809cea4db22dce6cf5299214bc17ced77aa (patch)
treeb2a20cf7272f07b6359a4ddc2df84c517e9ed5a5 /bundles/org.eclipse.equinox.jsp.jasper
parentbfe7efce1aabfbdf8fb56efcf5173c8cf7d26941 (diff)
downloadrt.equinox.bundles-9c8ad809cea4db22dce6cf5299214bc17ced77aa.tar.gz
rt.equinox.bundles-9c8ad809cea4db22dce6cf5299214bc17ced77aa.tar.xz
rt.equinox.bundles-9c8ad809cea4db22dce6cf5299214bc17ced77aa.zip
Bug 227593 [server] convert projects to use api tooling
Diffstat (limited to 'bundles/org.eclipse.equinox.jsp.jasper')
-rw-r--r--bundles/org.eclipse.equinox.jsp.jasper/.project6
-rw-r--r--bundles/org.eclipse.equinox.jsp.jasper/src/org/eclipse/equinox/jsp/jasper/JspServlet.java11
2 files changed, 14 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.jsp.jasper/.project b/bundles/org.eclipse.equinox.jsp.jasper/.project
index 593a11a9f..ed50b4ab7 100644
--- a/bundles/org.eclipse.equinox.jsp.jasper/.project
+++ b/bundles/org.eclipse.equinox.jsp.jasper/.project
@@ -20,9 +20,15 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
</projectDescription>
diff --git a/bundles/org.eclipse.equinox.jsp.jasper/src/org/eclipse/equinox/jsp/jasper/JspServlet.java b/bundles/org.eclipse.equinox.jsp.jasper/src/org/eclipse/equinox/jsp/jasper/JspServlet.java
index 39e44c8fd..f5f6d3ba1 100644
--- a/bundles/org.eclipse.equinox.jsp.jasper/src/org/eclipse/equinox/jsp/jasper/JspServlet.java
+++ b/bundles/org.eclipse.equinox.jsp.jasper/src/org/eclipse/equinox/jsp/jasper/JspServlet.java
@@ -21,7 +21,11 @@ import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
-import javax.servlet.*;
+import javax.servlet.RequestDispatcher;
+import javax.servlet.Servlet;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -53,6 +57,7 @@ import org.osgi.framework.Bundle;
* Other than the setting and resetting of the thread context classloader and additional resource lookups in the bundle the JSPServlet
* is behaviourally consistent with the JSP 2.0 specification and regular Jasper operation.
* </p>
+ * @noextend This class is not intended to be subclassed by clients.
*/
public class JspServlet extends HttpServlet {
@@ -159,7 +164,7 @@ public class JspServlet extends HttpServlet {
int lastSlash = resourceName.lastIndexOf('/');
if (lastSlash == -1)
return null;
-
+
String path = resourceName.substring(0, lastSlash);
if (path.length() == 0)
path = "/"; //$NON-NLS-1$
@@ -283,7 +288,7 @@ public class JspServlet extends HttpServlet {
public void setAttribute(String arg0, Object arg1) {
delegate.setAttribute(arg0, arg1);
}
-
+
// Added in Servlet 2.5
public String getContextPath() {
try {

Back to the top